From 081d0a6354c4281afe96c7d65b1b9a9ad3a00588 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 4 Nov 2022 14:50:42 +1100 Subject: [PATCH 1/4] Enforce conventional commit PR title --- .github/mergify.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 107cb9d1703..0bb82e2ff8d 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -23,6 +23,24 @@ pull_request_rules: actions: queue: + - name: Conventional Commit PR title + conditions: + - base=master + actions: + post_check: + success_conditions: + - "title~=^(fix|feat|docs|refactor|chore)(?:\\(.+\\))?:" + 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 %} + queue_rules: - name: default conditions: [] From 7ddf61806928714d41bbf1e83e154ef71c654ede Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 4 Nov 2022 14:57:10 +1100 Subject: [PATCH 2/4] Make sure dependency updates are allowed --- .github/dependabot.yml | 6 ++++-- .github/mergify.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 51d4fa99462..d4b7d58a201 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,9 +5,11 @@ updates: schedule: interval: "daily" open-pull-requests-limit: 9999 - + commit-message: + prefix: "deps" - package-ecosystem: "github-actions" directory: "/" schedule: - # Check for updates to GitHub Actions every weekday interval: "daily" + commit-message: + prefix: "deps" diff --git a/.github/mergify.yml b/.github/mergify.yml index 0bb82e2ff8d..cfaf0b6e0d7 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -29,7 +29,7 @@ pull_request_rules: actions: post_check: success_conditions: - - "title~=^(fix|feat|docs|refactor|chore)(?:\\(.+\\))?:" + - "title~=^(fix|feat|docs|refactor|chore|deps)(?:\\(.+\\))?:" title: | {% if check_succeed %} Title follows Conventional Commit From e67deb062129989e5ec54e4f2074f42f22285628 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 15 Nov 2022 11:51:24 +1100 Subject: [PATCH 3/4] Update .github/mergify.yml Co-authored-by: Elena Frank --- .github/mergify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index cfaf0b6e0d7..4ea060fb2c4 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -29,7 +29,7 @@ pull_request_rules: actions: post_check: success_conditions: - - "title~=^(fix|feat|docs|refactor|chore|deps)(?:\\(.+\\))?:" + - "title~=^(fix|feat|docs|refactor|chore|deps)(?:\\(.+\\))?!?:" title: | {% if check_succeed %} Title follows Conventional Commit From d7552dcc158b2137683928c3dbcc58fd520065ea Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 22 Nov 2022 17:36:39 +1100 Subject: [PATCH 4/4] Update .github/mergify.yml --- .github/mergify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index 4ea060fb2c4..8610beec161 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -29,7 +29,7 @@ pull_request_rules: actions: post_check: success_conditions: - - "title~=^(fix|feat|docs|refactor|chore|deps)(?:\\(.+\\))?!?:" + - "title~=^(fix|feat|docs|refactor|chore|deps)(\\(.+\\))?!?:" title: | {% if check_succeed %} Title follows Conventional Commit