Skip to content

Add resource event listener extension point and Groovy callback #156

Add resource event listener extension point and Groovy callback

Add resource event listener extension point and Groovy callback #156

# Auto-enable squash merge for Dependabot PRs
# GitHub will automatically merge once all required checks pass
#
# Uses pull_request_target so the workflow runs in the base-branch context
# and the default GITHUB_TOKEN has write permissions (Dependabot-triggered
# pull_request events only expose a read-only token).
name: Dependabot Auto-merge
on: pull_request_target
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ github.token }}