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.
Implements
IMessagePullRequestFilter, IEquatablePullRequestFilter, IDeepCloneablePullRequestFilter, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.CloudBuildV1Assembly
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; }
Configure builds to run whether a repository owner or collaborator need to
comment /gcbrun
.
Property Value | |
---|---|
Type | Description |
PullRequestFilterTypesCommentControl |
GitRefCase
public PullRequestFilter.GitRefOneofCase GitRefCase { get; }
Property Value | |
---|---|
Type | Description |
PullRequestFilterGitRefOneofCase |
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 |