-
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
feature request: add validator for other Github checks in a PR #395
Comments
AFAICT this doesn't really need a validator, but simply for the merge action to support the Then a recipe like version: 2
mergeable:
- when: pull_request.*, status.*, check_suite.*
name: 'All checks pass'
validate: []
pass:
- do: merge
merge_method: "squash" is all we would need. |
Agreed. This covers the use case I described. Thanks for the relevant changes. |
This feature has been working really well where the base/target is the default (main/master) branch which is protected. However it is causing PRs between feature branches (where the base/target is not protected) to auto-merge even before the check suite has finished. Since I am primarily interested in auto-merging on the default (protected) branch it should be possible to address this by extending the |
For PRs that require long-running CI builds to pass we need to support |
Hi @abid-mujtaba, Could you share your mergeable.yml and branch protection rule here? Because I have very similar environment as you using GitHub Enterprise and merge bot is on-prem. But currently I am facing with following issue.
Have you had this issue with protected branch? Can you share you mergeable.yml and branch protection rule? |
@munkherdeneen, I have semi-recently updated my config to: # Auto-merge PR when all required (in branch protection) checks have passed
- when: pull_request_review.submitted, check_suite.completed
name: 'All checks pass'
validate:
- do: baseRef
must_include:
regex: 'main'
message: 'Auto-merge is only supported for the default branch'
mediaType:
previews:
- groot
pass:
- do: merge
merge_method: squash I realized that the issue with Feel free to ask for clarification. Cheers. |
My PRs often have long-running CI and linter checks. These don't work with the merge action in this bot since the bot has no way to validate and block based on other Github checks that are pending or have failed. This causes the bot to attempt to merge the PR and fail.
It would be really useful to have a validator that ensures that other Github checks have all passed which we can then use to automatically merge.
The text was updated successfully, but these errors were encountered: