public static class MergeValidators.ProjectConfigValidator extends Object implements MergeValidationListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
MergeValidators.ProjectConfigValidator.Factory |
| Constructor and Description |
|---|
MergeValidators.ProjectConfigValidator(AllProjectsName allProjectsName,
ProjectCache projectCache,
com.google.gerrit.extensions.registration.DynamicMap<ProjectConfigEntry> pluginConfigEntries) |
| Modifier and Type | Method and Description |
|---|---|
void |
onPreMerge(org.eclipse.jgit.lib.Repository repo,
CodeReviewCommit commit,
ProjectState destProject,
com.google.gerrit.reviewdb.client.Branch.NameKey destBranch,
com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId,
IdentifiedUser caller)
Validate a commit before it is merged.
|
@Inject public MergeValidators.ProjectConfigValidator(AllProjectsName allProjectsName, ProjectCache projectCache, com.google.gerrit.extensions.registration.DynamicMap<ProjectConfigEntry> pluginConfigEntries)
public void onPreMerge(org.eclipse.jgit.lib.Repository repo,
CodeReviewCommit commit,
ProjectState destProject,
com.google.gerrit.reviewdb.client.Branch.NameKey destBranch,
com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId,
IdentifiedUser caller)
throws MergeValidationException
MergeValidationListeneronPreMerge in interface MergeValidationListenerrepo - 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