Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit a03ae58

Browse files
committed
Add example using pull requests
1 parent 838f8c6 commit a03ae58

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,16 @@ A typical use case is to update the status of a commit as it traverses your pipe
7575
repository: {{repo_github_path}} # +
7676
access_token: {{repo_github_token}} # +
7777

78-
For another example, see [`ci/pipelines/main.yml`](ci/pipelines/main.yml) which operates against this repository.
78+
When testing pull requests, use the PR ref as the `branch`. For example, if testing PR #12345 to your repository, your resource might look like...
79+
80+
name: "pr-status"
81+
type: "github-status"
82+
source:
83+
repository: {{repo_github_path}}
84+
access_token: {{repo_github_token}}
85+
branch: "pull/12345/head" # +
86+
87+
For another pipeline example, see [`ci/pipelines/main.yml`](ci/pipelines/main.yml) which operates against this repository.
7988

8089

8190
## Installation
@@ -89,7 +98,7 @@ To install on all Concourse workers, update your deployment manifest properties
8998

9099
properties:
91100
groundcrew:
92-
resource_types:
101+
additional_resource_types:
93102
- image: "docker:///dpb587/github-status-resource#master" # +
94103
type: "github-status" # +
95104

0 commit comments

Comments
 (0)