diff --git a/.mergify.yml b/.mergify.yml index 1b075b94..9d79662f 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -50,3 +50,18 @@ pull_request_rules: actions: queue: priority_rules: [] +merge_protections: + - name: Enforce conventional commit + description: Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/ + if: + - base = master + success_conditions: + - "title ~= + ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\\(.+\ + \\))?:" + - name: Do not merge outdated PRs + description: Make sure PRs are almost up to date before merging + if: + - base = master + success_conditions: + - "#commits-behind <= 10"