github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/.github/mergify.yml (about)

     1  pull_request_rules:
     2    - name: Test passed for code changed
     3      conditions:
     4        - or:
     5          - base=master
     6          - base~=^v2(\.\d+).x$
     7        - "status-success=Unittest AMD64 Ubuntu 18.04"
     8        - "status-success=lint"
     9        - "status-success=Run Ci Test (standalone)"
    10        - "status-success=Run Ci Test (cluster)"
    11      actions:
    12        label:
    13          add:
    14            - ci-passed
    15            
    16    - name: Test passed for e2e changed
    17      conditions:
    18        - or:
    19          - base=master
    20          - base~=^v2(\.\d+).x$
    21        - -files~=^(?!test\/).+
    22        - "status-success=lint"
    23        - "status-success=Run Ci Test (standalone)"
    24        - "status-success=Run Ci Test (cluster)"
    25      actions:
    26        label:
    27          add:
    28            - ci-passed
    29            - "test\/ci"
    30  
    31    - name: Test passed for document changed
    32      conditions:
    33        - base=.+
    34        - -files~=^[^\.]+$
    35        - -files~=\.(?!md|png)
    36      actions:
    37        label:
    38          add:
    39            - ci-passed
    40            - "kind\/documentation"
    41  
    42    - name: Test passed for mergify changed
    43      conditions:
    44        - base=master
    45        - -files~=^(?!\.github\/mergify\.yml).*$
    46      actions:
    47        label:
    48          add:
    49            - ci-passed
    50  
    51    - name: Test passed for workflow changed
    52      conditions:
    53        - or:
    54          - base=master
    55          - base~=^v2(\.\d+).x$
    56        - -files~=^(?!\.github\/).+
    57      actions:
    58        label:
    59          add:
    60            - ci-passed
    61            - "kind\/workflow"
    62  
    63    - name: Test passed for example code changed
    64      conditions:
    65        - or:
    66          - base=master
    67          - base~=^v2(\.\d+).x$
    68        - -files~=^(?!examples\/).+
    69        - "status-success=lint"
    70      actions:
    71        label:
    72          add:
    73            - ci-passed
    74  
    75    - name: Remove ci-passed when some test failed
    76      conditions:
    77        - or:
    78          - base=master
    79          - base~=^v2(\.\d+).x$
    80        - or:
    81          - "check-failure=Unittest AMD64 Ubuntu 18.04"
    82          - "check-failure=lint"
    83      actions:
    84        label:
    85          remove:
    86            - ci-passed
    87            
    88    - name: Remove ci-passed when some test failed for branch
    89      conditions:
    90        - or:
    91          - base=master
    92          - base~=^v2(\.\d+).x$
    93        - or:
    94          - "check-failure=Unittest AMD64 Ubuntu 18.04"
    95          - "check-failure=lint"
    96          - "check-failure=Run Ci Test (standalone)"
    97          - "check-failure=Run Ci Test (cluster)"
    98      actions:
    99        label:
   100          remove:
   101            - ci-passed
   102  
   103    - name: Blocking PR if missing a related issue or PR doesn't have kind/improvement label
   104      conditions:
   105        - base=.+
   106        - -body~=\#[0-9]{1,6}(\s+|$)
   107        - -label=kind/improvement
   108        - -title~=\[automated\]
   109      actions:
   110        label:
   111          add:
   112            - do-not-merge/missing-related-issue
   113        comment:
   114          message: |
   115            @{{author}} Please associate the related issue to the body of your Pull Request.  (eg. “issue: #187”)
   116  
   117  
   118    - name: Dismiss block label if related issue be added into PR
   119      conditions:
   120        - or:
   121          - and:
   122            - base=.+
   123            - body~=\#[0-9]{1,6}(\s+|$)
   124          - and:
   125            - base=.+
   126            - label=kind/improvement
   127      actions:
   128        label:
   129          remove:
   130            - do-not-merge/missing-related-issue
   131