Reference documentation and code samples for the Cloud Build v1 API enum PullRequestFilter.Types.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.
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.
CommentsEnabled
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.
CommentsEnabledForExternalContributorsOnly
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This page provides documentation for the `PullRequestFilter.Types.CommentControl` enum within the Google Cloud Build v1 API, detailing its purpose in controlling build triggers for pull requests."],["The latest version documented is 2.15.0, with older versions ranging back to 1.0.0 also being accessible."],["The `CommentControl` enum offers three distinct fields: `CommentsDisabled`, `CommentsEnabled`, and `CommentsEnabledForExternalContributorsOnly`, each defining different conditions for triggering builds based on user permissions and `/gcbrun` comments."],["The documentation provides guidelines for different repository types, such as GitHub, Bitbucket, and GitLab, and how pull request updates may trigger build runs, if enabled."]]],[]]