From b82b6229f0675448c4d0eb38a93e3a5b3ae8c998 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 27 Mar 2024 09:52:56 +0900 Subject: [PATCH 1/2] chore: add config to prlint.json --- .github/prlint.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/prlint.json b/.github/prlint.json index b8dec09f108d..54046ca798f1 100644 --- a/.github/prlint.json +++ b/.github/prlint.json @@ -1,8 +1,8 @@ { "title": [ { - "pattern": "^(\\[\\d+\\.\\d+\\]\\s{1})?(feat|fix|chore|docs|perf|refactor|style|test)(\\([\\-.@:`a-zA-Z0-9]+\\))?!?:\\s{1}\\S.+\\S|Prep for \\d\\.\\d\\.\\d release|\\d\\.\\d\\.\\d Ready code$", - "message": "PR title must include the type (feat, fix, chore, docs, perf, refactor, style, test) of the commit per Conventional Commits specification. See https://www.conventionalcommits.org/en/v1.0.0/ for the discussion." + "pattern": "^(\\[\\d+\\.\\d+\\]\\s{1})?(feat|fix|chore|docs|perf|refactor|style|test|config)(\\([\\-.@:`a-zA-Z0-9]+\\))?!?:\\s{1}\\S.+\\S|Prep for \\d\\.\\d\\.\\d release|\\d\\.\\d\\.\\d Ready code$", + "message": "PR title must include the type (feat, fix, chore, docs, perf, refactor, style, test, config) of the commit per Conventional Commits specification. See https://www.conventionalcommits.org/en/v1.0.0/ for the discussion." } ] } From 2f16e3d803252a35b14b789b6b7f153a204aaa72 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 28 Mar 2024 08:56:31 +0900 Subject: [PATCH 2/2] chore: add revert to prlint.json --- .github/prlint.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/prlint.json b/.github/prlint.json index 54046ca798f1..a3744c5d5018 100644 --- a/.github/prlint.json +++ b/.github/prlint.json @@ -1,8 +1,8 @@ { "title": [ { - "pattern": "^(\\[\\d+\\.\\d+\\]\\s{1})?(feat|fix|chore|docs|perf|refactor|style|test|config)(\\([\\-.@:`a-zA-Z0-9]+\\))?!?:\\s{1}\\S.+\\S|Prep for \\d\\.\\d\\.\\d release|\\d\\.\\d\\.\\d Ready code$", - "message": "PR title must include the type (feat, fix, chore, docs, perf, refactor, style, test, config) of the commit per Conventional Commits specification. See https://www.conventionalcommits.org/en/v1.0.0/ for the discussion." + "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 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." } ] }