Cloud Build v1 API - Class PullRequestFilter (2.8.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
PullRequestFilterTypesCommentControl

GitRefCase

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

HasBranch

public bool HasBranch { get; }

Gets whether the "branch" field is set

Property Value
TypeDescription
bool

InvertRegex

public bool InvertRegex { get; set; }

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

Property Value
TypeDescription
bool