Class CommitValidators
java.lang.Object
com.google.gerrit.server.git.validators.CommitValidators
Represents a list of
CommitValidationListeners to run for a push to one branch of one
project.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classDon't allow the user to amend a merge created by Gerrit Code Review.static classRequire that author matches the uploader.static classReject banned commits.static classstatic classRequire that committer matches the uploader.static classIf this is the special project configuration branch, validate the config.static classValidates updates to refs/meta/external-ids.static classstatic classRejects updates to group branches.static classExecute commit validation plug-insstatic classRejects updates to projects that don't allow writes.static classstatic classRequire permission to upload merge commits. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CommitValidationMessageinvalidEmail(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)
-