Skip to content
Concourse resource to pull down the latest commits to PRs.
Ruby Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.rubocop.yml
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
LICENSE.md
Makefile
README.md
concourse-github-pull-request.gemspec

README.md

concourse-github-pull-request

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.

Source configuration

  • 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.

Behaviour

check: Look for new commits against PR's.

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).

in: Fetch a ref from github

Pulls down a pull request ref from github.

Params

  • depth: Optional A positive integer will provide a shallow clone of the repository. This may make certain things stop working but is more efficient.

out: This is a no-op.

None.

You can’t perform that action at this time.