From bf7bfb3c08ae53bdff5d12a74bf7f88be03cae1e Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 19 Jan 2024 06:48:26 +0330 Subject: [PATCH] fix: add Rules for PRLint --- .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 000000000..a3f9b2c09 --- /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." + } + ] +}