Skip to content

Instantly share code, notes, and snippets.

@mdb
Created March 28, 2019 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdb/0f9fd69776cb093f397016095ef254bc to your computer and use it in GitHub Desktop.
Save mdb/0f9fd69776cb093f397016095ef254bc to your computer and use it in GitHub Desktop.
resources:
- name: my-code-pr
type: pull-request
check_every: 24h
webhook_token: ((webhook-token))
source:
repository: user/my-code
access_token: ((github-access-token))
v3_endpoint: https://github.com/api/v3/
v4_endpoint: https://github.com/api/graphql
resource_types:
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
jobs:
- name: validate-pr
plan:
- get: my-code-pr
trigger: true
- task: validate
config:
platform: linux
image_resource:
type: docker-image
source: {repository: busybox}
run:
path: echo
args: [hello world]
on_success:
put: my-code-pr
params:
path: my-code-pr
status: success
on_failure:
put: my-code-pr
params:
path: my-code-pr
status: failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment