public static class MergeValidators.ProjectConfigValidator extends Object implements MergeValidationListener
Modifier and Type | Class and Description |
---|---|
static interface |
MergeValidators.ProjectConfigValidator.Factory |
Constructor and Description |
---|
ProjectConfigValidator(AllProjectsName allProjectsName,
AllUsersName allUsersName,
ProjectCache projectCache,
PermissionBackend permissionBackend,
DynamicMap<ProjectConfigEntry> pluginConfigEntries,
ProjectConfig.Factory projectConfigFactory,
org.eclipse.jgit.lib.Config config) |
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, AllUsersName allUsersName, ProjectCache projectCache, PermissionBackend permissionBackend, DynamicMap<ProjectConfigEntry> pluginConfigEntries, ProjectConfig.Factory projectConfigFactory, org.eclipse.jgit.lib.Config config)
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