Skip to content

Commit

Permalink
Issue groupon#203 adding environment variable for pull request label …
Browse files Browse the repository at this point in the history
…containing source repository organization and branch (ex. 'tmack8001/issue-203-forked-repo
  • Loading branch information
Trevor Mack committed Mar 17, 2016
1 parent a6298c7 commit e67af0a
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 e67af0a

Please sign in to comment.