You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`repository`| Yes |`itsdalmo/test-repository`| The repository to target. |
25
-
|`access_token`| Yes || A Github Access Token with repository access (required for setting status on commits). N.B. If you want github-pr-resource to work with a private repository. Set `repo:full` permissions on the access token you create on GitHub. If it is a public repository, `repo:status` is enough. |
26
-
|`v3_endpoint`| No |`https://api.github.com`| Endpoint to use for the V3 Github API (Restful). |
27
-
|`v4_endpoint`| No |`https://api.github.com/graphql`| Endpoint to use for the V4 Github API (Graphql). |
28
-
|`paths`| No |`terraform/*/*.tf`| Only produce new versions if the PR includes changes to files that match one or more glob patterns or prefixes. |
29
-
|`ignore_paths`| No |`.ci/`| Inverse of the above. Pattern syntax is documented in [filepath.Match](https://golang.org/pkg/path/filepath/#Match), or a path prefix can be specified (e.g. `.ci/` will match everything in the `.ci` directory). |
30
-
|`disable_ci_skip`| No |`true`| Disable ability to skip builds with `[ci skip]` and `[skip ci]` in commit message or pull request title. |
31
-
|`skip_ssl_verification`| No |`true`| Disable SSL/TLS certificate validation on git and API clients. Use with care! |
32
-
|`disable_forks`| No |`true`| Disable triggering of the resource if the pull request's fork repository is different to the configured repository. |
33
-
|`require_review_approval`| No |`true`| Disable triggering of the resource if the pull request does not have at least 1 approved review. |
34
-
|`git_crypt_key`| No |`AEdJVENSWVBUS0VZAAAAA...`| Base64 encoded git-crypt key. Setting this will unlock / decrypt the repository with git-crypt. To get the key simply execute `git-crypt export-key -- - | base64` in an encrypted repository. |
35
-
|`base_branch`| No |`master`| Name of a branch. The pipeline will only trigger on pull requests against the specified branch. |
|`repository`| Yes |`itsdalmo/test-repository`| The repository to target. |
25
+
|`access_token`| Yes || A Github Access Token with repository access (required for setting status on commits). N.B. If you want github-pr-resource to work with a private repository. Set `repo:full` permissions on the access token you create on GitHub. If it is a public repository, `repo:status` is enough. |
26
+
|`v3_endpoint`| No |`https://api.github.com`| Endpoint to use for the V3 Github API (Restful). |
27
+
|`v4_endpoint`| No |`https://api.github.com/graphql`| Endpoint to use for the V4 Github API (Graphql). |
28
+
|`paths`| No |`terraform/*/*.tf`| Only produce new versions if the PR includes changes to files that match one or more glob patterns or prefixes. |
29
+
|`ignore_paths`| No |`.ci/`| Inverse of the above. Pattern syntax is documented in [filepath.Match](https://golang.org/pkg/path/filepath/#Match), or a path prefix can be specified (e.g. `.ci/` will match everything in the `.ci` directory). |
30
+
|`disable_ci_skip`| No |`true`| Disable ability to skip builds with `[ci skip]` and `[skip ci]` in commit message or pull request title. |
31
+
|`skip_ssl_verification`| No |`true`| Disable SSL/TLS certificate validation on git and API clients. Use with care! |
32
+
|`disable_forks`| No |`true`| Disable triggering of the resource if the pull request's fork repository is different to the configured repository. |
33
+
|`required_review_approvals`| No |`2`| Disable triggering of the resource if the pull request does not have at least `X` approved review(s). |
34
+
|`git_crypt_key`| No |`AEdJVENSWVBUS0VZAAAAA...`| Base64 encoded git-crypt key. Setting this will unlock / decrypt the repository with git-crypt. To get the key simply execute `git-crypt export-key -- - | base64` in an encrypted repository. |
35
+
|`base_branch`| No |`master`| Name of a branch. The pipeline will only trigger on pull requests against the specified branch. |
36
36
37
37
Notes:
38
38
- If `v3_endpoint` is set, `v4_endpoint` must also be set (and the other way around).
39
39
- Look at the [Concourse Resources documentation](https://concourse-ci.org/resources.html#resource-webhook-token)
40
40
for webhook token configuration.
41
-
- When using `require_review_approval`, you may also want to enable GitHub's branch protection rules to [dismiss stale pull request approvals when new commits are pushed](https://help.github.com/en/articles/enabling-required-reviews-for-pull-requests).
41
+
- When using `required_review_approvals`, you may also want to enable GitHub's branch protection rules to [dismiss stale pull request approvals when new commits are pushed](https://help.github.com/en/articles/enabling-required-reviews-for-pull-requests).
42
42
43
43
## Behaviour
44
44
@@ -207,6 +207,7 @@ If you are coming from [jtarchie/github-pullrequest-resource][original-resource]
207
207
- `api_endpoint`-> `v3_endpoint`
208
208
- `base`-> `base_branch`
209
209
- `base_url`-> `target_url`
210
+
- `require_review_approval`-> `required_review_approvals` (`bool` to `int`)
0 commit comments