- All Implemented Interfaces:
Serializable,Comparable<GHRepositoryRule.Type>
- Enclosing class:
- GHRepositoryRule
The type of the ruleset.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionbranch_name_patterncode_scanningcommit_author_email_patterncommit_message_patterncommitter_email_patterncreationdeletionnon_fast_forwardpull_requestrequired_deploymentsrequired_linear_historyrequired_signaturesrequired_status_checkstag_name_patternunknownupdateworkflows -
Method Summary
Modifier and TypeMethodDescriptionstatic GHRepositoryRule.TypeReturns the enum constant of this type with the specified name.static GHRepositoryRule.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BRANCH_NAME_PATTERN
branch_name_pattern -
CODE_SCANNING
code_scanning -
COMMITTER_EMAIL_PATTERN
committer_email_pattern -
COMMIT_AUTHOR_EMAIL_PATTERN
commit_author_email_pattern -
COMMIT_MESSAGE_PATTERN
commit_message_pattern -
CREATION
creation -
DELETION
deletion -
NON_FAST_FORWARD
non_fast_forward -
PULL_REQUEST
pull_request -
REQUIRED_DEPLOYMENTS
required_deployments -
REQUIRED_LINEAR_HISTORY
required_linear_history -
REQUIRED_SIGNATURES
required_signatures -
REQUIRED_STATUS_CHECKS
required_status_checks -
TAG_NAME_PATTERN
tag_name_pattern -
UNKNOWN
unknown -
UPDATE
update -
WORKFLOWS
workflows
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-