File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ private static PullRequestInfo buildPullRequestInfo(
121121 // check if it was set manually
122122 return new PullRequestInfo (
123123 null ,
124- environment .get (Constants .DD_TARGET_BRANCH_HEAD_SHA ),
125- environment .get (Constants .DD_FEATURE_BRANCH_HEAD_SHA ));
124+ environment .get (Constants .DDCI_PULL_REQUEST_TARGET_SHA ),
125+ environment .get (Constants .DDCI_PULL_REQUEST_SOURCE_SHA ));
126126 }
127127
128128 private static String getRepoRoot (CIInfo ciInfo , GitClient .Factory gitClientFactory ) {
Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ public interface Constants {
1212 String CI_VISIBILITY_INSTRUMENTATION_NAME = "civisibility" ;
1313
1414 /**
15- * Env var containing SHA of the feature branch HEAD commit when running in a PR. Can be set
16- * manually if the necessary data is not exposed by the CI provider
15+ * Env var containing SHA of the feature branch HEAD commit when running in a PR. Set manually if
16+ * the necessary data is not exposed by the CI provider
1717 */
18- String DD_FEATURE_BRANCH_HEAD_SHA = "DD_FEATURE_BRANCH_HEAD_SHA " ;
18+ String DDCI_PULL_REQUEST_SOURCE_SHA = "DDCI_PULL_REQUEST_SOURCE_SHA " ;
1919
2020 /**
21- * Env var containing SHA of the target branch HEAD commit when running in a PR. Can be set
22- * manually if the necessary data is not exposed by the CI provider
21+ * Env var containing SHA of the target branch HEAD commit when running in a PR. Set manually if
22+ * the necessary data is not exposed by the CI provider
2323 */
24- String DD_TARGET_BRANCH_HEAD_SHA = "DD_TARGET_BRANCH_HEAD_SHA " ;
24+ String DDCI_PULL_REQUEST_TARGET_SHA = "DDCI_PULL_REQUEST_TARGET_SHA " ;
2525}
You can’t perform that action at this time.
0 commit comments