Skip to content

Commit

Permalink
Added COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY support to gith…
Browse files Browse the repository at this point in the history
…ub pullRequest commentControl (#4055) (#2552)

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Oct 6, 2020
1 parent e9f49c1 commit 113be9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/4055.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
cloudbuild: Added `COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY` support to `google_cloudbuild_trigger.github.pull_request.comment_control` field
```
4 changes: 2 additions & 2 deletions google-beta/resource_cloud_build_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".`
"comment_control": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"COMMENTS_DISABLED", "COMMENTS_ENABLED", ""}, false),
Description: `Whether to block builds on a "/gcbrun" comment from a repository owner or collaborator. Possible values: ["COMMENTS_DISABLED", "COMMENTS_ENABLED"]`,
ValidateFunc: validation.StringInSlice([]string{"COMMENTS_DISABLED", "COMMENTS_ENABLED", "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY", ""}, false),
Description: `Whether to block builds on a "/gcbrun" comment from a repository owner or collaborator. Possible values: ["COMMENTS_DISABLED", "COMMENTS_ENABLED", "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY"]`,
},
"invert_regex": {
Type: schema.TypeBool,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/cloudbuild_trigger.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ The `pull_request` block supports:
* `comment_control` -
(Optional)
Whether to block builds on a "/gcbrun" comment from a repository owner or collaborator.
Possible values are `COMMENTS_DISABLED` and `COMMENTS_ENABLED`.
Possible values are `COMMENTS_DISABLED`, `COMMENTS_ENABLED`, and `COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY`.

* `invert_regex` -
(Optional)
Expand Down

0 comments on commit 113be9e

Please sign in to comment.