Reference documentation and code samples for the Cloud Build V1 API module Google::Cloud::Build::V1::PullRequestFilter::CommentControl.
Controls whether or not a /gcbrun
comment is required from a user with
repository write permission or above in order to
trigger Build runs for pull requests. Pull Request update events differ
between repo types.
Check repo specific guides
(GitHub,
Bitbucket,
GitLab
for details.
Constants
COMMENTS_DISABLED
value: 0
Do not require /gcbrun
comments from a user with repository write
permission or above on pull requests before builds are triggered.
Comments that contain /gcbrun
will still fire builds so this should
be thought of as comments not required.
COMMENTS_ENABLED
value: 1
Builds will only fire in response to pull requests if:
- The pull request author has repository write permission or above and
/gcbrun
is in the PR description. - A user with repository writer permissions or above comments
/gcbrun
on a pull request authored by any user.
COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY
value: 2
Builds will only fire in response to pull requests if:
- The pull request author is a repository writer or above.
- If the author does not have write permissions, a user with write
permissions or above must comment
/gcbrun
in order to fire a build.