@@ -529,10 +529,57 @@ Language Image: go:1.21
529529## [1.1.0](https://github.com/owner/repo/compare/my-library-1.0.0...my-library-1.1.0) (%s)
530530
531531### Features
532+
532533* new feature ([1234567](https://github.com/owner/repo/commit/1234567890abcdef000000000000000000000000))
533534
534535### Bug Fixes
536+
535537* a bug fix ([fedcba0](https://github.com/owner/repo/commit/fedcba0987654321000000000000000000000000))
538+
539+ </details>` ,
540+ librarianVersion , today ),
541+ },
542+ {
543+ name : "single library with multiple features" ,
544+ state : & config.LibrarianState {
545+ Image : "go:1.21" ,
546+ Libraries : []* config.LibraryState {
547+ {
548+ ID : "my-library" ,
549+ // this is the NewVersion in the release note.
550+ Version : "1.1.0" ,
551+ PreviousVersion : "1.0.0" ,
552+ Changes : []* conventionalcommits.ConventionalCommit {
553+ {
554+ Type : "feat" ,
555+ Description : "new feature" ,
556+ SHA : hash1 .String (),
557+ },
558+ {
559+ Type : "feat" ,
560+ Description : "another new feature" ,
561+ SHA : hash2 .String (),
562+ },
563+ },
564+ ReleaseTriggered : true ,
565+ },
566+ },
567+ },
568+ repo : & MockRepository {
569+ RemotesValue : []* git.Remote {git .NewRemote (nil , & gitconfig.RemoteConfig {Name : "origin" , URLs : []string {"https://github.com/owner/repo.git" }})},
570+ },
571+ wantReleaseNote : fmt .Sprintf (`Librarian Version: %s
572+ Language Image: go:1.21
573+ <details><summary>my-library: 1.1.0</summary>
574+
575+ ## [1.1.0](https://github.com/owner/repo/compare/my-library-1.0.0...my-library-1.1.0) (%s)
576+
577+ ### Features
578+
579+ * new feature ([1234567](https://github.com/owner/repo/commit/1234567890abcdef000000000000000000000000))
580+
581+ * another new feature ([fedcba0](https://github.com/owner/repo/commit/fedcba0987654321000000000000000000000000))
582+
536583</details>` ,
537584 librarianVersion , today ),
538585 },
@@ -581,7 +628,9 @@ Language Image: go:1.21
581628## [1.1.0](https://github.com/owner/repo/compare/lib-a-1.0.0...lib-a-1.1.0) (%s)
582629
583630### Features
631+
584632* feature for a ([1234567](https://github.com/owner/repo/commit/1234567890abcdef000000000000000000000000))
633+
585634</details>
586635
587636
@@ -590,7 +639,9 @@ Language Image: go:1.21
590639## [2.0.1](https://github.com/owner/repo/compare/lib-b-2.0.0...lib-b-2.0.1) (%s)
591640
592641### Bug Fixes
642+
593643* fix for b ([fedcba0](https://github.com/owner/repo/commit/fedcba0987654321000000000000000000000000))
644+
594645</details>` ,
595646 librarianVersion , today , today ),
596647 },
@@ -630,7 +681,9 @@ Language Image: go:1.21
630681## [1.1.0](https://github.com/owner/repo/compare/my-library-1.0.0...my-library-1.1.0) (%s)
631682
632683### Features
684+
633685* new feature ([1234567](https://github.com/owner/repo/commit/1234567890abcdef000000000000000000000000))
686+
634687</details>` ,
635688 librarianVersion , today ),
636689 },
0 commit comments