Package com.atlassian.bitbucket.pull
Enum Class PullRequestCommitMessageTemplateVariable
java.lang.Object
java.lang.Enum<PullRequestCommitMessageTemplateVariable>
com.atlassian.bitbucket.pull.PullRequestCommitMessageTemplateVariable
- All Implemented Interfaces:
Serializable
,Comparable<PullRequestCommitMessageTemplateVariable>
,Constable
public enum PullRequestCommitMessageTemplateVariable
extends Enum<PullRequestCommitMessageTemplateVariable>
Variables that are valid for substitution when rendering a
PullRequestCommitMessageTemplate
- Since:
- 8.12
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionComma separated list of names of people that approved.If the pull request is a cross repository pull request this variable contains the source project and repository slug.The pull request descriptionThe project key for the source projectThe name of the ref (branch/tag) to merge changes fromThe slug of the source repositoryThe pull request IDPull request titleThe project key for the target projectThe name of the ref (branch) to merge changes intoThe slug of the target repository -
Method Summary
Modifier and TypeMethodDescriptiongetName()
toString()
The format of the returned String is not considered stable and may change from release to release.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPROVERS
Comma separated list of names of people that approved. Empty string if there are no approvals -
ID
The pull request ID -
CROSS_REPO_PR_REPO
If the pull request is a cross repository pull request this variable contains the source project and repository slug.If it is not a cross repository pull request this variable resolves to an empty string
-
DESCRIPTION
The pull request description -
FROM_PROJECT_KEY
The project key for the source project -
FROM_REF_NAME
The name of the ref (branch/tag) to merge changes from -
FROM_REPO_SLUG
The slug of the source repository -
TITLE
Pull request title -
TO_PROJECT_KEY
The project key for the target project -
TO_REF_NAME
The name of the ref (branch) to merge changes into -
TO_REPO_SLUG
The slug of the target repository
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
- Returns:
- the name of the variable without any prefix
-
getVariable
- Returns:
- the full variable with prefix and suffix applied
-
toString
The format of the returned String is not considered stable and may change from release to release. If a consistent format is needed usegetName()
andgetVariable()
instead.- Overrides:
toString
in classEnum<PullRequestCommitMessageTemplateVariable>
- Returns:
- a string representation of the variable
-