Skip to content

fix(actions): lint pull requests against config-conventional - #55

Merged
davidmoralesz merged 1 commit into
mainfrom
fix/pr-checks-config-conventional
Oct 9, 2026
Merged

davidmoralesz merged 1 commit into
mainfrom
fix/pr-checks-config-conventional

Conversation

@davidmoralesz

Copy link
Copy Markdown
Contributor

What

pr-checks linted titles and commits against a hand-written rule set. It now uses @commitlint/config-conventional, with the caller's rules on top. commitlint.default.yaml is removed.

This tightens every repository's pull requests

From the release that carries this, every caller of ci-pr is held to config-conventional, not only a known type:

  • header at most 100 characters;
  • subject not capitalised, no trailing full stop;
  • body and footer lines at most 100 characters.

Dependabot is exempt

Its titles and commit bodies exceed 100 characters and cannot be shortened (one merged title in project-template is 111; one commit body line is 354). ci-pr passes the pull request author to the action, which skips the title when it is dependabot[bot] and skips commits whose author name is dependabot[bot].

The commit exemption goes by author name, which anyone can set on a commit. It only skips the per-commit lint; the title of a pull request not opened by Dependabot is still checked, and that is what a squash merge keeps.

Tested

  • bash .devtools/test-hooks.sh: all pass, with the cases updated for the stricter rules and the config-injection case kept.
  • actionlint, prettier: clean.
  • Not tested on a runner yet; self-pr on this PR runs it. The Dependabot path is not exercised until Dependabot opens a PR.

pr-checks linted against a hand-written rule set. It now uses
@commitlint/config-conventional, installed from the same lockfile, with the caller's
rules on top. commitlint.default.yaml is gone.

config-conventional caps the header and body lines at 100 characters, which
Dependabot's titles and commit bodies exceed, so what Dependabot authors is skipped.
@davidmoralesz
davidmoralesz merged commit 7f33043 into main Oct 9, 2026
5 checks passed
@davidmoralesz
davidmoralesz deleted the fix/pr-checks-config-conventional branch October 9, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant