Auto merge of approved pull requests with passed checks #377
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: 'Auto merge of approved pull requests with passed checks' | |
on: | |
pull_request: | |
types: | |
- labeled | |
- unlabeled | |
- synchronize | |
- opened | |
- edited | |
- ready_for_review | |
- reopened | |
- unlocked | |
pull_request_review: | |
types: | |
- submitted | |
check_suite: | |
types: | |
- completed | |
status: {} | |
jobs: | |
automerge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Automerge PR' | |
uses: "pascalgn/automerge-action@v0.12.0" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
MERGE_METHOD: 'squash' | |
MERGE_LABELS: "approved,!work in progress" | |
MERGE_REMOVE_LABELS: "approved" | |
MERGE_COMMIT_MESSAGE: "pull-request-description" | |
MERGE_RETRIES: "6" | |
MERGE_RETRY_SLEEP: "10000" | |
UPDATE_LABELS: "" | |
UPDATE_METHOD: "rebase" | |
MERGE_DELETE_BRANCH: false |