Skip to content

Add a plugin to block merging PRs with fixup! commits #617

@nojnhuh

Description

@nojnhuh

I usually update my PRs with git commit --fixup to better enable more iterative review than rewriting history with git commit --amend. Then I git rebase --autosquash when the PR is LGTM'd and approved to remove all the intermediate changes.

I usually remember to /hold those PRs to remind myself to squash but sometimes end up merging PRs anyway with lots of unnecessary fixup! noise in the git log. It would be great if there was a plugin like mergecommitblocker that could look for commits whose messages start with fixup! or amend! and automatically add a do-not-merge/* label, and remove it when no such commits exist like after a git rebase --autosquash.

/kind feature
/area plugins

Metadata

Metadata

Labels

area/pluginsIssues or PRs related to prow's plugins for the hook componentkind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions