Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/unit/framework/test_commit_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def test_real_subjects_from_the_history(self, subject):
"Merge branch 'main' into feat/x",
'Revert "feat(photos): something"',
"fixup! fix(core): something",
"amend! fix(core): something",
])
def test_git_writes_these_itself(self, subject):
"""Linting them teaches people to pass --no-verify, nothing else."""
Expand Down
2 changes: 1 addition & 1 deletion tools/commit-lint
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ HEADER = re.compile(

# Git writes these itself, or they are machine-made and never reach a
# changelog. Linting them would only teach people to pass --no-verify.
EXEMPT = re.compile(r"^(Merge |Revert \"|fixup! |squash! |Bumps )")
EXEMPT = re.compile(r"^(Merge |Revert \"|fixup! |squash! |amend! |Bumps )")


def check(header: str) -> list[str]:
Expand Down
Loading