Interface AutoMergeRequest


public interface AutoMergeRequest
Represents a request for a pull request to be automatically merged by the system when it becomes eligible to merge.
Since:
8.15
  • Method Details

    • getCreatedDate

      @Nonnull Date getCreatedDate()
      Returns:
      when the auto-merge request was created
    • getFromHash

      @Nonnull String getFromHash()
      Returns:
      the hash of the latest commit in the source branch of the pull request at the time the auto-merge request was created
    • getMessage

      @Nullable String getMessage()
      Returns:
      the message to be used for merging this pull request
    • getPullRequest

      @Nonnull PullRequest getPullRequest()
      Returns:
      the pull request to be auto-merged
    • getRepositoryId

      int getRepositoryId()
      Returns:
      the ID of the repository to which the pull request needs to be auto-merged
    • getStrategyId

      @Nullable String getStrategyId()
      Returns:
      the strategy ID to be used for merging this pull request.
    • getToRefId

      @Nonnull String getToRefId()
      Returns:
      the target branch id of the pull request at the time the auto-merge request was created
    • getUser

      @Nonnull ApplicationUser getUser()
      Returns:
      the user who requested to auto-merge the pull request. The system will merge the pull request on behalf of this user.
    • isAutoSubject

      boolean isAutoSubject()
      Returns:
      whether auto-subject should be used for the merge commit message while merging this pull request.