@@ -536,6 +536,58 @@ Language Image: go:1.21
536536
537537* a bug fix ([fedcba0](https://github.com/owner/repo/commit/fedcba0987654321000000000000000000000000))
538538
539+ </details>` ,
540+ librarianVersion , today ),
541+ },
542+ {
543+ name : "single library release, with cl num" ,
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+ Subject : "new feature" ,
556+ SHA : hash1 .String (),
557+ Footers : map [string ]string {
558+ "PiperOrigin-RevId" : "123456" ,
559+ },
560+ },
561+ {
562+ Type : "fix" ,
563+ Subject : "a bug fix" ,
564+ SHA : hash2 .String (),
565+ Footers : map [string ]string {
566+ "PiperOrigin-RevId" : "987654" ,
567+ },
568+ },
569+ },
570+ ReleaseTriggered : true ,
571+ },
572+ },
573+ },
574+ repo : & MockRepository {
575+ RemotesValue : []* git.Remote {git .NewRemote (nil , & gitconfig.RemoteConfig {Name : "origin" , URLs : []string {"https://github.com/owner/repo.git" }})},
576+ },
577+ wantReleaseNote : fmt .Sprintf (`Librarian Version: %s
578+ Language Image: go:1.21
579+ <details><summary>my-library: 1.1.0</summary>
580+
581+ ## [1.1.0](https://github.com/owner/repo/compare/my-library-1.0.0...my-library-1.1.0) (%s)
582+
583+ ### Features
584+
585+ * new feature (PiperOrigin-RevId: 123456) ([1234567](https://github.com/owner/repo/commit/1234567890abcdef000000000000000000000000))
586+
587+ ### Bug Fixes
588+
589+ * a bug fix (PiperOrigin-RevId: 987654) ([fedcba0](https://github.com/owner/repo/commit/fedcba0987654321000000000000000000000000))
590+
539591</details>` ,
540592 librarianVersion , today ),
541593 },
0 commit comments