Skip to content

ci: replace commitlint with PR title validation#8

Merged
zeitlinger merged 3 commits intomainfrom
pr-title-lint
Feb 16, 2026
Merged

ci: replace commitlint with PR title validation#8
zeitlinger merged 3 commits intomainfrom
pr-title-lint

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

Summary

  • Remove commitlint (individual commit messages don't matter with squash merges)
  • Add amannn/action-semantic-pull-request to enforce conventional commit format on PR titles
  • Disable VALIDATE_GIT_COMMITLINT in Super-Linter config
  • Update CLAUDE.md to reflect PR title convention

Test plan

  • mise run lint passes
  • Verify PR title check runs on this PR

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>
Copilot AI review requested due to automatic review settings February 16, 2026 11:22
Comment thread .github/workflows/pr-title.yml Fixed
@github-actions

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>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml configuration file
  • Added .github/workflows/pr-title.yml to validate PR titles using amannn/action-semantic-pull-request
  • Disabled VALIDATE_GIT_COMMITLINT in 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.

Comment thread .github/workflows/pr-title.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zeitlinger zeitlinger enabled auto-merge (squash) February 16, 2026 11:55
@zeitlinger zeitlinger merged commit 1a59db1 into main Feb 16, 2026
7 checks passed
@zeitlinger zeitlinger deleted the pr-title-lint branch February 16, 2026 11:56
This was referenced Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants