class Google::Apis::CloudbuildV1::PullRequestFilter
PullRequestFilter
contains filter properties for matching GitHub Pull Requests.
Attributes
Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at github.com/google/re2/wiki/ Syntax Corresponds to the JSON property `branch` @return [String]
Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`. Corresponds to the JSON property `commentControl` @return [String]
If true, branches that do NOT match the git_ref will trigger a build. Corresponds to the JSON property `invertRegex` @return [Boolean]
If true, branches that do NOT match the git_ref will trigger a build. Corresponds to the JSON property `invertRegex` @return [Boolean]
Public Class Methods
# File lib/google/apis/cloudbuild_v1/classes.rb, line 2230 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudbuild_v1/classes.rb, line 2235 def update!(**args) @branch = args[:branch] if args.key?(:branch) @comment_control = args[:comment_control] if args.key?(:comment_control) @invert_regex = args[:invert_regex] if args.key?(:invert_regex) end