aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2022-01-20 18:13:51 +0100
committerJan Macku <jamacku@redhat.com>2022-01-20 18:19:48 +0100
commit4e0a2fb2e457c7e7f660ec5e612df46640b148f5 (patch)
treea1068b7350d89c3164ed96533ebb01eaa8ca04a8
parentd257fe1a17505e5449c7487fcdefb84240b24078 (diff)
downloadinitscripts-4e0a2fb2e457c7e7f660ec5e612df46640b148f5.tar
initscripts-4e0a2fb2e457c7e7f660ec5e612df46640b148f5.tar.gz
initscripts-4e0a2fb2e457c7e7f660ec5e612df46640b148f5.tar.bz2
initscripts-4e0a2fb2e457c7e7f660ec5e612df46640b148f5.tar.xz
initscripts-4e0a2fb2e457c7e7f660ec5e612df46640b148f5.zip
ci(Mergify): configuration update
Signed-off-by: Jan Macku <null>
-rw-r--r--.mergify.yml128
1 files changed, 128 insertions, 0 deletions
diff --git a/.mergify.yml b/.mergify.yml
index be55be09..e88fab3f 100644
--- a/.mergify.yml
+++ b/.mergify.yml
@@ -1,4 +1,8 @@
+# doc: https://docs.mergify.com
+---
+
pull_request_rules:
+
- name: Automatic merge on approval & CI pass
# Don't merge when the title does contain “WIP” (ignoring case) or when label dont-merge is set
conditions:
@@ -13,3 +17,127 @@ pull_request_rules:
merge:
method: rebase
rebase_fallback: none
+
+ # --- --- Labels --- --- #
+
+ - name: Add Fedora label
+ conditions:
+ - base=master
+ actions:
+ label:
+ add:
+ - Fedora
+
+ - name: Remove Fedora label
+ conditions:
+ - base!=master
+ actions:
+ label:
+ remove:
+ - Fedora
+
+ # --- #
+
+ - name: Add RHEL8 label
+ conditions:
+ - base=rhel8-branch
+ actions:
+ label:
+ add:
+ - RHEL8
+
+ - name: Remove RHEL8 label
+ conditions:
+ - base!=rhel8-branch
+ actions:
+ label:
+ remove:
+ - RHEL8
+
+ # --- #
+
+ - name: Add RHEL9 label
+ conditions:
+ - base=rhel9-branch
+ actions:
+ label:
+ add:
+ - RHEL9
+
+ - name: Remove RHEL9 label
+ conditions:
+ - base!=rhel9-branch
+ actions:
+ label:
+ remove:
+ - RHEL9
+
+ # --- #
+
+ - name: Add network-scripts label
+ conditions:
+ - files~=^network-scripts/
+ actions:
+ label:
+ add:
+ - network-scripts
+
+ - name: Remove network-scripts label
+ conditions:
+ - -files~=^network-scripts/
+ actions:
+ label:
+ remove:
+ - network-scripts
+
+ # --- #
+
+ - name: Add documentation label
+ conditions:
+ - or:
+ - files~=^doc/
+ - files~=^po/
+ - files~=^man/
+ - files=README.md
+ actions:
+ label:
+ add:
+ - documentation
+
+ - name: Remove documentation label
+ conditions:
+ - and:
+ - -files~=^doc/
+ - -files~=^po/
+ - -files~=^man/
+ - -files=README.md
+ actions:
+ label:
+ remove:
+ - documentation
+
+ # --- #
+
+ - name: Add CI label
+ conditions:
+ - or:
+ - files~=^.github/
+ - files~=.mergify.yml
+ - files~=.packit.yml
+ actions:
+ label:
+ add:
+ - CI
+
+ - name: Remove CI label
+ conditions:
+ - and:
+ - -files~=^.github/
+ - -files~=.mergify.yml
+ - -files~=.packit.yml
+ actions:
+ label:
+ remove:
+ - CI
+
+ # --- #