|
1 | 1 | --- |
2 | 2 |
|
3 | 3 | pull_request_rules: |
| 4 | + - name: 'Ensure all pull requests use the "develop" base branch' |
| 5 | + conditions: |
| 6 | + - 'base!=develop' |
| 7 | + actions: |
| 8 | + comment: |
| 9 | + message: | |
| 10 | + Hi, |
| 11 | + You've select an invalid base branch, we only authorize "develop". |
| 12 | + Please fix it, thanks. |
| 13 | + label: |
| 14 | + add: |
| 15 | + - 'invalid' |
| 16 | + remove: |
| 17 | + - 'ready to merge' |
| 18 | + - name: 'Assign all pull requests to achaussier' |
| 19 | + conditions: |
| 20 | + - '#assignee=0' |
| 21 | + actions: |
| 22 | + assign: |
| 23 | + users: |
| 24 | + - 'achaussier' |
| 25 | + - name: 'Remove label "ready to merge" in case of CI errors' |
| 26 | + conditions: |
| 27 | + - 'status-failure~=.*' |
| 28 | + actions: |
| 29 | + label: |
| 30 | + remove: |
| 31 | + - 'ready to merge' |
| 32 | + - name: 'Remove label "ready to merge" if pull request is closed' |
| 33 | + conditions: |
| 34 | + - 'closed' |
| 35 | + actions: |
| 36 | + label: |
| 37 | + remove: |
| 38 | + - 'invalid' |
| 39 | + - 'ready to merge' |
| 40 | + - name: 'Remove label "ready to merge" if pull request is a draft' |
| 41 | + conditions: |
| 42 | + - 'draft' |
| 43 | + actions: |
| 44 | + label: |
| 45 | + remove: |
| 46 | + - 'ready to merge' |
| 47 | + - name: 'Remove label "conflict" if no conflict' |
| 48 | + conditions: |
| 49 | + - '-conflict' |
| 50 | + actions: |
| 51 | + label: |
| 52 | + remove: |
| 53 | + - 'conflict' |
| 54 | + - name: 'Add label "conflict" if a conflict is detected' |
| 55 | + conditions: |
| 56 | + - 'conflict' |
| 57 | + actions: |
| 58 | + label: |
| 59 | + add: |
| 60 | + - 'conflict' |
| 61 | + remove: |
| 62 | + - 'ready to merge' |
| 63 | + - name: 'Remove label "ready to merge" once pull request is merged' |
| 64 | + conditions: |
| 65 | + - 'merged' |
| 66 | + actions: |
| 67 | + label: |
| 68 | + remove: |
| 69 | + - 'ready to merge' |
| 70 | + - name: 'Add label "ready to merge" if CI is OK' |
| 71 | + conditions: |
| 72 | + - 'base=develop' |
| 73 | + - '-draft' |
| 74 | + - 'status-success=pyup.io/safety-ci' |
| 75 | + - 'status-success=tests (3.6, 2.8)' |
| 76 | + - 'status-success=tests (3.6, 2.9)' |
| 77 | + - 'status-success=tests (3.7, 2.8)' |
| 78 | + - 'status-success=tests (3.7, 2.9)' |
| 79 | + - 'status-success=tests (3.8, 2.8)' |
| 80 | + - 'status-success=tests (3.8, 2.9)' |
| 81 | + - '-status-failure=pyup.io/safety-ci' |
| 82 | + - '-status-failure=tests (3.6, 2.8)' |
| 83 | + - '-status-failure=tests (3.6, 2.9)' |
| 84 | + - '-status-failure=tests (3.7, 2.8)' |
| 85 | + - '-status-failure=tests (3.7, 2.9)' |
| 86 | + - '-status-failure=tests (3.8, 2.8)' |
| 87 | + - '-status-failure=tests (3.8, 2.9)' |
| 88 | + actions: |
| 89 | + label: |
| 90 | + add: |
| 91 | + - 'ready to merge' |
| 92 | + - name: 'Add label "dependencies" on PyUP pull requests' |
| 93 | + conditions: |
| 94 | + - 'author=pyup-bot' |
| 95 | + actions: |
| 96 | + label: |
| 97 | + add: |
| 98 | + - 'dependencies' |
4 | 99 | - name: 'Automatic merge PyUP updates on CI success' |
5 | 100 | conditions: |
6 | 101 | - 'author=pyup-bot' |
7 | 102 | - 'base=develop' |
8 | | - - 'status-success=tests' |
| 103 | + - 'status-success=pyup.io/safety-ci' |
| 104 | + - 'status-success=tests (3.6, 2.8)' |
| 105 | + - 'status-success=tests (3.6, 2.9)' |
| 106 | + - 'status-success=tests (3.7, 2.8)' |
| 107 | + - 'status-success=tests (3.7, 2.9)' |
| 108 | + - 'status-success=tests (3.8, 2.8)' |
| 109 | + - 'status-success=tests (3.8, 2.9)' |
| 110 | + - '-status-failure=pyup.io/safety-ci' |
| 111 | + - '-status-failure=tests (3.6, 2.8)' |
| 112 | + - '-status-failure=tests (3.6, 2.9)' |
| 113 | + - '-status-failure=tests (3.7, 2.8)' |
| 114 | + - '-status-failure=tests (3.7, 2.9)' |
| 115 | + - '-status-failure=tests (3.8, 2.8)' |
| 116 | + - '-status-failure=tests (3.8, 2.9)' |
9 | 117 | actions: |
| 118 | + delete_head_branch: {} |
10 | 119 | merge: |
11 | 120 | method: 'merge' |
0 commit comments