Created
March 28, 2019 12:27
-
-
Save mdb/0f9fd69776cb093f397016095ef254bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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