Skip to content

chore(deps): update actions/github-script action to v7 #39

chore(deps): update actions/github-script action to v7

chore(deps): update actions/github-script action to v7 #39

Workflow file for this run

name: Automerge
on:
pull_request:
types: [labeled]
jobs:
auto-merge:
name: Auto merge bot PRs
runs-on: ubuntu-latest
if: |
github.event.label.name == 'automerge' &&
endsWith(github.actor, '[bot]')
steps:
- name: Squash and merge
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
merge_method: 'squash'
})