Package com.atlassian.bitbucket.pull
Interface PullRequestCommitEnricher
public interface PullRequestCommitEnricher
- Since:
- 4.8
-
Method Summary
Modifier 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 thecommit
was retrieved fromcommit
- the commit to enrichpropertyKeys
- keys forCommitIndex
properties 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 thecommits
were retrieved frompage
- the page of commits to enrichpropertyKeys
- keys forCommitIndex
properties to load- Returns:
- a page of enriched commits
-