ci: add conventional commit PR title linting (#23096)

Restore PR title validation that was removed in 828f33a when
cdr-bot was expected to handle it. That bot has since been disabled.

The new title job in contrib.yaml validates:
- Conventional commit format (type(scope): description)
- Type from the same set used by release notes generation
- Scope validity derived from the changed files in the PR diff
- All changed files fall under the declared scope

Uses actions/github-script (no third-party marketplace actions).

Also fixes feat(api) examples across docs (no api folder exists)
and consolidates commit rules into CONTRIBUTING.md as the single
source of truth.
This commit is contained in:
Mathias Fredriksson
2026-03-16 12:24:59 +02:00
committed by GitHub
parent ae8bed4d8e
commit aa6f301305
6 changed files with 123 additions and 22 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ new patch version will be created.
To mark a release as containing breaking changes, the commit title should
either contain a known prefix with an exclamation mark ("feat!:",
"feat(api)!:") or the PR that was merged can be tagged with the
"feat(coderd)!:") or the PR that was merged can be tagged with the
"release/breaking" label.
GitHub labels that affect release notes: