Fix: 因为并行引发的 mergebot 没有正常工作的问题;merge 方法不正确的问题 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |