0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-09 01:17:43 +02:00

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`](868983c18e/%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:
silverwind 2026-05-07 19:18:10 +02:00 committed by GitHub
parent 3e69d6adbe
commit e9f82b0ee3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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) {