mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
There is very little to be gained by having to approve those PRs, and it is a lot of UI interaction to get them approved. They still will need to be merged manually regardless, so they might as well be approved by a bot.
22 lines
556 B
YAML
22 lines
556 B
YAML
name: Dependabot auto-approve
|
|
on: pull_request
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
dependabot:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
steps:
|
|
- name: Dependabot metadata
|
|
id: metadata
|
|
uses: dependabot/fetch-metadata@v1.1.1
|
|
with:
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
- name: Approve a PR
|
|
run: gh pr review --approve "$PR_URL"
|
|
env:
|
|
PR_URL: ${{github.event.pull_request.html_url}}
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|