@@ -1194,6 +1194,43 @@ Language Image: go:1.21
11941194 ghRepo : & github.Repository {},
11951195 wantReleaseNote : fmt .Sprintf ("Librarian Version: %s\n Language Image: go:1.21" , librarianVersion ),
11961196 },
1197+ {
1198+ name : "generate with chore" ,
1199+ state : & config.LibrarianState {
1200+ Image : "go:1.21" ,
1201+ Libraries : []* config.LibraryState {
1202+ {
1203+ ID : "my-library" ,
1204+ // this is the newVersion in the release note.
1205+ Version : "1.1.0" ,
1206+ PreviousVersion : "1.0.0" ,
1207+ ReleaseTriggered : true ,
1208+ Changes : []* conventionalcommits.ConventionalCommit {
1209+ {
1210+ Type : "chore" ,
1211+ Subject : "some chore" ,
1212+ Body : "this is the body" ,
1213+ CommitHash : hash1 .String (),
1214+ IsNested : true ,
1215+ },
1216+ },
1217+ },
1218+ },
1219+ },
1220+ ghRepo : & github.Repository {Owner : "owner" , Name : "repo" },
1221+ wantReleaseNote : fmt .Sprintf (`Librarian Version: %s
1222+ Language Image: go:1.21
1223+ <details><summary>my-library: 1.1.0</summary>
1224+
1225+ ## [1.1.0](https://github.com/owner/repo/compare/my-library-1.0.0...my-library-1.1.0) (%s)
1226+
1227+ ### Miscellaneous Chores
1228+
1229+ * some chore ([1234567](https://github.com/owner/repo/commit/1234567))
1230+
1231+ </details>` ,
1232+ librarianVersion , today ),
1233+ },
11971234 } {
11981235 t .Run (test .name , func (t * testing.T ) {
11991236 t .Parallel ()
0 commit comments