ci: replace commitlint with PR title validation#8
Merged
zeitlinger merged 3 commits intomainfrom Feb 16, 2026
Merged
Conversation
Squash merges mean only the PR title ends up on main, so validating individual commit messages is pointless. Replace commitlint with amannn/action-semantic-pull-request to enforce conventional commits on PR titles instead. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
This comment has been minimized.
This comment has been minimized.
Addresses GitHub Advanced Security warning about insecure workflow trigger. pull_request is sufficient since we only read the PR title. Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR replaces commitlint (which validated individual commit messages) with a PR title validation workflow, aligning with the repository's squash merge strategy where PR titles become the commit messages on main.
Changes:
- Removed
.commitlintrc.ymlconfiguration file - Added
.github/workflows/pr-title.ymlto validate PR titles usingamannn/action-semantic-pull-request - Disabled
VALIDATE_GIT_COMMITLINTin Super-Linter configuration - Updated CLAUDE.md to document that PR titles (not individual commits) must follow Conventional Commits format
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.commitlintrc.yml |
Removed commitlint configuration as it's no longer needed with squash merges |
.github/workflows/pr-title.yml |
Added new workflow to validate PR titles follow Conventional Commits format |
.github/config/super-linter.env |
Disabled commitlint validation in Super-Linter |
CLAUDE.md |
Updated documentation to clarify PR titles (not commits) must follow Conventional Commits format |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This was referenced Apr 16, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
amannn/action-semantic-pull-requestto enforce conventional commit format on PR titlesVALIDATE_GIT_COMMITLINTin Super-Linter configTest plan
mise run lintpasses