Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from Licho1/patch-1
Browse files Browse the repository at this point in the history
Make it show correct branch name
  • Loading branch information
pascal-zarrad authored Feb 18, 2020
2 parents 0e1d2cd + ac53981 commit d0f89fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private DiscordEmbedField[] buildFieldsForRunningBuild(SRunningBuild sRunningBui
// Branch
Branch branch = sRunningBuild.getBranch();
String branchName = "Default";
if (branch != null && branch.getName().equals(Branch.DEFAULT_BRANCH_NAME)) {
if (branch != null && !branch.getName().equals(Branch.DEFAULT_BRANCH_NAME)) {
branchName = branch.getDisplayName();
}
discordEmbedFields.add(new DiscordEmbedField("Branch", branchName, true));
Expand Down

0 comments on commit d0f89fb

Please sign in to comment.