Page MenuHomePhabricator

Update commit-message-validator to work nicely with GitLab repos
Closed, ResolvedPublic

Description

We need a GitLab validator.

The default Gerrit validator requires that a Change-Id be present. This is also where most of the Wikimedia commit message rules are currently implemented. The new GitLab validator should implement all of the rules from the Gerrit validator except requiring Change-Id to be present. It probably should allow Change-Id however so that folks can still use https://github.com/yaoyuannnn/gerritlab in their projects if they really want to.

Details

ReferenceSource BranchDest BranchAuthorTitle
repos/ci-tools/commit-message-validator!7work/bd808/cli-improvementsmainbd808Work towards support for linting all commit messages in a GitLab merge request
repos/ci-tools/commit-message-validator!6work/bd808/gitlab-supportmainbd808Add GitLabMessageValidator
Customize query in GitLab

Event Timeline

bd808 renamed this task from Update to work with GitLab repos to Update commit-message-validator to work nicely with GitLab repos.Jun 15 2023, 10:12 PM
bd808 triaged this task as Medium priority.
bd808 added a project: GitLab.
bd808 changed the task status from Open to In Progress.Jun 26 2023, 7:51 PM
bd808 claimed this task.

bd808 merged https://gitlab.wikimedia.org/repos/ci-tools/commit-message-validator/-/merge_requests/7

Work towards support for linting all commit messages in a GitLab merge request