- Notifications
You must be signed in to change notification settings - Fork673
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
4184511
toa07a94e
Comparecodecov-commenter commentedOct 30, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
|
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.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
a07a94e
to19ee535
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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
tocd31cda
Compare
PUT
method when should have used aPOST
method.dict
as GitLab only returns {'status': 'success'} on success. Since the function didn't work previously, this should not impact anyone.merge_request
to add ability to create a pipeline.mr.cancel_merge_when_pipeline_succeeds()
Fixes:#2349