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(
121
121
// check if it was set manually
122
122
return new PullRequestInfo (
123
123
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 ));
126
126
}
127
127
128
128
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 {
12
12
String CI_VISIBILITY_INSTRUMENTATION_NAME = "civisibility" ;
13
13
14
14
/**
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
17
17
*/
18
- String DD_FEATURE_BRANCH_HEAD_SHA = "DD_FEATURE_BRANCH_HEAD_SHA " ;
18
+ String DDCI_PULL_REQUEST_SOURCE_SHA = "DDCI_PULL_REQUEST_SOURCE_SHA " ;
19
19
20
20
/**
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
23
23
*/
24
- String DD_TARGET_BRANCH_HEAD_SHA = "DD_TARGET_BRANCH_HEAD_SHA " ;
24
+ String DDCI_PULL_REQUEST_TARGET_SHA = "DDCI_PULL_REQUEST_TARGET_SHA " ;
25
25
}
You can’t perform that action at this time.
0 commit comments