From 7c8d61a2046a559a70f19ba2acdf609f0c4e20d4 Mon Sep 17 00:00:00 2001 From: Antonio Date: Sun, 3 Dec 2023 22:05:20 +0100 Subject: [PATCH] ci(Mergify): configuration update Signed-off-by: Antonio --- .mergify.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..3c9f152 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,19 @@ +pull_request_rules: + - name: Conventional Commit + conditions: + - base=main + actions: + post_check: + success_conditions: + - "title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\\(.+\\))?:" + title: | + {% if check_status == "success" %} + Title follows Conventional Commit + {% else %} + Title does not follow Conventional Commit + {% endif %} + summary: | + {% if check_status == "failure" %} + Your pull request title must follow + [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/). + {% endif %} \ No newline at end of file