public class

PullRequestRescopeAnalysisResult

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.pull.PullRequestRescopeAnalysisResult

Class Overview

The outcome of the BulkPullRequestRescopeAnalyzer.SinglePullRequestRescopeAnalyzer analysis of a PullRequestRescope rescope operation that describes how a pull request is affected by a change to its from and/or to branch.

Summary

Nested Classes
class PullRequestRescopeAnalysisResult.Builder  
Public Methods
@Nonnull List<String> getAddedCommits()
Returns the IDs of commits that were added to the pull request as a result of the rescope.
int getAddedCommitsCount()
@Nonnull Optional<String> getMergeHash()
@Nonnull PullRequestRescopeOutcome getOutcome()
@Nonnull List<String> getRemovedCommits()
Returns the IDs of commits that were removed from the pull request as a result of the rescope.
int getRemovedCommitsCount()
@Nonnull PullRequestRescope getRescope()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

@Nonnull public List<String> getAddedCommits ()

Returns the IDs of commits that were added to the pull request as a result of the rescope. The list is capped to at most Builder#maxCommitIds. Use getAddedCommitsCount() to get the total number of commits that were added.

Returns
  • IDs of commits that were added to the pull request

public int getAddedCommitsCount ()

Returns
  • the total number of commits that were added to the pull request

@Nonnull public Optional<String> getMergeHash ()

Returns
  • the merge hash, if available. Will be empty if the pull request was not merged or if the merge hash could not be determined.

@Nonnull public PullRequestRescopeOutcome getOutcome ()

Returns
  • the outcome of the pull request rescope analysis

@Nonnull public List<String> getRemovedCommits ()

Returns the IDs of commits that were removed from the pull request as a result of the rescope. The list is capped to at most Builder#maxCommitIds. Use getRemovedCommitsCount() ()} to get the total number of commits that were removed.

Returns
  • IDs of commits that were removed from the pull request

public int getRemovedCommitsCount ()

Returns
  • the total number of commits that were removed from the pull request

@Nonnull public PullRequestRescope getRescope ()

Returns
  • the pull request rescope that was analyzed