Skip to content

ci: lint PR titles with conventional commit rules#106

Merged
JeanExtreme002 merged 1 commit into
mainfrom
ci/lint-pr-title
May 13, 2026
Merged

ci: lint PR titles with conventional commit rules#106
JeanExtreme002 merged 1 commit into
mainfrom
ci/lint-pr-title

Conversation

@JeanExtreme002
Copy link
Copy Markdown
Owner

Summary

  • Adds .github/workflows/lint-pr-title.yml running amannn/action-semantic-pull-request@v5 on PR opened/edited/synchronize/reopened.
  • Accepted types match the set the existing PR labeler already recognizes (feat, fix, perf, refactor, revert, docs, ci, build) plus chore, test, style.
  • Subjects must start lowercase and not end with a period.
  • Scopes are not constrained — titles with or without a scope both pass.
  • Uses pull_request_target with permissions: pull-requests: read so it works for PRs from forks without exposing write tokens to PR code.

Test plan

  • After merge, open a PR with a valid title (e.g. fix: foo bar) and confirm the check passes.
  • Open a PR with an invalid type (e.g. wip: foo) or capitalized subject (fix: Foo) and confirm the check fails.
  • Edit a failing PR's title to a valid one and confirm the check re-runs and turns green.

Adds a workflow that runs amannn/action-semantic-pull-request on PR
open/edit/synchronize/reopen. The accepted types mirror the set the
existing PR labeler already recognizes (feat, fix, perf, refactor,
revert, docs, ci, build) plus chore/test/style. Subjects must start
lowercase and not end with a period. Scopes are not constrained.
@github-actions github-actions Bot added the ci label May 13, 2026
@JeanExtreme002 JeanExtreme002 self-assigned this May 13, 2026
@JeanExtreme002 JeanExtreme002 merged commit cae666d into main May 13, 2026
1 check passed
@github-actions github-actions Bot deleted the ci/lint-pr-title branch May 13, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant