Google Cloud Build V1 Client - Class PullRequestFilter (0.13.2)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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

Returns
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getCommentControl

Configure builds to run whether a repository owner or collaborator need to comment /gcbrun.

Returns
TypeDescription
int

setCommentControl

Configure builds to run whether a repository owner or collaborator need to comment /gcbrun.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getInvertRegex

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

Returns
TypeDescription
bool

setInvertRegex

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getGitRef

Returns
TypeDescription
string