From b422b00ac77529a6108f121c24b5a294b73a8e67 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 25 Mar 2024 14:30:21 +0100 Subject: [PATCH] Add PR target as a tag --- .../io/quarkus/develocity/project/scan/BuildScanMetadata.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/io/quarkus/develocity/project/scan/BuildScanMetadata.java b/src/main/java/io/quarkus/develocity/project/scan/BuildScanMetadata.java index e9e70d1..3a9bc94 100644 --- a/src/main/java/io/quarkus/develocity/project/scan/BuildScanMetadata.java +++ b/src/main/java/io/quarkus/develocity/project/scan/BuildScanMetadata.java @@ -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"));