-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (56 loc) · 1.36 KB
/
merge-bot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Merge Bot
on:
pull_request:
types:
- labeled
- ready_for_review
- review_request_removed
- review_requested
- synchronize
- unlabeled
pull_request_review:
types:
- dismissed
- submitted
jobs:
merge:
runs-on: ubuntu-latest
name: Merge
permissions:
contents: write
pull-requests: write
checks: read
steps:
- uses: actions/checkout@v4
- name: Integration check
uses: squalrus/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test: false # 如果想 Debug ,将该项改为 True
reviewers: false
labels: waitForMerge,readyForMerge
blocking_labels: do not merge
checks_enabled: true
method: merge
delete_source_branch: false
rebase:
needs: merge
runs-on: ubuntu-latest
name: rebase
permissions:
contents: write
pull-requests: write
checks: read
steps:
- uses: actions/checkout@v4
- name: Integration check
uses: squalrus/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test: false
reviewers: false
labels: waitForMerge,readyForRebase
blocking_labels: do not merge
checks_enabled: true
method: rebase
delete_source_branch: false