Skip to content

Commit

Permalink
Merge pull request #146 from gsmet/add-utility-method
Browse files Browse the repository at this point in the history
Specify when version is LTS
  • Loading branch information
gsmet authored Aug 30, 2024
2 parents c1d0a54 + 8614b2e commit 3d396af
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/io/quarkus/bot/release/ReleaseInformation.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ public String getVersion() {
return version;
}

@JsonIgnore
public String getFullVersion() {
if (Branches.isLts(branch)) {
return version + " LTS";
}

return version;
}

public String getBranch() {
return branch;
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/io/quarkus/bot/release/step/Prerequisites.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public int run(Context context, Commands commands, GitHub quarkusBotGitHub, Rele
if (releaseInformation.isMajor()) {
command.add("--major");
}
if (Branches.isLts(releaseInformation.getBranch())) {
command.add("--lts");
}

int exitCode = processes.execute(command);
if (exitCode != 0) {
Expand Down

0 comments on commit 3d396af

Please sign in to comment.