Skip to content

Commit

Permalink
ci(Mergify): configuration update
Browse files Browse the repository at this point in the history
Signed-off-by: Hsu Zhong Jun <null>
  • Loading branch information
dcshzj committed Sep 30, 2024
1 parent e894337 commit 1ce4c81
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
pull_request_rules:
- name: Automatically decline PRs to main that do not come from the staging branch
description: The main branch cannot contain additional commits not present in
the staging branch.
conditions:
- base = main
- head != staging
actions:
review:
type: REQUEST_CHANGES
close:
message: Please make your changes directly on the staging branch and create the
pull request from the staging branch to main!
- name: Automatically merge safe indirection PRs
description: Merge when PR contains additions made by the backend CMS on site launch
conditions:
- base = main
- head = staging
- files~=^dns/
- '#commits = 1'
- '#files = 1'
- '#added-lines = 34'
- '#deleted-lines = 0'
- "#commits = 1"
- "#files = 1"
- "#added-lines = 34"
- "#deleted-lines = 0"
actions:
review:
type: APPROVE
merge:
merge:

0 comments on commit 1ce4c81

Please sign in to comment.