Skip to content

feat(ci): GitHub CI, auto-merge, PR-canonical Ship docs #1

feat(ci): GitHub CI, auto-merge, PR-canonical Ship docs

feat(ci): GitHub CI, auto-merge, PR-canonical Ship docs #1

Workflow file for this run

name: Auto Merge
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
permissions:
contents: write
pull-requests: write
issues: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: >-
github.event.pull_request.draft == false &&
github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Enable auto-merge
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: gh pr merge --auto --squash "$PR_URL"