From ce9e04ece4cd8f2860e88a10460ca7e144cc7294 Mon Sep 17 00:00:00 2001 From: Mohammad Noor Abu Khleif Date: Thu, 14 Nov 2024 14:57:11 +0300 Subject: [PATCH] feat: auto approve bot prs (#26) --- .github/workflows/pr-auto-approve.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/pr-auto-approve.yaml diff --git a/.github/workflows/pr-auto-approve.yaml b/.github/workflows/pr-auto-approve.yaml new file mode 100644 index 0000000..99bdeaf --- /dev/null +++ b/.github/workflows/pr-auto-approve.yaml @@ -0,0 +1,16 @@ +name: Auto First Approval for Bot PRs +on: pull_request + +jobs: + auto-first-approve: + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: read + if: github.actor == 'dependabot[bot]' || github.actor == 'renovate[bot]' + steps: + - name: Provide first approval + uses: hmarr/auto-approve-action@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + review-message: "Renovate and Dependabot PRs are automatically approved. Still requires human review."