Skip to content

Commit

Permalink
Fixed empty PR branch custom value
Browse files Browse the repository at this point in the history
  • Loading branch information
ribafish committed Apr 4, 2024
1 parent 2408966 commit 4749dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gradle/CustomBuildScanEnhancements.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private void execute() {
addCustomValueAndSearchLink(buildScan, "CI workflow", value));
envVariable("GITHUB_RUN_ID").ifPresent(value ->
addCustomValueAndSearchLink(buildScan, "CI run", value));
envVariable("GITHUB_HEAD_REF").ifPresent(value ->
envVariable("GITHUB_HEAD_REF").filter(value -> !value.isEmpty()).ifPresent(value ->
buildScan.value("PR branch", value));
}

Expand Down

0 comments on commit 4749dcc

Please sign in to comment.