public static class MergeValidators.ProjectConfigValidator extends java.lang.Object implements MergeValidationListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
MergeValidators.ProjectConfigValidator.Factory |
| Constructor and Description |
|---|
ProjectConfigValidator(AllProjectsName allProjectsName,
ProjectCache projectCache,
PermissionBackend permissionBackend,
DynamicMap<ProjectConfigEntry> pluginConfigEntries) |
| 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 ProjectConfigValidator(AllProjectsName allProjectsName, ProjectCache projectCache, PermissionBackend permissionBackend, DynamicMap<ProjectConfigEntry> pluginConfigEntries)
public void onPreMerge(org.eclipse.jgit.lib.Repository repo,
CodeReviewCommit commit,
ProjectState destProject,
Branch.NameKey destBranch,
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