|
12 | 12 | # See the License for the specific language governing permissions and |
13 | 13 | # limitations under the License. |
14 | 14 |
|
15 | | -pull_request_rules: |
16 | | - |
17 | | - - name: Automatic merge on approval |
18 | | - conditions: |
19 | | - - base=master |
20 | | - # number of review approvals |
21 | | - - "#approved-reviews-by>=3" |
22 | | - # no waiting or assigned review |
23 | | - - "#review-requested=0" |
24 | | - # no requested chnages from any reviewer |
25 | | - - "#changes-requested-reviews-by=0" |
26 | | - # this serves as ALL check has to pass as we have actually around 40 tests in total |
27 | | - - "#status-success>=54" |
28 | | - # this is just in case since we rely on GPU tests (note: redundand to the above) |
29 | | - - status-success=continuous-integration/drone/pr |
30 | | - - "status-success=ci/circleci: TPU-tests" |
31 | | - # this is patter-like, unofrunatly serves as `any(...)` (note: redundand to the above) |
32 | | - #- "status-success~=^ci/circleci:" |
33 | | - # no conflict with master branch |
34 | | - - -conflict |
35 | | - # was not closed yet |
36 | | - - -closed |
37 | | - # filter-out GH draft PRs |
38 | | - - -draft |
39 | | - actions: |
40 | | - delete_head_branch: {} |
41 | | - merge: |
42 | | - # https://doc.mergify.io/merge-action.html#strict-merge |
43 | | - # (on head branch) $ git merge --no-ff base |
44 | | - # (on head branch) # Wait for CI to go green |
45 | | - # (on head branch) # Squash all commits |
46 | | - # (on base branch) $ git merge --ff head |
47 | | - strict: true |
48 | | - method: squash |
49 | | - comment: |
50 | | - message: Great job! =) |
51 | | - |
52 | | - - name: warn on conflicts |
53 | | - conditions: |
54 | | - - conflict |
55 | | - # filter-out GH draft PRs |
56 | | - - -draft |
57 | | - actions: |
58 | | - comment: |
59 | | - message: This pull request is now in conflict... :( |
60 | | - |
61 | | - - name: add core reviewer |
62 | | - conditions: |
63 | | - # filter-out GH draft PRs |
64 | | - - -draft |
65 | | - # number of review approvals |
66 | | - - "#approved-reviews-by<3" |
67 | | - actions: |
68 | | - request_reviews: |
69 | | - teams: |
70 | | - - core-contributors |
| 15 | +#pull_request_rules: |
| 16 | +# |
| 17 | +# - name: Automatic merge on approval |
| 18 | +# conditions: |
| 19 | +# - base=master |
| 20 | +# # number of review approvals |
| 21 | +# - "#approved-reviews-by>=3" |
| 22 | +# # no waiting or assigned review |
| 23 | +# - "#review-requested=0" |
| 24 | +# # no requested chnages from any reviewer |
| 25 | +# - "#changes-requested-reviews-by=0" |
| 26 | +# # this serves as ALL check has to pass as we have actually around 40 tests in total |
| 27 | +# - "#status-success>=54" |
| 28 | +# # this is just in case since we rely on GPU tests (note: redundand to the above) |
| 29 | +# - status-success=continuous-integration/drone/pr |
| 30 | +# - "status-success=ci/circleci: TPU-tests" |
| 31 | +# # this is patter-like, unofrunatly serves as `any(...)` (note: redundand to the above) |
| 32 | +# #- "status-success~=^ci/circleci:" |
| 33 | +# # no conflict with master branch |
| 34 | +# - -conflict |
| 35 | +# # was not closed yet |
| 36 | +# - -closed |
| 37 | +# # filter-out GH draft PRs |
| 38 | +# - -draft |
| 39 | +# actions: |
| 40 | +# delete_head_branch: {} |
| 41 | +# merge: |
| 42 | +# # https://doc.mergify.io/merge-action.html#strict-merge |
| 43 | +# # (on head branch) $ git merge --no-ff base |
| 44 | +# # (on head branch) # Wait for CI to go green |
| 45 | +# # (on head branch) # Squash all commits |
| 46 | +# # (on base branch) $ git merge --ff head |
| 47 | +# strict: true |
| 48 | +# method: squash |
| 49 | +# comment: |
| 50 | +# message: Great job! =) |
| 51 | +# |
| 52 | +# - name: warn on conflicts |
| 53 | +# conditions: |
| 54 | +# - conflict |
| 55 | +# # filter-out GH draft PRs |
| 56 | +# - -draft |
| 57 | +# actions: |
| 58 | +# comment: |
| 59 | +# message: This pull request is now in conflict... :( |
| 60 | +# |
| 61 | +# - name: add core reviewer |
| 62 | +# conditions: |
| 63 | +# # filter-out GH draft PRs |
| 64 | +# - -draft |
| 65 | +# # number of review approvals |
| 66 | +# - "#approved-reviews-by<3" |
| 67 | +# actions: |
| 68 | +# request_reviews: |
| 69 | +# teams: |
| 70 | +# - core-contributors |
0 commit comments