Skip to content

Feat: add pull_request_review GHA event type #451

Feat: add pull_request_review GHA event type

Feat: add pull_request_review GHA event type #451

Workflow file for this run

name: Dependabot auto-merge
on: pull_request_target
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-merge patch updates
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}