-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The mergeable does not merge the branch under Branch protection rule #656
Comments
@munkherdeneen Try looking at the log, see what the error message for the |
Thank you for the reply @shine2lay. As you suggested I played with branch protection rules and was able to merge PR by a bot with the following additional permission (since we cannot add the GitHub app on this config only a team or person is allowed). But, I am facing with another issue after that. Here is what happens:
How can I prevent being merged after all approvals are dismissed with a new commit happens? Could you suggest it here? After I reviewed the #395 issue and I followed this issue guidance and made a change as follows: version: 2
|
@munkherdeneen I think you can make |
@shine2lay, I have tried with the following mergeable config but the bot still does not work well. Could you replicate the issue and try once? The case is here:
So, I think the potential problem is merging the bot takes action before the bot changes the PR label (it must break bot conditions). How can I tackle this issue? Could you please help with it? The mergeable config is here: version: 2
Screenshot of PR itself: Also, I tried with the following config but it's still the same issue occurs. version: 2
|
@shine2lay could you replicate the issue. Because I still have not resolved my issue on merge function? Thank you. |
1 similar comment
@shine2lay could you replicate the issue. Because I still have not resolved my issue on merge function? Thank you. |
I have had success with setting the mergeable app as an entry in "Restrict who can push to matching branches". |
My on-prem Merge bot does not merge the PR into the base branch where it's protected by the GitHub branch protection rule. Is there any way to merge the PR into the protected branch?
My mergeable config here:
version: 2
mergeable:
when: schedule.repository
validate:
days: 10
type: pull_request, issues
pass:
payload:
body: >
This is old PR!
when: pull_request.opened
name: 'Greet a contributor'
validate: []
pass:
teams: ['team1', 'team2']
assignees: ['@author']
payload:
body: >
Thanks for creating a pull request! The team will be reviewing your changes shortly. Please respond promptly to any feedback or change requests.
when: pull_request., pull_request_review., status., check_suite.
name: 'Set a label as bot-Ready-for-Merge once all approvals given'
validate:
must_exclude:
regex: 'wip|work in progress|DO NOT MERGE'
must_include:
regex: 'Merge List'
min:
count: 1
limit:
teams: ['team1']
validate:
must_include:
regex: 'NoEmbeddedQA'
min:
count: 1
limit:
teams: ['team2']
validate:
must_exclude:
regex: 'Release'
min:
count: 1
limit:
teams: ['team3']
pass:
merge_method: 'squash'
status: 'success'
and my GitHub branch protection rule here:
After all the check passes but the PR is still standing without any merge action.
But, when I disable the branch protection rule it merges fine. But I need protection rule is mandatory.
Is there anything wrong with my mergeable config? How can I accept the merge bot to merge the PRs under the protection rule is active?
The text was updated successfully, but these errors were encountered: