Skip to content

Commit 2155a89

Browse files
authored
chore: replace PRLint with Carson's pr-title-linter (#10529)
1 parent 94036f1 commit 2155a89

3 files changed

Lines changed: 32 additions & 8 deletions

File tree

‎.github/carson.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://github.com/NexusPHP/carson/blob/1.x/SUBSCRIBERS.md
2+
3+
version: 1
4+
subscribers:
5+
- pr-title-linter
6+
settings:
7+
pr-title-linter:
8+
name: 'Carson / pr-title'
9+
rules:
10+
- pattern: '^(\[\d+\.\d+\]\s{1})?(feat|fix|chore|docs|perf|refactor|style|test|config|revert)(\([\-.@:`a-zA-Z0-9]+\))?!?:\s{1}\S.+\S|Prep for \d\.\d\.\d release|\d\.\d\.\d (Ready|Merge) code$'
11+
description: 'PR title must include the type (feat, fix, chore, docs, perf, refactor, style, test, config, revert) of the commit per Conventional Commits specification. See https://www.conventionalcommits.org/en/v1.0.0/ for the discussion.'
12+
level: error

‎.github/prlint.json‎

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

‎.github/workflows/run-carson.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Carson
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
9+
permissions: {}
10+
11+
jobs:
12+
carson:
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- name: Run Carson
16+
uses: NexusPHP/carson@62602be15470a18edd31f217b785863e997572d5 # v1.4.0
17+
with:
18+
app_id: ${{ secrets.CARSON_APP_ID }}
19+
private_key: ${{ secrets.CARSON_PRIVATE_KEY }}
20+
log_level: info

0 commit comments

Comments
 (0)