Skip to content

Commit

Permalink
chore: add auto-approve.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed Nov 5, 2023
1 parent 00eb501 commit cdd676d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: auto-approve

on:
pull_request_target:
types:
- opened
- synchronize
workflow_dispatch:
inputs:
pullRequestNumber:
description: Pull request number to auto-approve
required: false

jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.actor == 'renovate[bot]' || github.event_name == 'workflow_dispatch'
steps:
- uses: hmarr/auto-approve-action@v3
with:
review-message: "Auto approved automated PR"
pull-request-number: ${{ github.event.inputs.pullRequestNumber }}

0 comments on commit cdd676d

Please sign in to comment.