Skip to content

Commit

Permalink
Merge pull request #13 from gsmet/add-pr-target
Browse files Browse the repository at this point in the history
Add PR target as a tag
  • Loading branch information
gsmet authored Mar 25, 2024
2 parents 001804d + b422b00 commit 4d27798
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public static void addMetadataToBuildScan(BuildScanApi buildScanApi) {

buildScanApi.link("Pull request",
System.getenv("GITHUB_SERVER_URL") + "/" + System.getenv("GITHUB_REPOSITORY") + "/pull/" + prNumber);

if (!isBlank(System.getenv("GITHUB_BASE_REF"))) {
buildScanApi.tag(System.getenv("GITHUB_BASE_REF"));
}
}

similarBuildsTags.add(System.getenv("RUNNER_OS"));
Expand Down

0 comments on commit 4d27798

Please sign in to comment.