Package com.spotify.github.v3.prs
Class MergeParameters
- java.lang.Object
-
- com.spotify.github.v3.prs.MergeParameters
-
- Direct Known Subclasses:
ImmutableMergeParameters
@Immutable public abstract class MergeParameters extends Object
The parameters for merging a Pull Request.- See Also:
- "https://developer.github.com/v3/pulls/#input-3"
-
-
Constructor Summary
Constructors Constructor Description MergeParameters()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Optional<String>
commitMessage()
Extra detail to append to automatic commit message.abstract Optional<String>
commitTitle()
Title for the automatic commit message.MergeMethod
mergeMethod()
Merge method to use.abstract String
sha()
SHA that pull request head must match to allow merge.
-
-
-
Method Detail
-
sha
public abstract String sha()
SHA that pull request head must match to allow merge.- Returns:
- the string
-
commitMessage
public abstract Optional<String> commitMessage()
Extra detail to append to automatic commit message.- Returns:
- the optional
-
commitTitle
public abstract Optional<String> commitTitle()
Title for the automatic commit message.- Returns:
- the optional commit title
-
mergeMethod
@Default public MergeMethod mergeMethod()
Merge method to use.- Returns:
- the merge method enum value
-
-