Skip to content

CP-15835: chore(github): Add CODEOWNERS file #61

CP-15835: chore(github): Add CODEOWNERS file

CP-15835: chore(github): Add CODEOWNERS file #61

name: Dependabot auto-merge
on: pull_request_target
permissions:
pull-requests: write
contents: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Auto-Approve Dependabot PRs
uses: hmarr/auto-approve-action@v3
with:
review-message: "Auto approved automated PR"
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: '${{ secrets.CLOUDZERO_BOT_TOKEN }}'
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.CLOUDZERO_BOT_TOKEN}}