Package org.kohsuke.github
Enum GHRepositoryRule.Type
- 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
-
UNKNOWN
unknown -
CREATION
creation -
UPDATE
update -
DELETION
deletion -
REQUIRED_LINEAR_HISTORY
required_linear_history -
REQUIRED_DEPLOYMENTS
required_deployments -
REQUIRED_SIGNATURES
required_signatures -
PULL_REQUEST
pull_request -
REQUIRED_STATUS_CHECKS
required_status_checks -
NON_FAST_FORWARD
non_fast_forward -
COMMIT_MESSAGE_PATTERN
commit_message_pattern -
COMMIT_AUTHOR_EMAIL_PATTERN
commit_author_email_pattern -
COMMITTER_EMAIL_PATTERN
committer_email_pattern -
BRANCH_NAME_PATTERN
branch_name_pattern -
TAG_NAME_PATTERN
tag_name_pattern -
WORKFLOWS
workflows -
CODE_SCANNING
code_scanning
-
-
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
-