package com.atlassian.stash.internal.pull;

import com.atlassian.bitbucket.pull.PullRequestMergeability;
import com.atlassian.bitbucket.util.Page;

import javax.annotation.Nonnull;

public interface PullRequestEnricher {

    @Nonnull
    Iterable<InternalPullRequest> enrich(@Nonnull Iterable<InternalPullRequest> pullRequests);

    @Nonnull
    Page<InternalPullRequest> enrich(@Nonnull Page<InternalPullRequest> pullRequests);

    @Nonnull
    PullRequestMergeability enrich(@Nonnull InternalPullRequest pullRequest,
                                   @Nonnull SimplePullRequestMergeability mergeability);
}
