From e9f82b0ee316556032bb0092ad0b4bc2a000cf1a Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 7 May 2026 19:18:10 +0200 Subject: [PATCH] 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 Co-authored-by: Claude (Opus 4.7) --- CONTRIBUTING.md | 2 +- tools/lint-pr-title.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c62950d84b..27103a991b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -195,7 +195,7 @@ PR titles must follow the [Conventional Commits](https://www.conventionalcommits 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: diff --git a/tools/lint-pr-title.js b/tools/lint-pr-title.js index 2df340f186..7caeb78085 100644 --- a/tools/lint-pr-title.js +++ b/tools/lint-pr-title.js @@ -1,7 +1,7 @@ #!/usr/bin/env node 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; if (!title) {