# https://github.com/Homebrew/homebrew-core/blob/ac74cb3f7dbdb2da2200886d5e740de124bab861/.github/workflows/automerge-triggers.yml name: Trigger automerge on: pull_request_review: types: - submitted pull_request_target: types: - unlabeled - ready_for_review jobs: check: if: > github.repository_owner == 'Homebrew' && ((github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'pull_request_target' && (github.event.action == 'ready_for_review' || github.event.label.name == 'automerge-skip'))) runs-on: ubuntu-latest steps: - run: true # This suffices to trigger `automerge.yml`.