@rtorcato/repo-tooling 3.9.0 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/package.json +1 -1
- package/tooling/commitlint/commitlint.mjs +12 -8
package/AGENTS.md
CHANGED
|
@@ -100,7 +100,7 @@ npx @rtorcato/repo-tooling fix bun --yes --json # Bun runtime/test confi
|
|
|
100
100
|
|
|
101
101
|
## Conventions in this repo
|
|
102
102
|
|
|
103
|
-
- Conventional commits enforced via commitlint; header max
|
|
103
|
+
- Conventional commits enforced via commitlint; header max 100 chars, body/footer line length unenforced
|
|
104
104
|
- Biome for lint + format (run via `pnpm exec biome check --config-path=tooling/biome/biome.json src scripts`)
|
|
105
105
|
- Tests live alongside source in `tests/`; vitest with no separate config
|
|
106
106
|
- semantic-release runs on push to `main`; `fix:` → patch, `feat:` → minor, `chore:` / `docs:` → no release
|
package/package.json
CHANGED
|
@@ -2,11 +2,10 @@ export default {
|
|
|
2
2
|
extends: ["@commitlint/config-conventional"],
|
|
3
3
|
ignores: [
|
|
4
4
|
(commit) => commit.includes("[skip ci]"),
|
|
5
|
-
// Bot
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
// title, which is still linted on the merge commit.
|
|
5
|
+
// Bot commits are machine-written end to end, including headers long
|
|
6
|
+
// enough to trip header-max-length. Skipping them wholesale keeps bot
|
|
7
|
+
// PRs green — squash-merge uses the PR title, which is still linted on
|
|
8
|
+
// the merge commit.
|
|
10
9
|
// ponytail: matches the trailer, not a bare "[bot]", so a human commit
|
|
11
10
|
// that merely mentions a bot is still linted.
|
|
12
11
|
(commit) => /^Signed-off-by: .*\[bot\]/m.test(commit),
|
|
@@ -32,10 +31,15 @@ export default {
|
|
|
32
31
|
],
|
|
33
32
|
// 100 is the conventional-commits/semantic-release default. 72 was too
|
|
34
33
|
// tight: GitHub appends " (#NN)" to squash commits, overflowing the
|
|
35
|
-
// header on main and skipping the release.
|
|
34
|
+
// header on main and skipping the release.
|
|
36
35
|
"header-max-length": [2, "always", 100],
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
// Body/footer length is unenforced. Machine-written commits (agents,
|
|
37
|
+
// bots) don't wrap, and a `BREAKING CHANGE:` footer — the input
|
|
38
|
+
// semantic-release reads to cut a major — is the worst thing to make
|
|
39
|
+
// someone hand-rewrap. The subject rules below decide the release
|
|
40
|
+
// type and stay enforced.
|
|
41
|
+
"body-max-line-length": [0],
|
|
42
|
+
"footer-max-line-length": [0],
|
|
39
43
|
// Enforce case rules (allow common patterns)
|
|
40
44
|
"subject-case": [0], // Disable case enforcement to allow flexibility
|
|
41
45
|
"type-case": [2, "always", "lower-case"],
|