From 3850d9f717649f82dd053778eea8ef41a069b418 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 6 Sep 2026 21:42:28 +0800 Subject: [PATCH] chore: replace PRLint with Carson's pr-title-linter --- .github/carson.yml | 12 ++++++++++++ .github/prlint.json | 8 -------- .github/workflows/carson.yml | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 .github/carson.yml delete mode 100644 .github/prlint.json create mode 100644 .github/workflows/carson.yml diff --git a/.github/carson.yml b/.github/carson.yml new file mode 100644 index 000000000000..1c62b62dc0c2 --- /dev/null +++ b/.github/carson.yml @@ -0,0 +1,12 @@ +# https://github.com/NexusPHP/carson/blob/1.x/SUBSCRIBERS.md + +version: 1 +subscribers: + - pr-title-linter +settings: + pr-title-linter: + name: 'Carson / pr-title' + rules: + - 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$' + 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.' + level: error diff --git a/.github/prlint.json b/.github/prlint.json deleted file mode 100644 index bb352e554b71..000000000000 --- a/.github/prlint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "title": [ - { - "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$", - "message": "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." - } - ] -} diff --git a/.github/workflows/carson.yml b/.github/workflows/carson.yml new file mode 100644 index 000000000000..12903ff8b006 --- /dev/null +++ b/.github/workflows/carson.yml @@ -0,0 +1,20 @@ +name: Carson + +on: + pull_request_target: + types: + - opened + - edited + +permissions: {} + +jobs: + carson: + runs-on: ubuntu-24.04 + steps: + - name: Run Carson + uses: NexusPHP/carson@80ba8380498b061f22de749c7609f265c8d66120 # v1.3.0 + with: + app_id: ${{ secrets.CARSON_APP_ID }} + private_key: ${{ secrets.CARSON_PRIVATE_KEY }} + log_level: info