Skip to content

Commit

Permalink
CI: modify mergify config and remove global codeowner (#17122)
Browse files Browse the repository at this point in the history
  • Loading branch information
guguducken committed Jun 24, 2024
1 parent 07ef07a commit 8a3f70d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
38 changes: 17 additions & 21 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ queue_rules:
- name: release-1.2
merge_conditions: []
checks_timeout: 4h
- name: release-1.1
merge_conditions: []
checks_timeout: 4h

pull_request_rules:
- name: Automatic queue on approval for main
conditions:
- "#changes-requested-reviews-by<=0"
- label!=do-not-merge/wip
- base=main
- approved-reviews-by=fengttt
actions:
queue:
name: main
Expand All @@ -31,7 +29,7 @@ pull_request_rules:
- "#changes-requested-reviews-by<=0"
- label!=do-not-merge/wip
- base=1.2-dev
- approved-reviews-by=fengttt
- approved-reviews-by=sukki37
actions:
queue:
name: release-1.2
Expand All @@ -43,29 +41,27 @@ pull_request_rules:
Approved by: @{{ approved_reviews_by | join(', @') }}
- name: Automatic queue on approval for release-1.1
conditions:
- "#changes-requested-reviews-by<=0"
- label!=do-not-merge/wip
- base=1.1-dev
- approved-reviews-by=fengttt
actions:
queue:
name: release-1.1
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body.split("___\n\n### **PR Type**")[0] | trim | get_section("## What this PR does / why we need it:") }}
Approved by: @{{ approved_reviews_by | join(', @') }}
- name: Auto update branch
conditions:
- created-at>=00:10 ago
actions:
update:

- name: Auto Request Reviewer For main
conditions:
- base=main
actions:
request_reviews:
users:
- fengttt
- name: Auto Request Reviewer For 1.2-dev
conditions:
- base!=main
actions:
request_reviews:
users:
- sukki37

- name: label for Bug
conditions:
- body~=(?im)- \[x\] BUG
Expand Down
2 changes: 0 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# default owner for stuff that is not explicitly set for ownership
# for triage only

* @fengttt

# github and CI-related stuff
.github @sukki37
.github/actions @sukki37
Expand Down

0 comments on commit 8a3f70d

Please sign in to comment.