Enum PullRequestFilter.CommentControl (3.61.0)

public enum PullRequestFilter.CommentControl extends Enum<PullRequestFilter.CommentControl> implements ProtocolMessageEnum

Controls whether or not a /gcbrun comment is required from a user with repository write permission or above in order to trigger Build runs for pull requests. Pull Request update events differ between repo types. Check repo specific guides (GitHub, Bitbucket, GitLab for details.

Protobuf enum google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl

Implements

ProtocolMessageEnum

Static Fields

Name Description
COMMENTS_DISABLED

Do not require /gcbrun comments from a user with repository write permission or above on pull requests before builds are triggered. Comments that contain /gcbrun will still fire builds so this should be thought of as comments not required.

COMMENTS_DISABLED = 0;

COMMENTS_DISABLED_VALUE

Do not require /gcbrun comments from a user with repository write permission or above on pull requests before builds are triggered. Comments that contain /gcbrun will still fire builds so this should be thought of as comments not required.

COMMENTS_DISABLED = 0;

COMMENTS_ENABLED

Builds will only fire in response to pull requests if:

  1. The pull request author has repository write permission or above and /gcbrun is in the PR description.
  2. A user with repository writer permissions or above comments /gcbrun on a pull request authored by any user.

COMMENTS_ENABLED = 1;

COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY

Builds will only fire in response to pull requests if:

  1. The pull request author is a repository writer or above.
  2. If the author does not have write permissions, a user with write permissions or above must comment /gcbrun in order to fire a build.

COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2;

COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY_VALUE

Builds will only fire in response to pull requests if:

  1. The pull request author is a repository writer or above.
  2. If the author does not have write permissions, a user with write permissions or above must comment /gcbrun in order to fire a build.

COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2;

COMMENTS_ENABLED_VALUE

Builds will only fire in response to pull requests if:

  1. The pull request author has repository write permission or above and /gcbrun is in the PR description.
  2. A user with repository writer permissions or above comments /gcbrun on a pull request authored by any user.

COMMENTS_ENABLED = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()