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
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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 |
↳ 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
| Returns | |
|---|---|
| Type | Description |
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
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCommentControl
Configure builds to run whether a repository owner or collaborator need to
comment /gcbrun.
| Returns | |
|---|---|
| Type | Description |
int |
|
setCommentControl
Configure builds to run whether a repository owner or collaborator need to
comment /gcbrun.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInvertRegex
If true, branches that do NOT match the git_ref will trigger a build.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setInvertRegex
If true, branches that do NOT match the git_ref will trigger a build.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGitRef
| Returns | |
|---|---|
| Type | Description |
string |
|