forked from smarkets/marge-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass the correct value for merge_when_pipeline_succeeds
Passing this value as True makes gitlab assume that the MR must have a pipeline, which means if it's doesn't, then the MR will be denied. Instead we should use the value of project.only_merge_if_pipeline_succeeds, As this will mean the gitlab logic will be correct: If the MR requires a pipeline to merge then we'll only merge if a pipeline succeeds If the MR doesn't needs a pipeline to succeed (i.e. has this setting on the project off) then we won't pass the parameter and hence the merge will be allowed Fixes issue smarkets#240
- Loading branch information
1 parent
3e0054c
commit a627e14
Showing
4 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters