Class PullRequestFilter (3.24.0)

PullRequestFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

PullRequestFilter contains filter properties for matching GitHub Pull Requests.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
branch str
Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax This field is a member of oneof_ git_ref.
comment_control google.cloud.devtools.cloudbuild_v1.types.PullRequestFilter.CommentControl
Configure builds to run whether a repository owner or collaborator need to comment /gcbrun.
invert_regex bool
If true, branches that do NOT match the git_ref will trigger a build.

Classes

CommentControl

CommentControl(value)

Controls behavior of Pull Request comments.

Values: COMMENTS_DISABLED (0): Do not require comments on Pull Requests before builds are triggered. COMMENTS_ENABLED (1): Enforce that repository owners or collaborators must comment on Pull Requests before builds are triggered. COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY (2): Enforce that repository owners or collaborators must comment on external contributors' Pull Requests before builds are triggered.