Skip to content

Commit 5ea9c74

Browse files
committed
Don't duplicate lines when issue has release notes link
1 parent 6344c47 commit 5ea9c74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/MoveToSnapshots.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ protected String issueBody(Upgrade upgrade, Issue existingUpgrade) {
8787
if (releaseNotesLink != null) {
8888
lines.add("Upgrade to [%s](%s).".formatted(description, releaseNotesLink));
8989
}
90-
lines.add("Upgrade to %s.".formatted(description));
90+
else {
91+
lines.add("Upgrade to %s.".formatted(description));
92+
}
9193
if (existingUpgrade != null) {
9294
lines.add("Supersedes #" + existingUpgrade.getNumber());
9395
}

0 commit comments

Comments
 (0)