Skip to content

Commit

Permalink
enhance: to use yaml anchor and alias to abstract common part in yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Sammy Huang <[email protected]>
  • Loading branch information
yellow-shine committed Feb 4, 2024
1 parent 1c1dd48 commit add1ab0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
shared:
- &source_code_files files~=^(?=.*((\.(go|h|cpp)|go.sum|go.mod|CMakeLists.txt|conanfile\.*))).*$
- &no_source_code_files -files~=^(?=.*((\.(go|h|cpp)|go.sum|go.mod|CMakeLists.txt|conanfile\.*))).*$

pull_request_rules:
- name: Add needs-dco label when DCO check failed
conditions:
Expand Down Expand Up @@ -93,8 +97,8 @@ pull_request_rules:
- base=master
- base=sql_beta
- base~=^2(\.\d+){1,2}$
- -files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt|conanfile\.*))).*$
- 'status-success=cpu-e2e'
- *no_source_code_files
actions:
label:
add:
Expand Down Expand Up @@ -152,7 +156,7 @@ pull_request_rules:
- base~=^2(\.\d+){1,2}$
- title~=\[skip e2e\]
- label=kind/enhancement
- -files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
- *no_source_code_files
actions:
label:
add:
Expand Down Expand Up @@ -255,7 +259,7 @@ pull_request_rules:
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Code Checker MacOS 12'
- 'status-success=Code Checker Amazonlinux 2023'
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
- *source_code_files
actions:
label:
add:
Expand All @@ -269,7 +273,7 @@ pull_request_rules:
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Code Checker MacOS 12'
- 'status-success=Code Checker CentOS 7'
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
- *source_code_files
actions:
label:
add:
Expand All @@ -296,7 +300,7 @@ pull_request_rules:
- base=master
- base=sql_beta
- base~=^2\.3(\.\d+){0,1}$
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
- *no_source_code_files
- or:
- 'status-success!=Code Checker AMD64 Ubuntu 20.04'
- 'status-success!=Build and test AMD64 Ubuntu 20.04'
Expand All @@ -311,7 +315,7 @@ pull_request_rules:
conditions:
- label!=manual-pass
- base~=^2\.2\.\d+$
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
- *no_source_code_files
- or:
- 'status-success!=Code Checker AMD64 Ubuntu 20.04'
- 'status-success!=Build and test AMD64 Ubuntu 20.04'
Expand Down

0 comments on commit add1ab0

Please sign in to comment.