DotCi
DotCi copied to clipboard
Parameter for Remote Pull Request
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:
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
DOTCI_PULL_REQUEST_SOURCE_BRANCH=user:branch
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.