I am writing a merge check plugin for which I need a list of commits made to the repository in question in the preUpdate method. Can someone help me with the right API to use?
My Code:
public class MyCheck implements RepositoryMergeCheck
{
public RepositoryHookResult preUpdate(PreRepositoryHookContext context, PullRequestMergeHookRequest request)
{
//TODO: Get list of repository commits here to process them
return RepositoryHookResult.accepted();
}
}