homebrew-cask/.github/workflows/automerge.yml

35 lines
842 B
YAML

name: Enable auto-merge
on:
schedule:
- cron: 0 * * * *
pull_request_target:
types:
- opened
- synchronize
- reopened
- edited
- labeled
- unlabeled
- ready_for_review
concurrency:
group: automerge
permissions: {}
jobs:
automerge:
if: startsWith(github.repository, 'Homebrew/')
runs-on: ubuntu-latest
steps:
- uses: reitermarkus/automerge@c4674ad9c3cdb43136d8f96d69ae7444dd74acb0
with:
token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
merge-method: squash
squash-commit-title: ${pull_request.title} (#${pull_request.number})
squash-commit-message: '\n'
do-not-merge-labels: automerge-skip,do not merge
required-labels: bump-cask-pr
pull-request-author-associations: MEMBER,OWNER