public enum PullRequestMergeOutcome extends Enum<PullRequestMergeOutcome>
outcomes for attempting to merge a pull request.| Enum Constant and Description |
|---|
CLEAN
Indicates the two branches on the
pull request merged without conflicts. |
CONFLICTED
Indicates the two branches on the
pull request were merged but conflicts were encountered. |
UNKNOWN
Indicates the system is unable to determine the mergeability of the
pull request. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMergeable() |
static PullRequestMergeOutcome |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PullRequestMergeOutcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PullRequestMergeOutcome CLEAN
pull request merged without conflicts.public static final PullRequestMergeOutcome CONFLICTED
pull request were merged but conflicts were encountered.public static final PullRequestMergeOutcome UNKNOWN
pull request.public static PullRequestMergeOutcome[] values()
for (PullRequestMergeOutcome c : PullRequestMergeOutcome.values()) System.out.println(c);
public static PullRequestMergeOutcome valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isMergeable()
Copyright © 2019 Atlassian. All rights reserved.