Skip to content

Commit 1a59db1

Browse files
zeitlingerCopilot
andauthored
ci: replace commitlint with PR title validation (#8)
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 086a5e9 commit 1a59db1

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.commitlintrc.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/config/super-linter.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ LOG_LEVEL=ERROR
44

55
# Disable linters not relevant for this repository
66
VALIDATE_CHECKOV=false
7+
VALIDATE_GIT_COMMITLINT=false
78
VALIDATE_JSCPD=false
89
# Use Biome instead of Prettier for JSON formatting (Biome uses tabs, Prettier uses spaces)
910
VALIDATE_JSON_PRETTIER=false

.github/workflows/pr-title.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: PR Title
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- edited
9+
permissions:
10+
pull-requests: read
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
17+
env:
18+
GITHUB_TOKEN: ${{ github.token }}

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ When adding new lint scripts, follow these patterns:
7373

7474
## Commit Messages
7575

76-
This repository uses [Conventional Commits](https://www.conventionalcommits.org/) format, enforced by commitlint via Super-Linter. All commit messages must follow this format:
76+
This repository uses [Conventional Commits](https://www.conventionalcommits.org/) format for PR titles (enforced by CI). Since we use squash merges, the PR title becomes the commit message on main. PR titles must follow this format:
7777

7878
```text
7979
type(optional scope): description

0 commit comments

Comments
 (0)