From 2c8b4944c38436213ac97fedf66699026e058247 Mon Sep 17 00:00:00 2001 From: Marcos Iglesias <190833+Golodhros@users.noreply.github.com> Date: Mon, 24 Aug 2020 15:10:46 -0700 Subject: [PATCH] Adds title lint configuration (#54) Signed-off-by: Marcos Iglesias --- .github/PULL_REQUEST_TEMPLATE.md | 27 +++++++++++++++++++++++++++ .github/prlint.json | 14 -------------- .github/titleLint.yml | 1 + 3 files changed, 28 insertions(+), 14 deletions(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/prlint.json create mode 100644 .github/titleLint.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..cbbb91b --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,27 @@ + + +### Summary of Changes + +_Include a summary of changes then remove this line_ + +### CheckList + +Make sure you have checked **all** steps below to ensure a timely review. + +- [ ] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2" + - In case you are adding a dependency, check if the license complies with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x). +- [ ] PR includes a summary of changes. diff --git a/.github/prlint.json b/.github/prlint.json deleted file mode 100644 index ea3f83a..0000000 --- a/.github/prlint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "title": [ - { - "pattern": "^(build|ci|docs|feat|fix|perf|refactor|style|test|chore|other)((.+))?:\\s.+", - "message": "Your title needs to be prefixed with a topic." - } - ], - "body": [ - { - "pattern": ".{1,}", - "message": "You need literally some contents in your description" - } - ] -} diff --git a/.github/titleLint.yml b/.github/titleLint.yml new file mode 100644 index 0000000..b145762 --- /dev/null +++ b/.github/titleLint.yml @@ -0,0 +1 @@ +regex: (build|ci|docs|feat|fix|perf|refactor|style|test|chore|other): .*