Skip to content

Commit

Permalink
Fix auto-approve from workflow run (#4111)
Browse files Browse the repository at this point in the history
Turns out that it does not know how to infer the pull request number now
that it uses the workflow_run trigger.

More on the event payload
https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads?actionType=opened#pull_request
  • Loading branch information
jcscottiii authored Apr 27, 2023
1 parent 8724ba7 commit 11f7ccf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ jobs:
pull-requests: write
steps:
- uses: hmarr/auto-approve-action@v3
with:
pull-request-number: ${{ github.event.workflow_run.event.pull_request.number }}

0 comments on commit 11f7ccf

Please sign in to comment.