Skip to content

Auto Merge

Auto Merge #770

Workflow file for this run

name: "Auto Merge"
on:
pull_request:
types:
- labeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
automerge:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- id: automerge
name: automerge
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "automerge"
MERGE_REMOVE_LABELS: "automerge,autorebase,autosquash"
MERGE_METHOD: "merge"
MERGE_METHOD_LABELS: "automerge=merge,autorebase=rebase,autosquash=squash"
MERGE_METHOD_LABEL_REQUIRED: "true"
MERGE_DELETE_BRANCH: "true"
MERGE_COMMIT_MESSAGE: "automatic"
MERGE_FORKS: "false"
MERGE_RETRIES: "3"
MERGE_RETRY_SLEEP: "10000"
MERGE_REQUIRED_APPROVALS: "1"
- name: feedback
if: ${{ steps.automerge.outputs.mergeResult == 'merged' }}
run: |
echo "Pull request ${{ steps.automerge.outputs.pullRequestNumber }} merged!"