public class PullRequestStatus extends Object
| Constructor and Description |
|---|
PullRequestStatus(long id,
long version,
String title,
Optional<String> description,
String url,
String state,
Optional<String> mergeOutcome,
PullRequestParticipant author,
List<PullRequestParticipant> reviewers,
PullRequestRef fromRef,
PullRequestRef toRef,
long lastUpdated,
Optional<Long> commentCount,
Optional<Long> outstandingTaskCount,
Optional<Long> resolvedTaskCount) |
| Modifier and Type | Method and Description |
|---|---|
PullRequestParticipant |
getAuthor() |
Optional<Long> |
getCommentCount()
Note this is optional as Stash/Bitbucket Server seems to return no counter value if there are no comments.
|
Optional<String> |
getDescription() |
PullRequestRef |
getFromRef() |
long |
getId() |
long |
getLastUpdated() |
Optional<String> |
getMergeOutcome()
Note this is optional as old Stash/Bitbucket Server versions may not return it (e.g.
|
Optional<Long> |
getOutstandingTaskCount()
Note this is optional as old Stash/Bitbucket Server versions may not return it (e.g.
|
Optional<Long> |
getResolvedTaskCount()
Note this is optional as old Stash/Bitbucket Server versions may not return it (e.g.
|
List<PullRequestParticipant> |
getReviewers() |
String |
getState() |
String |
getTitle() |
PullRequestRef |
getToRef() |
String |
getUrl() |
long |
getVersion() |
String |
toString() |
public PullRequestStatus(long id,
long version,
@Nonnull
String title,
@Nonnull
Optional<String> description,
@Nonnull
String url,
@Nonnull
String state,
@Nonnull
Optional<String> mergeOutcome,
@Nonnull
PullRequestParticipant author,
@Nonnull
List<PullRequestParticipant> reviewers,
@Nonnull
PullRequestRef fromRef,
@Nonnull
PullRequestRef toRef,
long lastUpdated,
@Nonnull
Optional<Long> commentCount,
@Nonnull
Optional<Long> outstandingTaskCount,
@Nonnull
Optional<Long> resolvedTaskCount)
public long getId()
public long getVersion()
@Nonnull public Optional<String> getDescription()
@Nonnull public Optional<String> getMergeOutcome()
CLEAN, CONFLICTED, UNKNOWN@Nonnull public PullRequestParticipant getAuthor()
@Nonnull public List<PullRequestParticipant> getReviewers()
@Nonnull public PullRequestRef getFromRef()
@Nonnull public PullRequestRef getToRef()
public long getLastUpdated()
@Nonnull public Optional<Long> getCommentCount()
@Nonnull public Optional<Long> getOutstandingTaskCount()
@Nonnull public Optional<Long> getResolvedTaskCount()
Copyright © 2020 Atlassian. All rights reserved.