Skip to content

fix: handle JSON object keys containing escape sequences #358

fix: handle JSON object keys containing escape sequences

fix: handle JSON object keys containing escape sequences #358

---
name: Auto-merge Dependabot PRs
"on":
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
permissions:
contents: read
pull-requests: write
steps:
- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
with:
app-id: ${{ secrets.AUTOMERGE_APP_ID }}
private-key: ${{ secrets.AUTOMERGE_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: ${{ github.event.repository.name }}
- name: Enable auto-merge for Dependabot PRs
run: |
gh pr merge --auto --squash ${{ github.event.pull_request.number }} --repo ${{ github.repository }}
gh pr comment ${{ github.event.pull_request.number }} \
--body "🤖 Auto-merge enabled. This PR will merge automatically once all required checks pass." \
--repo ${{ github.repository }}
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}