Skip to content

Commit c8c0479

Browse files
Update env var names
1 parent ab6df6e commit c8c0479

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/CiVisibilityRepoServices.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/Constants.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)