Skip to content
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

Reapply "Check for fixup commits on CI" #3745

Merged

Conversation

stefanhaller
Copy link
Collaborator

@stefanhaller stefanhaller commented Jul 13, 2024

Re-enable the check for fixup commits (see #3742), make it work for forks, and extend it to "amend!" and "WIP" commits (and a few others).

@stefanhaller stefanhaller added the maintenance For refactorings, CI changes, tests, version bumping, etc label Jul 13, 2024
@stefanhaller stefanhaller force-pushed the check-for-fixup-commits-on-ci branch from 4564b37 to 76ba2f4 Compare July 13, 2024 12:48
My local git is not compiled with PCRE support, so using -E makes it easier for
me to test the script locally. And -E is good enough for the simple matching we
want to do here.
@stefanhaller stefanhaller force-pushed the check-for-fixup-commits-on-ci branch 2 times, most recently from 983c0b5 to 8c5b669 Compare July 13, 2024 13:07
@stefanhaller stefanhaller marked this pull request as ready for review July 13, 2024 13:09
Copy link
Owner

@jesseduffield jesseduffield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, LGTM

Also check for squash! and amend! (these are all anchored to the beginning of
the subject), and WIP and DROPME for good measure (but only if they occur in the
first line, otherwise it wouldn't let me merge this very commit :)
@stefanhaller stefanhaller force-pushed the check-for-fixup-commits-on-ci branch from 8c5b669 to 20ccb03 Compare July 13, 2024 13:15
@stefanhaller stefanhaller merged commit f598da0 into jesseduffield:master Jul 13, 2024
15 checks passed
@stefanhaller stefanhaller deleted the check-for-fixup-commits-on-ci branch July 13, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance For refactorings, CI changes, tests, version bumping, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants