chore: enforce PR title format with PRLint Reloaded

This commit is contained in:
John Paul E. Balandan, CPA 2023-12-31 02:36:04 +08:00
parent 5f655f1d53
commit 53d1382e3c
No known key found for this signature in database
GPG Key ID: FB7B51499BC27610

8
.github/prlint.json vendored Normal file
View File

@ -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."
}
]
}