[object Object]

← back to Cli Printing Press

fix(ci): include refactors in release notes (#328)

df551b3739a078f803cec5d9207a63da2ed85e61 · 2026-04-26 20:39:40 -0700 · Trevin Chow

Files touched

Diff

commit df551b3739a078f803cec5d9207a63da2ed85e61
Author: Trevin Chow <trevin@trevinchow.com>
Date:   Sun Apr 26 20:39:40 2026 -0700

    fix(ci): include refactors in release notes (#328)
---
 AGENTS.md                  |  3 ++-
 release-please-config.json | 17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/AGENTS.md b/AGENTS.md
index 02b13f46..055fbdf0 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -150,7 +150,8 @@ Every commit and PR title must include one of these scopes. The `PR Title` actio
 - `fix(scope):` → patch (0.4.0 → 0.4.1)
 - `feat(scope):` → minor (0.4.0 → 0.5.0)
 - `feat(scope)!:` or `BREAKING CHANGE:` footer → major (0.4.0 → 1.0.0)
-- `docs:`, `chore:`, `refactor:`, `test:` → included in next release but don't trigger a bump alone
+- `refactor(scope):` → included in the next release PR but doesn't trigger a bump alone
+- `docs:`, `chore:`, `test:` → don't trigger a bump alone and stay out of release notes by default
 
 **PR titles must follow the same format.** GitHub's "Squash and merge" uses the PR title as the squash commit message, so release-please reads PR titles on main. The `PR Title` GitHub Action (`.github/workflows/pr-title.yml`) enforces this — PRs with invalid titles cannot merge.
 
diff --git a/release-please-config.json b/release-please-config.json
index 82efdd96..4467a09b 100644
--- a/release-please-config.json
+++ b/release-please-config.json
@@ -4,6 +4,23 @@
     ".": {
       "release-type": "go",
       "bump-minor-pre-major": true,
+      "changelog-sections": [
+        {
+          "type": "feat",
+          "section": "Features",
+          "hidden": false
+        },
+        {
+          "type": "fix",
+          "section": "Bug Fixes",
+          "hidden": false
+        },
+        {
+          "type": "refactor",
+          "section": "Code Refactoring",
+          "hidden": false
+        }
+      ],
       "extra-files": [
         {
           "type": "json",

← 52bde6b4 refactor(cli): share generated naming helpers (#327)  ·  back to Cli Printing Press  ·  chore(main): release 2.3.9 (#309) cae740f5 →