Skip to content

ci: skip merge commits in conventional commit linter - #39

Merged
alexk-dev merged 1 commit into
mainfrom
ci/skip-merge-commits
Apr 5, 2026
Merged

ci: skip merge commits in conventional commit linter#39
alexk-dev merged 1 commit into
mainfrom
ci/skip-merge-commits

Conversation

@alexk-dev

Copy link
Copy Markdown
Owner

Summary

  • Pass `--no-merges` to `git log` in `read_commit_range` so merge commits (e.g. `Merge branch 'main' into feat/...`) are ignored by the conventional commit linter.
  • Same helper feeds release note generation — merge commit subjects are not useful there either.

Test plan

🤖 Generated with Claude Code

When a PR branch has back-merges from main, the resulting
"Merge branch 'main' into ..." subjects are not conventional commit
messages and fail lint-commits. Pass --no-merges to git log so merge
commits are skipped by read_commit_range, which is used by both the
conventional commit linter and release note generation (where merge
subjects are never useful either).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexk-dev
alexk-dev merged commit 943a916 into main Apr 5, 2026
3 checks passed
@alexk-dev
alexk-dev deleted the ci/skip-merge-commits branch April 5, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant