Cloud Build v1 API - Class PullRequestFilter (2.15.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
Name Description
other PullRequestFilter

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
Type Description
string

CommentControl

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

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.

Property Value
Type Description
PullRequestFilterTypesCommentControl

GitRefCase

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

HasBranch

public bool HasBranch { get; }

Gets whether the "branch" field is set

Property Value
Type Description
bool

InvertRegex

public bool InvertRegex { get; set; }

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

Property Value
Type Description
bool