public class RevertCommandParameters extends AbstractCommandParameters
revert operation.| Modifier and Type | Class and Description |
|---|---|
static class |
RevertCommandParameters.Builder |
NOT_BLANK| Modifier and Type | Method and Description |
|---|---|
Branch |
getBranch()
The tip of the branch that will be used as the parent of the revert commit.
|
String |
getCommitId() |
ApplicationUser |
getCommitter() |
Optional<Integer> |
getMergedCommitParentNumber() |
Optional<String> |
getTargetBranch()
The branch that the revert commit will be created on.
|
addIf, addIf, addIf, addIf, addIf, addIf, checkNotBlank, requireNonBlank@Nonnull public Branch getBranch()
This branch will also be the target branch if the target branch is not provided (i.e.
the revert commit will be created on this branch).
@Nonnull public ApplicationUser getCommitter()
@Nonnull public Optional<Integer> getMergedCommitParentNumber()
commit is
a merge commit, otherwise Optional.empty().@Nonnull public Optional<String> getTargetBranch()
If target branch is Optional.empty() then getBranch() will be used as the target branch.
Copyright © 2023 Atlassian. All rights reserved.