-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
577cc12
commit a430400
Showing
4 changed files
with
130 additions
and
6 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