public interface

PullRequestParticipant

implements Comparable<T>
com.atlassian.bitbucket.pull.PullRequestParticipant

Class Overview

Describes a participant on a pull request.

Each participant has a role, such as author or reviewer.

Summary

Public Methods
int compareTo(PullRequestParticipant other)
Sorts participants first by status, then by name
@Nullable @OptionalString String getLastReviewedCommit()
@Nonnull PullRequest getPullRequest()
@Nonnull PullRequestRole getRole()
@Nonnull PullRequestParticipantStatus getStatus()
@Nonnull ApplicationUser getUser()
boolean isApproved()
[Expand]
Inherited Methods
From interface java.lang.Comparable

Public Methods

public int compareTo (PullRequestParticipant other)

Sorts participants first by status, then by name

Returns
    1. 0 if other has same status and same name
    2. < 0 if other has approved the pull request and this has not, or if other has same status but comes first when alphabetically ordered by name
    3. > 0 otherwise
Throws
NullPointerException if other is null

@Nullable @OptionalString public String getLastReviewedCommit ()

Returns
  • the commit hash at which this participant last reviewed the pull request, or null if the participant has not yet reviewed the pull request

@Nonnull public PullRequest getPullRequest ()

Returns
  • the pull request this participant is associated with

@Nonnull public PullRequestRole getRole ()

Returns
  • the role of this participant in the pull request.

@Nonnull public PullRequestParticipantStatus getStatus ()

Returns
  • the status of this participant in the pull request.

@Nonnull public ApplicationUser getUser ()

Returns
  • the user participating in the pull request

public boolean isApproved ()

Returns
  • true if the status of this participant is APPROVED false otherwise