From afa44cc93d721bdc4b4f977a596cde725aaaaa77 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sun, 13 Jun 2021 09:05:37 -0700 Subject: Update .mergify.yml --- .mergify.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.mergify.yml b/.mergify.yml index 735a8645..b4d23a74 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -5,4 +5,20 @@ pull_request_rules: actions: close: comment: - message: "CONFIG.md is auto-generated: edit the lua source file instead (and re-read the PR template)." \ No newline at end of file + message: "CONFIG.md is auto-generated: edit the lua source file instead (and re-read the PR template)." + pull_request_rules: + - name: Conventional Commit + conditions: + - "title~=^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\\(.+\\))?:" + actions: + post_check: + title: | + {% if check_succeed %} + Title follows Conventional Commit + {% else %} + Title does not follow Conventional Commit + {% endif %} + summary: | + {% if not check_succeed %} + Your pull request title must follow [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/). + {% endif %} -- cgit v1.3.1