Package com.atlassian.bitbucket.pull
Interface PullRequestCommitEnricher
public interface PullRequestCommitEnricher
- Since:
- 4.8
- 
Method SummaryModifier and TypeMethodDescriptionenrich(PullRequest pullRequest, Commit commit, Collection<String> propertyKeys) Enrich a single commit with properties from theCommitIndex.enrichPage(PullRequest pullRequest, Page<Commit> page, Collection<String> propertyKeys) Enrich a page of commits with properties from theCommitIndex.
- 
Method Details- 
enrich@Nonnull Commit enrich(@Nonnull PullRequest pullRequest, @Nonnull Commit commit, @Nullable Collection<String> propertyKeys) Enrich a single commit with properties from theCommitIndex.- Parameters:
- pullRequest- the pull request the- commitwas retrieved from
- commit- the commit to enrich
- propertyKeys- keys for- CommitIndexproperties to load
- Returns:
- the enriched commit
 
- 
enrichPage@Nonnull Page<Commit> enrichPage(@Nonnull PullRequest pullRequest, @Nonnull Page<Commit> page, @Nullable Collection<String> propertyKeys) Enrich a page of commits with properties from theCommitIndex.- Parameters:
- pullRequest- the pull request the- commitswere retrieved from
- page- the page of commits to enrich
- propertyKeys- keys for- CommitIndexproperties to load
- Returns:
- a page of enriched commits
 
 
-