Skip to content

ci: lint PR titles against Conventional Commits - #4

Merged
kewde merged 1 commit into
masterfrom
ci/pr-title-lint
Aug 20, 2026
Merged

ci: lint PR titles against Conventional Commits#4
kewde merged 1 commit into
masterfrom
ci/pr-title-lint

Conversation

@kewde

@kewde kewde commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a pr-title-lint workflow (amannn/action-semantic-pull-request, pinned to a commit SHA) that fails a PR if its title isn't a valid Conventional Commit (type(optional-scope): subject)
  • Allowed types: feat, fix, docs, chore, refactor, perf, test, build, ci, revert. Scope is left free-form/optional so repo-wide changes aren't blocked.

Why

Laying groundwork for release-please (coming in a follow-up PR): its changelog entries come from squash-merge commit messages, which default to the PR title. Without this check, a malformed title just silently produces no changelog entry instead of failing visibly.

Test plan

  • Confirm the check appears on this PR and passes (title follows the convention)
  • Open a throwaway PR with a bad title to confirm the check actually fails it

Enforces feat/fix/docs/chore/refactor/perf/test/build/ci/revert
prefixes on PR titles so a malformed title fails CI instead of
silently producing no changelog entry once release-please lands.
@kewde
kewde merged commit d970651 into master Aug 20, 2026
4 checks passed
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