Commit bd82d74
authored
fix: use POST method and return dict in
* Call was incorrectly using a `PUT` method when should have used a
`POST` method.
* Changed return type to a `dict` as GitLab only returns
{'status': 'success'} on success. Since the function didn't work
previously, this should not impact anyone.
* Updated the test fixture `merge_request` to add ability to create
a pipeline.
* Added functional test for `mr.cancel_merge_when_pipeline_succeeds()`
Fixes: #2349cancel_merge_when_pipeline_succeeds() (#2350)1 parent 2974966 commit bd82d74Copy full SHA for bd82d74
File tree
Expand file treeCollapse file tree
4 files changed
+47
-9
lines changedOpen diff view settings
Filter options
- docs/gl_objects
- gitlab/v4/objects
- tests/functional
- api
Expand file treeCollapse file tree
4 files changed
+47
-9
lines changedOpen diff view settings
Collapse file
docs/gl_objects/merge_requests.rst
Copy file name to clipboardExpand all lines: docs/gl_objects/merge_requests.rst+7-1Lines changed: 7 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
122 | 122 | |
123 | 123 | |
124 | 124 | |
125 | | - |
| 125 | + |
126 | 126 | |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
127 | 133 | |
128 | 134 | |
129 | 135 | |
|
Collapse file
gitlab/v4/objects/merge_requests.py
Copy file name to clipboardExpand all lines: gitlab/v4/objects/merge_requests.py+8-7Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
165 | 165 | |
166 | 166 | |
167 | 167 | |
168 | | - |
169 | | - |
170 | | - |
| 168 | + |
171 | 169 | |
172 | 170 | |
173 | 171 | |
| ||
179 | 177 | |
180 | 178 | |
181 | 179 | |
182 | | - |
| 180 | + |
183 | 181 | |
184 | 182 | |
185 | 183 | |
186 | 184 | |
187 | 185 | |
188 | | - |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
189 | 191 | |
190 | 192 | |
191 | | - |
192 | | - |
| 193 | + |
193 | 194 | |
194 | 195 | |
195 | 196 | |
|
Collapse file
tests/functional/api/test_merge_requests.py
Copy file name to clipboardExpand all lines: tests/functional/api/test_merge_requests.py+16Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
181 | 181 | |
182 | 182 | |
183 | 183 | |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
184 | 197 | |
185 | 198 | |
186 | 199 | |
187 | 200 | |
188 | 201 | |
| 202 | + |
| 203 | + |
| 204 | + |
189 | 205 | |
190 | 206 | |
191 | 207 | |
|
Collapse file
tests/functional/conftest.py
Copy file name to clipboardExpand all lines: tests/functional/conftest.py+16-1Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
379 | 379 | |
380 | 380 | |
381 | 381 | |
382 | | - |
| 382 | + |
383 | 383 | |
384 | 384 | |
385 | 385 | |
| ||
401 | 401 | |
402 | 402 | |
403 | 403 | |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + |
| 408 | + |
| 409 | + |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
404 | 419 | |
405 | 420 | |
406 | 421 | |
|
0 commit comments