Cloud Build V1 API - Class Google::Cloud::Build::V1::PullRequestFilter (v1.5.0)

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
Returns
  • (::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
Parameter
  • 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

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::Boolean) — If true, branches that do NOT match the git_ref will trigger a build.

#invert_regex=

def invert_regex=(value) -> ::Boolean
Parameter
  • value (::Boolean) — If true, branches that do NOT match the git_ref will trigger a build.
Returns
  • (::Boolean) — If true, branches that do NOT match the git_ref will trigger a build.