Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::PullRequestFilter.
PullRequestFilter contains filter properties for matching GitHub Pull Requests.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#branch
def branch() -> ::String
-
(::String) — 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
#branch=
def branch=(value) -> ::String
-
value (::String) — 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
-
(::String) — 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
#comment_control
def comment_control() -> ::Google::Cloud::Build::V1::PullRequestFilter::CommentControl
-
(::Google::Cloud::Build::V1::PullRequestFilter::CommentControl) — If CommentControl is enabled, depending on the setting, builds may not
fire until a repository writer comments
/gcbrun
on a pull request or/gcbrun
is in the pull request description. Only PR comments that contain/gcbrun
will trigger builds.If CommentControl is set to disabled, comments with
/gcbrun
from a user with repository write permission or above will still trigger builds to run.
#comment_control=
def comment_control=(value) -> ::Google::Cloud::Build::V1::PullRequestFilter::CommentControl
-
value (::Google::Cloud::Build::V1::PullRequestFilter::CommentControl) — If CommentControl is enabled, depending on the setting, builds may not
fire until a repository writer comments
/gcbrun
on a pull request or/gcbrun
is in the pull request description. Only PR comments that contain/gcbrun
will trigger builds.If CommentControl is set to disabled, comments with
/gcbrun
from a user with repository write permission or above will still trigger builds to run.
-
(::Google::Cloud::Build::V1::PullRequestFilter::CommentControl) — If CommentControl is enabled, depending on the setting, builds may not
fire until a repository writer comments
/gcbrun
on a pull request or/gcbrun
is in the pull request description. Only PR comments that contain/gcbrun
will trigger builds.If CommentControl is set to disabled, comments with
/gcbrun
from a user with repository write permission or above will still trigger builds to run.
#invert_regex
def invert_regex() -> ::Boolean
- (::Boolean) — If true, branches that do NOT match the git_ref will trigger a build.
#invert_regex=
def invert_regex=(value) -> ::Boolean
- value (::Boolean) — If true, branches that do NOT match the git_ref will trigger a build.
- (::Boolean) — If true, branches that do NOT match the git_ref will trigger a build.