-
Notifications
You must be signed in to change notification settings - Fork 675
fix: mr.cancel_merge_when_pipeline_succeeds()
#2350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4184511 to
a07a94e
Compare
Codecov Report
@@ Coverage Diff @@
## main #2350 +/- ##
==========================================
+ Coverage 95.78% 95.88% +0.09%
==========================================
Files 79 79
Lines 5249 5248 -1
==========================================
+ Hits 5028 5032 +4
+ Misses 221 216 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
|
nejch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JohnVillalovos nice catch with the response gotcha! I think we just need to update the docstring as well.
Interesting, GitlabMROnBuildSuccessError also sounds a bit weird to me now here, could be there are some historical reasons for discrepancies here.
a07a94e to
19ee535
Compare
nejch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JohnVillalovos for the quick fix and @lmilbaum for the review, let's tackle the follow-up separately :)
* 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: #2349
19ee535 to
cd31cda
Compare
PUTmethod when should have used aPOSTmethod.dictas GitLab only returns {'status': 'success'} on success. Since the function didn't work previously, this should not impact anyone.merge_requestto add ability to create a pipeline.mr.cancel_merge_when_pipeline_succeeds()Fixes: #2349