Skip to content

Commit 741c472

Browse files
authored
Merge branch 'main' into chore/remove-pr-coverage-comments
2 parents 9e87f4e + 98a6202 commit 741c472

5 files changed

Lines changed: 1293 additions & 32 deletions

File tree

.commitlintrc.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ rules:
5050
- never
5151
- '.'
5252

53-
# Subject should be in sentence case (lowercase)
53+
# Disable subject-case to allow uppercase abbreviations (PR, API, CLI, etc.)
5454
subject-case:
55-
- 2
56-
- always
57-
- lower-case
55+
- 0
5856

5957
# Header (first line) max length
6058
header-max-length:

.github/workflows/commit-lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,29 @@ permissions:
99
pull-requests: read
1010

1111
jobs:
12+
lint-pr-title:
13+
name: Lint PR Title
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '20'
23+
24+
- name: Install commitlint
25+
run: |
26+
npm install --save-dev @commitlint/cli@18.4.3 @commitlint/config-conventional@18.4.3
27+
28+
- name: Validate PR title
29+
env:
30+
PR_TITLE: ${{ github.event.pull_request.title }}
31+
run: |
32+
echo "Validating PR title: $PR_TITLE"
33+
echo "$PR_TITLE" | npx commitlint --verbose
34+
1235
commitlint:
1336
name: Lint Commit Messages
1437
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dist/
1313

1414
# Dependency directories
1515
vendor/
16+
node_modules/
1617

1718
# Go workspace file
1819
go.work

commitlint.config.js

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

0 commit comments

Comments
 (0)