ci: allow chore type in PR title lint (#37575)
Follow-up to #37498, adds `chore` to the allowed PR title types so the set matches the standard [`@commitlint/config-conventional`](https://github.com/conventional-changelog/commitlint/tree/868983c18efcb6fa835197cc9b2275545e528ad4/%40commitlint/config-conventional#type-enum). --- This PR was written with the help of Claude Opus 4.7 --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -195,7 +195,7 @@ PR titles must follow the [Conventional Commits](https://www.conventionalcommits
|
|||||||
type(scope)!: subject
|
type(scope)!: subject
|
||||||
```
|
```
|
||||||
|
|
||||||
The allowed types are `build`, `ci`, `docs`, `feat`, `fix`, `perf`, `refactor`, `revert`, `style`, and `test`. The generic `chore` type is intentionally not accepted; pick a more descriptive type instead.
|
The allowed types are `build`, `chore`, `ci`, `docs`, `feat`, `fix`, `perf`, `refactor`, `revert`, `style`, and `test`. The generic `chore` type is intentionally not accepted; pick a more descriptive type instead.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
import {env, exit} from 'node:process';
|
import {env, exit} from 'node:process';
|
||||||
|
|
||||||
const allowedTypes = 'build, ci, docs, feat, fix, perf, refactor, revert, style, test';
|
const allowedTypes = 'build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test';
|
||||||
const title = env.PR_TITLE;
|
const title = env.PR_TITLE;
|
||||||
|
|
||||||
if (!title) {
|
if (!title) {
|
||||||
|
|||||||
Reference in New Issue
Block a user