Files
bookorbit/commitlint.config.cjs
T
neon e89f4ce0e4 ci: enforce PR issue references and branch conventions
Validate BO-<issue>-<slug> branch names and lint PR titles and commit headers in CI and release workflows.

Require GitHub closing-keyword issue references and verify referenced issues exist. Align contributing, release, commit, testing, and policy docs with the enforced behavior and tone.
2026-05-17 13:10:32 -06:00

41 lines
877 B
JavaScript

module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [2, "always", ["feat", "fix", "db", "perf", "refactor", "style", "docs", "test", "build", "ci", "chore", "security", "revert"]],
"header-max-length": [2, "always", 72],
"subject-full-stop": [2, "never", "."],
"scope-enum": [
2,
"always",
[
"auth",
"library",
"books",
"authors",
"series",
"cover",
"metadata",
"kobo",
"opds",
"reader",
"collections",
"annotations",
"users",
"stats",
"notifications",
"settings",
"scanner",
"email",
"audit",
"smart-scope",
"types",
"docker",
"deps",
"server",
"client",
],
],
"scope-empty": [0],
},
};