Skip to content

ci(pr-title): reusable Conventional Commits title check, also run on this repository - #4

Merged
PabloFMM merged 1 commit into
mainfrom
ci/pr-title
Nov 10, 2026
Merged

PabloFMM merged 1 commit into
mainfrom
ci/pr-title

Conversation

@numinia-ci-puerta

Copy link
Copy Markdown
Contributor

What

A reusable workflow, .github/workflows/pr-title.yml, that checks the title of a pull request is a Conventional Commits 1.0.0 title: type(scope): subject, with the types feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert, an optional scope and an optional !. GitHub's own revert title, Revert "<original title>" (straight or curly quotes), is accepted too. self-check.yml runs it on this repository's own pull requests (and on edited), and the README table lists it.

Why

Every house repository squash-merges, so the pull request title is the subject of the commit on the default branch. A checked title gives one grammar everywhere, and later the type can decide the next version number. Repositories call this workflow pinned by commit hash, like the secret scan; nothing is copied.

How it was checked

  • actionlint 1.7.12 (release binary verified against its published checksums) on all three workflow files: no findings.
  • The run script was executed on 15 titles: docs(missions): ..., feat(web): ..., fix(machine)!: ..., Dependabot's chore(deps): ... and ci(deps): ..., and both revert forms pass; missions: ..., standards: ..., a free sentence, feat: with an empty subject, a capitalised type, an empty scope, a missing colon and an empty title fail. 0 mismatches.
  • No third-party action: the title goes into an environment variable and is matched with grep, so it never runs as code.
  • Not checked: the run on GitHub (this PR is the first) and zizmor beyond what the shared lint job reports here.

What a reviewer should check

  • The accepted grammar in pr-title.yml (types, scope characters, the revert form).
  • That self-check.yml running on edited is acceptable for this repository.

After merge

The archive, the engine and platform each add a short caller pinned to the merge commit, in their own pull request. Nothing is required in any ruleset until Pablo marks the check.

…this repository

Every house repository squash-merges, so the pull request title is the subject of the commit on the default branch. The workflow accepts type(scope): subject with the eleven standard types and GitHub's own Revert title, reads the title through an environment variable and uses no third-party action. self-check.yml runs it on this repository's own pull requests.
@PabloFMM
PabloFMM marked this pull request as ready for review November 10, 2026 08:58
@PabloFMM
PabloFMM merged commit 017d1ce into main Nov 10, 2026
5 checks passed
@PabloFMM
PabloFMM deleted the ci/pr-title branch November 10, 2026 08:58
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