This is an implementation of a concourse resource that deals with pull requests.
When a PR is made, this resource will fetch the PR into the requested directory.
It uses a check to ensure that it doesn't touch things twice, this effectively stores state in Github and requires an access_token that can set these states to function correctly.
uri: Required The uri to the github repo to check for pull requests.access_token: Required For talking to the API in the check step.private_key: Optional For fetching sources for private repositories.branch: Optional The branch to detect PR's against. If a PR is opened but it's not against this branch it will not trigger.
Uses the github API to check if a commit it doesn't know about has landed in a PR (the latest commit on any PR that doesn't have it's check).
Pulls down a pull request ref from github.
depth: Optional A positive integer will provide a shallow clone of the repository. This may make certain things stop working but is more efficient.
None.