Skip to content

Commit b9bf004

Browse files
authored
🐛 Update auto-approve workflow to use GitHub script for pull request approvals (#145)
1 parent 1f087ec commit b9bf004

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/pr_autoapprove.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,15 @@ jobs:
1515
format(',{0},', vars.AUTO_APPROVE_ACTORS),
1616
format(',{0},', github.event.pull_request.user.id)
1717
)
18+
1819
steps:
19-
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
20+
- uses: actions/github-script@v7
21+
with:
22+
script: |
23+
const pr = context.payload.pull_request
24+
await github.rest.pulls.createReview({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
pull_number: pr.number,
28+
event: "APPROVE",
29+
})

0 commit comments

Comments
 (0)