-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support merge_group
event natively
#433
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #433 +/- ##
==========================================
+ Coverage 85.71% 85.89% +0.17%
==========================================
Files 5 5
Lines 315 319 +4
==========================================
+ Hits 270 274 +4
Misses 45 45 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing. At first glance, it seems great.
Please remove the Merge commit from the history.
Sure, I did. |
I have enabled the merge queue for the |
Thank you for enabling running ShellCheck on merge_group. Unfortunately, it seems that we hit an issue where if the branch doesn't contain any previous commits the base is referred to as I think that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks great. LGTM
Thank you for your contribution. I'm going to merge this PR. Only this repository uses @main
, so unless we release a new version, nobody will be able to use this feature.
I plan to do some testing, and I'll try to find a way how to fix the issue mentioned in #433 (comment)
104fc14
Thank you for incorporating this change and working on some tests!
Ah, I didn't thought about the case. Although I believe in most cases the workflow will be enabled for |
So, I have verified that The issue with For a workaround, you could provide a list of branches, etc. (e.g. |
What
Support
merge_group
event natively.Why
Closes #432
Our team uses the merge queue to serialize and validate changes on the default branch. I want to run ShellCheck when a change is added to the merge queue so that I can detect problems introduced by a bad merge before pushing them to the default branch.
While I can configure the workflow to use "manual" triggering event with the base & head SHAs, it'd be convenient if the workflow natively support
merge_group
.How tested
Will see the CI test results.
References
The definition of
merge_group
event.https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#merge_group