@@ -112,7 +112,7 @@ func TestGetPullRequestURL(t *testing.T) {
112
112
remoteUrl : "git@gitlab.com:peter/calculator.git" ,
113
113
test : func (url string , err error ) {
114
114
assert .NoError (t , err )
115
- assert .Equal (t , "https://gitlab.com/peter/calculator/-/merge_requests/new?merge_request[source_branch] =feature%2Fui" , url )
115
+ assert .Equal (t , "https://gitlab.com/peter/calculator/-/merge_requests/new?merge_request%5Bsource_branch%5D =feature%2Fui" , url )
116
116
},
117
117
},
118
118
{
@@ -121,7 +121,7 @@ func TestGetPullRequestURL(t *testing.T) {
121
121
remoteUrl : "git@gitlab.com:peter/public/calculator.git" ,
122
122
test : func (url string , err error ) {
123
123
assert .NoError (t , err )
124
- assert .Equal (t , "https://gitlab.com/peter/public/calculator/-/merge_requests/new?merge_request[source_branch] =feature%2Fui" , url )
124
+ assert .Equal (t , "https://gitlab.com/peter/public/calculator/-/merge_requests/new?merge_request%5Bsource_branch%5D =feature%2Fui" , url )
125
125
},
126
126
},
127
127
{
@@ -130,7 +130,7 @@ func TestGetPullRequestURL(t *testing.T) {
130
130
remoteUrl : "https://gitlab.com/peter/public/calculator.git" ,
131
131
test : func (url string , err error ) {
132
132
assert .NoError (t , err )
133
- assert .Equal (t , "https://gitlab.com/peter/public/calculator/-/merge_requests/new?merge_request[source_branch] =feature%2Fui" , url )
133
+ assert .Equal (t , "https://gitlab.com/peter/public/calculator/-/merge_requests/new?merge_request%5Bsource_branch%5D =feature%2Fui" , url )
134
134
},
135
135
},
136
136
{
@@ -140,7 +140,7 @@ func TestGetPullRequestURL(t *testing.T) {
140
140
remoteUrl : "git@gitlab.com:peter/calculator.git" ,
141
141
test : func (url string , err error ) {
142
142
assert .NoError (t , err )
143
- assert .Equal (t , "https://gitlab.com/peter/calculator/-/merge_requests/new?merge_request[source_branch] =feature%2Fcommit-ui&merge_request[target_branch] =epic%2Fui" , url )
143
+ assert .Equal (t , "https://gitlab.com/peter/calculator/-/merge_requests/new?merge_request%5Bsource_branch%5D =feature%2Fcommit-ui&merge_request%5Btarget_branch%5D =epic%2Fui" , url )
144
144
},
145
145
},
146
146
{
@@ -150,7 +150,7 @@ func TestGetPullRequestURL(t *testing.T) {
150
150
remoteUrl : "git@gitlab.com:peter/public/calculator.git" ,
151
151
test : func (url string , err error ) {
152
152
assert .NoError (t , err )
153
- assert .Equal (t , "https://gitlab.com/peter/public/calculator/-/merge_requests/new?merge_request[source_branch] =feature%2Fcommit-ui&merge_request[target_branch] =epic%2Fui" , url )
153
+ assert .Equal (t , "https://gitlab.com/peter/public/calculator/-/merge_requests/new?merge_request%5Bsource_branch%5D =feature%2Fcommit-ui&merge_request%5Btarget_branch%5D =epic%2Fui" , url )
154
154
},
155
155
},
156
156
{
@@ -160,7 +160,7 @@ func TestGetPullRequestURL(t *testing.T) {
160
160
remoteUrl : "https://gitlab.com/peter/public/calculator.git" ,
161
161
test : func (url string , err error ) {
162
162
assert .NoError (t , err )
163
- assert .Equal (t , "https://gitlab.com/peter/public/calculator/-/merge_requests/new?merge_request[source_branch] =feature%2Fcommit-ui&merge_request[target_branch] =epic%2Fui" , url )
163
+ assert .Equal (t , "https://gitlab.com/peter/public/calculator/-/merge_requests/new?merge_request%5Bsource_branch%5D =feature%2Fcommit-ui&merge_request%5Btarget_branch%5D =epic%2Fui" , url )
164
164
},
165
165
},
166
166
{
@@ -362,7 +362,7 @@ func TestGetPullRequestURL(t *testing.T) {
362
362
},
363
363
test : func (url string , err error ) {
364
364
assert .NoError (t , err )
365
- assert .Equal (t , "https://my.domain.test:1111/johndoe/social_network/-/merge_requests/new?merge_request[source_branch] =feature%2Fprofile-page" , url )
365
+ assert .Equal (t , "https://my.domain.test:1111/johndoe/social_network/-/merge_requests/new?merge_request%5Bsource_branch%5D =feature%2Fprofile-page" , url )
366
366
},
367
367
},
368
368
{
@@ -410,7 +410,7 @@ func TestGetPullRequestURL(t *testing.T) {
410
410
remoteUrl : "git@gitlab.com:me/public/repo-with-issues.git" ,
411
411
test : func (url string , err error ) {
412
412
assert .NoError (t , err )
413
- assert .Equal (t , "https://gitlab.com/me/public/repo-with-issues/-/merge_requests/new?merge_request[source_branch] =feature%2FsomeIssue%23123&merge_request[target_branch] =master" , url )
413
+ assert .Equal (t , "https://gitlab.com/me/public/repo-with-issues/-/merge_requests/new?merge_request%5Bsource_branch%5D =feature%2FsomeIssue%23123&merge_request%5Btarget_branch%5D =master" , url )
414
414
},
415
415
},
416
416
{
@@ -420,7 +420,7 @@ func TestGetPullRequestURL(t *testing.T) {
420
420
remoteUrl : "git@gitlab.com:me/public/repo-with-issues.git" ,
421
421
test : func (url string , err error ) {
422
422
assert .NoError (t , err )
423
- assert .Equal (t , "https://gitlab.com/me/public/repo-with-issues/-/merge_requests/new?merge_request[source_branch] =yolo&merge_request[target_branch] =archive%2Fnever-ending-feature%23666" , url )
423
+ assert .Equal (t , "https://gitlab.com/me/public/repo-with-issues/-/merge_requests/new?merge_request%5Bsource_branch%5D =yolo&merge_request%5Btarget_branch%5D =archive%2Fnever-ending-feature%23666" , url )
424
424
},
425
425
},
426
426
}
0 commit comments