class Google::Apis::CloudbuildV1::PullRequestFilter

PullRequestFilter contains filter properties for matching GitHub Pull Requests.

Attributes

branch[RW]

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]

comment_control[RW]

Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`. Corresponds to the JSON property `commentControl` @return [String]

invert_regex[RW]

If true, branches that do NOT match the git_ref will trigger a build. Corresponds to the JSON property `invertRegex` @return [Boolean]

invert_regex?[RW]

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

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1/classes.rb, line 2230
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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