Add release-notes-ai module: JGit history, Conventional Commit grouping, guarded Spring AI highlights, PR descriptions and idempotent Gitea publishing on Spring AI 2.1.0

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
This commit is contained in:
Claude
2026-11-29 01:58:28 +05:30
parent 1e8e90258a
commit 943351bccb
28 changed files with 1694 additions and 0 deletions
@@ -0,0 +1,14 @@
subject type scope breaking PR conventional
feat(api): add order listing endpoint (#1) feat api false 1 true
fix: stop retrying on 4xx fix null false null true
Feat(UI): Capital letters are tolerated feat UI false null true
refactor(core)!: rename Order.id to Order.orderId refactor core true null true
chore: bump deps chore null true null true
feat!: drop the v1 API feat null true null true
Revert "feat(cli): add --json output flag" revert null false null true
Fixed stuff other null false null false
wip: half done other null false null false
feat add a thing without a colon other null false null false
feat(api):no space after the colon other null false null false
breaking note from footer: the minimum JDK is now 21, update your CI.
@@ -0,0 +1,21 @@
$ git log --oneline v1.0.0..v1.1.0 (oldest first, merge commits skipped)
6e9776a feat(cli): add --json output flag (#3) files=1 +1 -0
6ba3519 fix: stop retrying on 4xx files=1 +1 -0
4ab0a75 docs: explain retry policy files=1 +1 -0
0082b4d Fixed stuff files=1 +1 -0
a061359 refactor(core)!: rename Order.id to Order.orderId files=1 +1 -1
2ff8458 perf(db): batch inserts in OrderRepository (#5) files=1 +1 -0
633f424 wip: half done files=1 +1 -0
92049cc feat(search): add fuzzy search (#6) files=1 +1 -0
08cccc3 docs: document back-off files=1 +1 -1
dedef67 Revert "feat(cli): add --json output flag" files=1 +1 -1
commits git log walks: 11, commits kept after skipping merges: 10
root commit 84be7a6: files=3 +3 -0 (diffed against an empty tree, it has no parent)
annotated tag v1.0.0: ref points at 03c7aed, peels to commit 17deac5, commitOf says 17deac5
lightweight tag v1.1.0: ref points at dedef67, commitOf says dedef67
previousTag(v1.1.0) = v1.0.0
previousTag(v1.0.0) = none
@@ -0,0 +1,40 @@
group sizes: feat=2, fix=1, perf=1, revert=1, docs=2, refactor=1, other=2
not in conventional form (type other): 2 of 10
bump implied by the commits: MAJOR, current 1.0.0 -> next 2.0.0
## v1.1.0 (2026-01-20)
This release contains 10 commits: 2 features and 1 bug fix. 1 breaking change is listed first.
### Breaking changes
- Order.getId() is now Order.getOrderId(), update every caller. ([a061359](https://git.example/acme/shop/commit/a061359aeddbe07c20c074b3fa1f909575076a49))
### Features
- **cli:** add --json output flag ([#3](https://git.example/acme/shop/pulls/3), [6e9776a](https://git.example/acme/shop/commit/6e9776a52f5a1cff3f185922acc3b5b311a2e24c))
- **search:** add fuzzy search ([#6](https://git.example/acme/shop/pulls/6), [92049cc](https://git.example/acme/shop/commit/92049cc1cace8c099d1e230ac7345e515060c3e0))
### Bug fixes
- stop retrying on 4xx ([6ba3519](https://git.example/acme/shop/commit/6ba351972dff78b9436ba097060dc16376fcf465))
### Performance
- **db:** batch inserts in OrderRepository ([#5](https://git.example/acme/shop/pulls/5), [2ff8458](https://git.example/acme/shop/commit/2ff8458d4673dd88e3e2a4573920ecc153289733))
### Reverts
- Revert: feat(cli): add --json output flag ([dedef67](https://git.example/acme/shop/commit/dedef67f9d283bc967fc636499eadf00fc146995))
### Documentation
- explain retry policy ([4ab0a75](https://git.example/acme/shop/commit/4ab0a75eb6ca0b36e6de1214b8cee9f2c39f9818))
- document back-off ([08cccc3](https://git.example/acme/shop/commit/08cccc3e3c6a1fd41797f14fb4641ea29a60b837))
### Other changes
- Fixed stuff ([0082b4d](https://git.example/acme/shop/commit/0082b4d1b55c3785247a2314c2595e1d37b72723))
- wip: half done ([633f424](https://git.example/acme/shop/commit/633f424efeee2017682d4b7ed7ff8e1a08f3d6e9))
_1 internal change (refactor, test, build, ci, chore, style) not listed._
@@ -0,0 +1,25 @@
--- what the model receives ---
[SYSTEM]
You write the opening paragraph of release notes for developers.
Use only the commits in the list. Do not invent pull request numbers or commit hashes.
Write at most three sentences of plain prose: no headings, no bullet lists.
[USER]
Release v1.1.0. Commits:
- 6e9776a feat(cli): add --json output flag (#3)
- 6ba3519 fix: stop retrying on 4xx
- 4ab0a75 docs: explain retry policy
- 0082b4d other: Fixed stuff
- a061359 refactor(core): rename Order.id to Order.orderId [BREAKING]
- 2ff8458 perf(db): batch inserts in OrderRepository (#5)
- 633f424 other: wip: half done
- 92049cc feat(search): add fuzzy search (#6)
- 08cccc3 docs: document back-off
- dedef67 revert: feat(cli): add --json output flag
HONEST -> from model: true text: This stub counts 2 features and 1 fix; the first feature is "add --json output flag (#3)" (6e9776a).
INVENT_REFERENCES -> from model: false rejected because: cites #999, which is not in the commit list
shipped text: This release contains 10 commits: 2 features and 1 bug fix. 1 breaking change is listed first.
WRITE_HEADING -> from model: false rejected because: contains a markdown heading
shipped text: This release contains 10 commits: 2 features and 1 bug fix. 1 breaking change is listed first.
RAMBLE -> from model: false rejected because: longer than 600 characters
shipped text: This release contains 10 commits: 2 features and 1 bug fix. 1 breaking change is listed first.
@@ -0,0 +1,28 @@
files in the PR by merge-base diff (what Gitea shows): [package-lock.json, src/Export.java]
files by comparing the two branch tips (merge base forgotten): [README.md, package-lock.json, src/Export.java]
prompt size with the default budget: 1739 characters; with no budget: 11076
budget: included=1 truncated=1 names-only=[package-lock.json]
title: Add CSV export (+2 more)
## Summary
This stub counts 1 feature and 1 fix; the first feature is "add CSV export (#7)" (1cbba95).
## Changes
- `feat` add CSV export (1cbba95)
- `fix` escape quotes in CSV (0b05321)
- `chore` update package-lock.json (6454b34)
## Files
| File | Change | + | - |
|---|---|---|---|
| `package-lock.json` | modify | 1 | 1 |
| `src/Export.java` | add | 152 | 0 |
## Checklist
- [ ] Tests pass
- [ ] Docs updated if behaviour changed
@@ -0,0 +1,16 @@
release run 1: created id=100
release run 2: updated id=100 body now: notes, take two
pull request run 1: created #11
pull request run 2: updated #11 title now: Add CSV export (+2 more)
wrong token: Gitea answered 401: {"message":"token is required"}
requests the server saw:
GET /repos/acme/shop/releases/tags/v1.1.0 -> 404
POST /repos/acme/shop/releases -> 201 fields=[tag_name, name, body, draft, prerelease, target_commitish]
GET /repos/acme/shop/releases/tags/v1.1.0 -> 200
PATCH /repos/acme/shop/releases/100 -> 200 fields=[name, body, draft, prerelease, target_commitish]
GET /repos/acme/shop/pulls?state=open&limit=50&page=1 -> 200
POST /repos/acme/shop/pulls -> 201 fields=[base, head, title, body]
GET /repos/acme/shop/pulls?state=open&limit=50&page=1 -> 200
PATCH /repos/acme/shop/pulls/11 -> 201 fields=[body, title]
GET /repos/acme/shop/releases/tags/v9.9.9 -> 401
@@ -0,0 +1,14 @@
$ java -cp ... com.ankurm.releasenotes.ReleaseNotesApp <repo> v1.1.0 https://git.example/acme/shop
## v1.1.0 (2026-01-20)
This stub counts 2 features and 1 fix; the first feature is "add --json output flag (#3)" (6e9776a).
### Breaking changes
- Order.getId() is now Order.getOrderId(), update every caller. ([a061359](https://git.example/acme/shop/commit/a061359aeddbe07c20c074b3fa1f909575076a49))
### Features
- **cli:** add --json output flag ([#3](https://git.example/acme/shop/pulls/3), [6e9776a](https://git.example/acme/shop/commit/6e9776a52f5a1cff3f185922acc3b5b311a2e24c))
- **search:** add fuzzy search ([#6](https://git.example/acme/shop/pulls/6), [92049cc](https://git.example/acme/shop/commit/92049cc1cace8c099d1e230ac7345e515060c3e0))
[... 24 more lines]