Class CommitValidators
java.lang.Object
com.google.gerrit.server.git.validators.CommitValidators
Represents a list of
CommitValidationListener
s to run for a push to one branch of one
project.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Don't allow the user to amend a merge created by Gerrit Code Review.static class
Require that author matches the uploader.static class
Reject banned commits.static class
static class
Require that committer matches the uploader.static class
If this is the special project configuration branch, validate the config.static class
Validates updates to refs/meta/external-ids.static class
static class
Rejects updates to group branches.static class
Execute commit validation plug-insstatic class
Rejects updates to projects that don't allow writes.static class
static class
Require permission to upload merge commits. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CommitValidationMessage
invalidEmail
(String type, org.eclipse.jgit.lib.PersonIdent who, IdentifiedUser currentUser, UrlFormatter urlFormatter) validate
(CommitReceivedEvent receiveEvent)
-
Field Details
-
NEW_PATCHSET_PATTERN
-
-
Method Details
-
validate
@CanIgnoreReturnValue public List<CommitValidationMessage> validate(CommitReceivedEvent receiveEvent) throws CommitValidationException - Throws:
CommitValidationException
-
invalidEmail
public static CommitValidationMessage invalidEmail(String type, org.eclipse.jgit.lib.PersonIdent who, IdentifiedUser currentUser, UrlFormatter urlFormatter)
-