You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add more supported events to baseRef validator (#598)
- The auto-merge workflow (using the `merge` action) listens to
`check_suite.*` events in addition to the more standard
`pull-request.*` and `pull_request_review.*`.
This workflow relies on branch protections to stop the merge while
the check_suite is running.
Since branch protections are usually setup **only** only on the
default branch it means PRs that are targetting non-default
branches are auto-merged by the workflow sometime before the check
suite has even completed (if `check_suite.*` is used).
- Add `check_suite.*` event support to the baseRef validator so that
auto-merge can be limited to the default branch.
- If more than one pull request is associated with a check_suite the
validator will validate ALL of them and only pass if ALL of them
pass
- If NO pull requests are associated with a check_suite the validator
considers this to be a failure since there is no baseRef to
validate
- Add unit tests for check_suite events.
0 commit comments