Skip to content

Commit

Permalink
Merge pull request #230 from tmack8001/issue-203-forked-repo
Browse files Browse the repository at this point in the history
Issue #203 adding environment variable for pull request label
  • Loading branch information
suryagaddipati committed Mar 19, 2016
2 parents a6298c7 + e67af0a commit f16ce28
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public GitHubPullRequestCause(Payload payload, String sha, String label, String
@Override
public Map<String, String> getEnvVars() {
Map vars = super.getEnvVars();
putIfNotNull(vars, "DOTCI_PULL_REQUEST_LABEL", getLabel());
putIfNotNull(vars, "DOTCI_PULL_REQUEST_TARGET_BRANCH", getTargetBranch());
putIfNotNull(vars, "DOTCI_PULL_REQUEST_SOURCE_BRANCH", getSourceBranch());
return vars;
Expand All @@ -60,6 +61,10 @@ public String getName() {
return "GITHUB_PULL_REQUEST";
}

public String getLabel() {
return label;
}

public String getTargetBranch() {
return targetBranch;
}
Expand Down

0 comments on commit f16ce28

Please sign in to comment.