public static class MergeValidators.AccountMergeValidator extends Object implements MergeValidationListener
Modifier and Type | Class and Description |
---|---|
static interface |
MergeValidators.AccountMergeValidator.Factory |
Constructor and Description |
---|
AccountMergeValidator(com.google.inject.Provider<ReviewDb> dbProvider,
AllUsersName allUsersName,
ChangeData.Factory changeDataFactory,
AccountValidator accountValidator) |
Modifier and Type | Method and Description |
---|---|
void |
onPreMerge(org.eclipse.jgit.lib.Repository repo,
CodeReviewCommit commit,
ProjectState destProject,
Branch.NameKey destBranch,
PatchSet.Id patchSetId,
IdentifiedUser caller)
Validate a commit before it is merged.
|
@Inject public AccountMergeValidator(com.google.inject.Provider<ReviewDb> dbProvider, AllUsersName allUsersName, ChangeData.Factory changeDataFactory, AccountValidator accountValidator)
public void onPreMerge(org.eclipse.jgit.lib.Repository repo, CodeReviewCommit commit, ProjectState destProject, Branch.NameKey destBranch, PatchSet.Id patchSetId, IdentifiedUser caller) throws MergeValidationException
MergeValidationListener
onPreMerge
in interface MergeValidationListener
repo
- the repositorycommit
- commit detailsdestProject
- the destination projectdestBranch
- the destination branchpatchSetId
- the patch set IDcaller
- the user who initiated the merge requestMergeValidationException
- if the commit fails to validate