Interface PullRequestSuggestion


public interface PullRequestSuggestion
An object encapsulating data necessary to suggest creation of a pull request to the user. Such suggestions are based on ref changes occurring and so contain the ref change that prompted the suggestion plus the time the change event occurred.
Since:
4.10
  • Method Details

    • getChangeDate

      @Nonnull Date getChangeDate()
      Returns:
      The date/time that the ref change occurred
    • getFromRef

      @Nonnull MinimalRef getFromRef()
      Returns:
      the branch that should be the source branch for the pull request
    • getToRef

      @Nonnull MinimalRef getToRef()
      Returns:
      the branch that should be the destination branch for the pull request
    • getRefChange

      @Nonnull RefChange getRefChange()
      Returns:
      the ref change that was the basis for suggesting a pull request
    • getRepository

      @Nonnull Repository getRepository()
      Returns:
      the repository the suggested pull request is for