Skip to content

Automerge

Automerge #7710

Workflow file for this run

name: "Automerge"
on:
pull_request_target:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
check_suite:
types:
- completed
workflow_dispatch: {}
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: Enable auto-merge for automated chart bump PRs or label
id: automerge
if: |
(startsWith(github.head_ref, 'chartbump/') || contains(github.event.pull_request.labels.*.name, 'auto-merge'))
&& contains(github.event.pull_request.labels.*.name, 'ready-for-review')
&& !contains(github.event.pull_request.labels.*.name, 'do-not-merge')
&& !contains(github.event.pull_request.labels.*.name, 'do-not-merge/testing')
&& !contains(github.event.pull_request.labels.*.name, 'let-me-merge-it')
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}