public interface

PullRequestSuggestion

com.atlassian.bitbucket.dashboard.PullRequestSuggestion

Class Overview

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.

Summary

Public Methods
@Nonnull Date getChangeDate()
@Nonnull MinimalRef getFromRef()
@Nonnull RefChange getRefChange()
@Nonnull Repository getRepository()
@Nonnull MinimalRef getToRef()

Public Methods

@Nonnull public Date getChangeDate ()

Returns
  • The date/time that the ref change occurred

@Nonnull public MinimalRef getFromRef ()

Returns
  • the branch that should be the source branch for the pull request

@Nonnull public RefChange getRefChange ()

Returns
  • the ref change that was the basis for suggesting a pull request

@Nonnull public Repository getRepository ()

Returns
  • the repository the suggested pull request is for

@Nonnull public MinimalRef getToRef ()

Returns
  • the branch that should be the destination branch for the pull request