Class: Google::Apis::CloudbuildV1::PullRequestFilter

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb

Overview

PullRequestFilter contains filter properties for matching GitHub Pull Requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PullRequestFilter

Returns a new instance of PullRequestFilter.



1027
1028
1029
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1027

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#branchString

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 Corresponds to the JSON property branch

Returns:

  • (String)


1019
1020
1021
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1019

def branch
  @branch
end

#comment_controlString

Whether to block builds on a "/gcbrun" comment from a repository admin or collaborator. Corresponds to the JSON property commentControl

Returns:

  • (String)


1025
1026
1027
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1025

def comment_control
  @comment_control
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1032
1033
1034
1035
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1032

def update!(**args)
  @branch = args[:branch] if args.key?(:branch)
  @comment_control = args[:comment_control] if args.key?(:comment_control)
end