public interface PullRequestMergeStrategy
description
to help explain its approach
to performing merges.Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Retrieves a short, descriptive summary of how the strategy performs merges, which can be used to help
choose between available strategies.
|
Optional<String> |
getFlag()
Retrieves a well-known flag, or combination of flags, associated with the strategy, which may be helpful
in associating the strategy with the behavior of a command line client.
|
String |
getId()
Retrieves the strategy's unique identifier, which is used to
request the strategy when merging a pull request. |
String |
getName()
Retrieves the strategy's name.
|
boolean |
isEnabled()
Retrieves a flag indicating whether or not the strategy is enabled.
|
@Nonnull String getDescription()
@Nonnull Optional<String> getFlag()
Optional.empty()
if such flags don't exist, but never null
@Nonnull String getId()
request the strategy
when merging a pull request.boolean isEnabled()
requested
when merging pull requests. Each repository
is guaranteed to have at least one enabled strategy.
Administrators can configure the set of strategies they want to be available for pull requests in their repositories and may choose to enable a single strategy, to ensure all pull requests are merged the same way, or multiple strategies, to allow the most appropriate strategy to be selected at merge time based on the particulars of the pull request being merged.
true
if this strategy is enabled and may be requested when merging a pull request; otherwise,
false
if an administrator has disabled this strategyCopyright © 2022 Atlassian. All rights reserved.