Skip to content

Commit

Permalink
Merge pull request #896 from puremourning/mergify/configuration-depre…
Browse files Browse the repository at this point in the history
…cated-update

ci(mergify): upgrade configuration to current format
  • Loading branch information
puremourning authored Dec 11, 2024
2 parents 696c52a + 1df8196 commit 901c874
Showing 1 changed file with 68 additions and 5 deletions.
73 changes: 68 additions & 5 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# https://blog.mergify.com/strict-mode-deprecation/
queue_rules:
- name: duplicated default from Merge owner PR when all checks passed
queue_conditions:
- author=puremourning
- base=master
- status-success=code-review/reviewable
- "#changes-requested-reviews-by=0"
- status-success=PythonLint
- status-success=VimscriptLint
- status-success=Linux (vim)
- status-success=Linux (nvim)
- status-success=MacOS (vim)
merge_conditions:
# CI https://doc.mergify.io/conditions.html#github-actions
- status-success=PythonLint
- status-success=VimscriptLint
- status-success=Linux (vim)
- status-success=Linux (nvim)
- status-success=MacOS (vim)
#- status-success=MacOS (nvim)

merge_method: merge
- name: duplicated default from Merge auto pr when approved
queue_conditions:
- author=VimspectorUpdateBot
- label=auto
- base=master
- status-success=code-review/reviewable
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
merge_conditions:
# CI https://doc.mergify.io/conditions.html#github-actions
- status-success=PythonLint
- status-success=VimscriptLint
- status-success=Linux (vim)
- status-success=Linux (nvim)
- status-success=MacOS (vim)
#- status-success=MacOS (nvim)

merge_method: merge
- name: duplicated default from Merge PR when all checks passed
queue_conditions:
- author!=puremourning
- base=master
- status-success=code-review/reviewable
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- approved-reviews-by=puremourning
- status-success=PythonLint
- status-success=VimscriptLint
- status-success=Linux (vim)
- status-success=Linux (nvim)
- status-success=MacOS (vim)
merge_conditions:
# CI https://doc.mergify.io/conditions.html#github-actions
- status-success=PythonLint
- status-success=VimscriptLint
- status-success=Linux (vim)
- status-success=Linux (nvim)
- status-success=MacOS (vim)
#- status-success=MacOS (nvim)

merge_method: merge
- name: default
# These define the conditions to get out of the merge queue
conditions:
Expand All @@ -11,6 +73,7 @@ queue_rules:
- status-success=MacOS (vim)
#- status-success=MacOS (nvim)


pull_request_rules:
- name: Merge owner PR when all checks passed
# These define the conditions to get into the merge queue
Expand All @@ -28,11 +91,7 @@ pull_request_rules:
- status-success=MacOS (vim)
#- status-success=MacOS (nvim)
actions: &merge-actions
queue:
method: merge
name: default
delete_head_branch: {}

- name: Merge auto pr when approved
conditions:
- author=VimspectorUpdateBot
Expand All @@ -44,7 +103,6 @@ pull_request_rules:
- "#changes-requested-reviews-by=0"
actions:
<<: *merge-actions

- name: Merge PR when all checks passed
# These define the conditions to get into the merge queue
conditions:
Expand All @@ -66,3 +124,8 @@ pull_request_rules:
<<: *merge-actions
comment:
message: Thanks for sending a PR!
- name: Merge PR when all checks passed + Merge auto pr when approved + Merge owner
PR when all checks passed
conditions: []
actions:
queue:

0 comments on commit 901c874

Please sign in to comment.