Cloud Build v1 API - Class PullRequestFilter (2.2.0)

public sealed class PullRequestFilter : IMessage<PullRequestFilter>, IEquatable<PullRequestFilter>, IDeepCloneable<PullRequestFilter>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Build v1 API class PullRequestFilter.

PullRequestFilter contains filter properties for matching GitHub Pull Requests.

Inheritance

Object > PullRequestFilter

Namespace

Google.Cloud.CloudBuild.V1

Assembly

Google.Cloud.CloudBuild.V1.dll

Constructors

PullRequestFilter()

public PullRequestFilter()

PullRequestFilter(PullRequestFilter)

public PullRequestFilter(PullRequestFilter other)
Parameter
NameDescription
otherPullRequestFilter

Properties

Branch

public string Branch { get; set; }

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

Property Value
TypeDescription
String

CommentControl

public PullRequestFilter.Types.CommentControl CommentControl { get; set; }

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

Property Value
TypeDescription
PullRequestFilter.Types.CommentControl

GitRefCase

public PullRequestFilter.GitRefOneofCase GitRefCase { get; }
Property Value
TypeDescription
PullRequestFilter.GitRefOneofCase

InvertRegex

public bool InvertRegex { get; set; }

If true, branches that do NOT match the git_ref will trigger a build.

Property Value
TypeDescription
Boolean