Reference documentation and code samples for the Google Cloud Build V1 Client class PullRequestFilter.
PullRequestFilter contains filter properties for matching GitHub Pull Requests.
Generated from protobuf message google.devtools.cloudbuild.v1.PullRequestFilter
Namespace
Google \ Cloud \ Build \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ branch
string
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
↳ comment_control
int
Configure builds to run whether a repository owner or collaborator need to comment /gcbrun
.
↳ invert_regex
bool
If true, branches that do NOT match the git_ref will trigger a build.
getBranch
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
string
hasBranch
setBranch
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
var
string
$this
getCommentControl
Configure builds to run whether a repository owner or collaborator need to
comment /gcbrun
.
int
setCommentControl
Configure builds to run whether a repository owner or collaborator need to
comment /gcbrun
.
var
int
$this
getInvertRegex
If true, branches that do NOT match the git_ref will trigger a build.
bool
setInvertRegex
If true, branches that do NOT match the git_ref will trigger a build.
var
bool
$this
getGitRef
string