Class 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 Detail

      • MergeParameters

        public MergeParameters()
    • 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