public interface

PullRequestDiffCommentAnchor

implements DiffCommentAnchor
com.atlassian.stash.pull.PullRequestDiffCommentAnchor

Class Overview

A DiffCommentAnchor that is associated with a pull request.

See Also

Summary

[Expand]
Inherited Constants
From interface com.atlassian.stash.comment.DiffCommentAnchor
[Expand]
Inherited Fields
From interface com.atlassian.stash.comment.DiffCommentAnchor
Public Methods
@Nonnull PullRequest getPullRequest()
boolean isOrphaned()
An orphaned anchor point is out-of-date in the current state of the pull request.
[Expand]
Inherited Methods
From interface com.atlassian.stash.comment.DiffCommentAnchor

Public Methods

@Nonnull public PullRequest getPullRequest ()

Returns
  • the pull request that this anchor points to.

public boolean isOrphaned ()

An orphaned anchor point is out-of-date in the current state of the pull request. E.g. the anchor points to a path that is no longer in scope of the pull request, because the changes to that file have been reverted on the source branch.

Returns
  • true, if the anchor is orphaned, false otherwise