Class: Google::Cloud::Build::V1::PullRequestFilter

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb

Overview

PullRequestFilter contains filter properties for matching GitHub Pull Requests.

Defined Under Namespace

Modules: CommentControl

Instance Attribute Summary collapse

Instance Attribute Details

#branch::String

Returns 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:



1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1642

class PullRequestFilter
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Controls behavior of Pull Request comments.
  module CommentControl
    # Do not require comments on Pull Requests before builds are triggered.
    COMMENTS_DISABLED = 0

    # Enforce that repository owners or collaborators must comment on Pull
    # Requests before builds are triggered.
    COMMENTS_ENABLED = 1

    # Enforce that repository owners or collaborators must comment on external
    # contributors' Pull Requests before builds are triggered.
    COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2
  end
end

#comment_control::Google::Cloud::Build::V1::PullRequestFilter::CommentControl

Returns Configure builds to run whether a repository owner or collaborator need to comment /gcbrun.

Returns:



1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1642

class PullRequestFilter
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Controls behavior of Pull Request comments.
  module CommentControl
    # Do not require comments on Pull Requests before builds are triggered.
    COMMENTS_DISABLED = 0

    # Enforce that repository owners or collaborators must comment on Pull
    # Requests before builds are triggered.
    COMMENTS_ENABLED = 1

    # Enforce that repository owners or collaborators must comment on external
    # contributors' Pull Requests before builds are triggered.
    COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2
  end
end

#invert_regex::Boolean

Returns 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.



1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 1642

class PullRequestFilter
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Controls behavior of Pull Request comments.
  module CommentControl
    # Do not require comments on Pull Requests before builds are triggered.
    COMMENTS_DISABLED = 0

    # Enforce that repository owners or collaborators must comment on Pull
    # Requests before builds are triggered.
    COMMENTS_ENABLED = 1

    # Enforce that repository owners or collaborators must comment on external
    # contributors' Pull Requests before builds are triggered.
    COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2
  end
end