Skip to content

Commit a9e02dd

Browse files
authored
✨ Add auto-approve workflow for pull requests (#141)
* ✨ Add auto-approve workflow for pull requests * ✨ Enhance auto-approve workflow to trigger on pull request events
1 parent f8d7d5e commit a9e02dd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Auto approve
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
auto-approve:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
if: >
13+
github.event.pull_request.base.ref ==
14+
github.event.repository.default_branch &&
15+
contains(
16+
format(',{0},', vars.AUTO_APPROVE_ACTORS),
17+
format(',{0},', github.actor_id)
18+
)
19+
steps:
20+
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0

0 commit comments

Comments
 (0)