From 53d1382e3cbe1598980b8e95744619062d5e87fd Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 31 Dec 2023 02:36:04 +0800 Subject: [PATCH] chore: enforce PR title format with PRLint Reloaded --- .github/prlint.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/prlint.json diff --git a/.github/prlint.json b/.github/prlint.json new file mode 100644 index 000000000000..a3f9b2c0994e --- /dev/null +++ b/.github/prlint.json @@ -0,0 +1,8 @@ +{ + "title": [ + { + "pattern": "^(\\[\\d+\\.\\d+\\]\\s{1})?(feat|fix|chore|docs|perf|refactor|style|test)(\\([\\-.@:`a-zA-Z0-9]+\\))?!?:\\s{1}\\S.+\\S$", + "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." + } + ] +}