DotCi icon indicating copy to clipboard operation
DotCi copied to clipboard

Parameter for Remote Pull Request

Open tmack8001 opened this issue 9 years ago • 1 comments

It would be useful to have an environmental variable for if a Pull Request originated from the source repository or a forked (external) repository. This could be done several different ways, but the easiest I can think of are the following:

  1. BUILD_CAUSE=GITHUBREMOTEPULLREQUESTCAUSE

or adding the source org/user into the branch source name similarly to how Github would display this within the pull request

  1. DOTCI_PULL_REQUEST_SOURCE_BRANCH=user:branch

tmack8001 avatar Dec 04 '15 00:12 tmack8001

The value I'm looking for is held within GitHubPullRequestCause.label just to expose that so I can setup a project's .ci.yml to do specific tasks when we receive a pull request from a forked repository would be great.

tmack8001 avatar Dec 04 '15 00:12 tmack8001