-
Notifications
You must be signed in to change notification settings - Fork 29
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
DM-49411: Add the rebase_checker workflow #4330
base: main
Are you sure you want to change the base?
Conversation
cb56f6b
to
58a1f18
Compare
This reusable workflow checks if the main branch has been merged into a PR's branch. This commonly happens when folks update their branch with the GitHub UI. The downside of this approach is that it makes Git history really hard to understand in a PR because commits from main are intermixed with new commits. This workflows encourages people to use the rebases, with a link to the Developer Guide.
58a1f18
to
12dfb69
Compare
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.
Looks good, thank you! I have no idea what failed last time. Maybe I was trying to make it mandatory and ran into problems with the merge queue?
Hmm. I'll make it required and see if it merges ok. |
Yep, that's the issue: gsactions/commit-message-checker@v2 doesn't work in a merge group. I'll see if there's a way to skip the rule in a merge_group context. |
The gsactions/commit-message-checker@v2 within the rebase_checker workflow is not compatible with merge_group. This is a way around that by having the workflow skip execution when part of a merge group.
DM-49411: Add the rebase_checker workflow
When I tried skipping the rebase checker from the |
Oh, right, that's what it was. I think we can make it optional but not mandatory. Making it optional would still at least send a warning to the person making the PR that it failed, and would warn reviewers, so that may be worth doing. |
This reusable workflow checks if the main branch has been merged into a PR's branch. This commonly happens when folks update their branch with the GitHub UI. The downside of this approach is that it makes Git history really hard to understand in a PR because commits from main are intermixed with new commits. This workflows encourages people to use the rebases, with a link to the Developer Guide.