-
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
feat: Add more supported events to baseRef validator #598
feat: Add more supported events to baseRef validator #598
Conversation
Codecov Report
@@ Coverage Diff @@
## master #598 +/- ##
==========================================
+ Coverage 92.80% 92.83% +0.03%
==========================================
Files 106 106
Lines 2404 2416 +12
Branches 431 433 +2
==========================================
+ Hits 2231 2243 +12
Misses 154 154
Partials 19 19
Continue to review full report at Codecov.
|
e641066
to
b3eaec3
Compare
e1bd7fe
to
65942cc
Compare
Thanks @shine2lay. How do I get the |
@abid-mujtaba just merged #594, can you please resolve conflict, maybe that may help with the |
- 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.
65942cc
to
5a8732f
Compare
@shine2lay, rebased on master. No luck. |
@shine2lay, seems to have gotten unstuck 😄. Ready to merge. |
🎉 This PR is included in version 2.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
merge
action) listens tocheck_suite.*
events in addition to the more standardpull-request.*
andpull_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).check_suite.*
event support to the baseRef validator so thatauto-merge can be limited to the default branch.
check_suite
events.mockContext
fixture when using thebaseRef
option.The passed in
baseRef
value was not being set in the context payload.