add _target for forked repo support

This commit is contained in:
MyDrift 2024-09-17 12:52:36 +02:00
parent 5e83ca55e7
commit 63b7da40a4

View File

@ -1,7 +1,7 @@
name: Manage labels based on PR body name: Manage labels based on PR body
on: on:
pull_request: pull_request_target:
types: [opened, edited, reopened, synchronize] types: [opened, edited, reopened, synchronize]
jobs: jobs:
@ -53,4 +53,4 @@ jobs:
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \ -H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels/$label https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels/$label
done done