public interface

PullRequestCommitEnricher

com.atlassian.bitbucket.pull.PullRequestCommitEnricher

Summary

Public Methods
@Nonnull Commit enrich(PullRequest pullRequest, Commit commit, Collection<String> propertyKeys)
Enrich a single commit with properties from the CommitIndex.
@Nonnull Page<Commit> enrichPage(PullRequest pullRequest, Page<Commit> page, Collection<String> propertyKeys)
Enrich a page of commits with properties from the CommitIndex.

Public Methods

@Nonnull public Commit enrich (PullRequest pullRequest, Commit commit, Collection<String> propertyKeys)

Enrich a single commit with properties from the CommitIndex.

Parameters
pullRequest the pull request the commit was retrieved from
commit the commit to enrich
propertyKeys keys for CommitIndex properties to load
Returns
  • the enriched commit

@Nonnull public Page<Commit> enrichPage (PullRequest pullRequest, Page<Commit> page, Collection<String> propertyKeys)

Enrich a page of commits with properties from the CommitIndex.

Parameters
pullRequest the pull request the commits were retrieved from
page the page of commits to enrich
propertyKeys keys for CommitIndex properties to load
Returns
  • a page of enriched commits