Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter for Remote Pull Request #203

Open
tmack8001 opened this issue Dec 4, 2015 · 1 comment
Open

Parameter for Remote Pull Request #203

tmack8001 opened this issue Dec 4, 2015 · 1 comment

Comments

@tmack8001
Copy link
Contributor

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
Copy link
Contributor Author

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 pushed a commit to tmack8001/DotCi that referenced this issue Mar 17, 2016
…containing source repository organization and branch (ex. 'tmack8001/issue-203-forked-repo
suryagaddipati added a commit that referenced this issue Mar 19, 2016
Issue #203 adding environment variable for pull request label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant