summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-11 10:50:26 +0700
committerhathach <[email protected]>2024-04-11 10:50:26 +0700
commit3991ff34f11994e09f77d07e4d1b2fe4810cc01d (patch)
tree6462517cd1024c612c53e127cd3554a989d199b7 /.github
parentf1944f2b372d8d3c3b385b313bec6b87cf4197ed (diff)
use pull_request_target for labeler
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/labeler.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 5b22d977e..4d61fd350 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -3,7 +3,7 @@ name: Labeler
on:
issues:
types: [opened]
- pull_request:
+ pull_request_target:
types: [opened]
jobs:
@@ -25,9 +25,9 @@ jobs:
if (context.eventName === 'issues') {
username = context.payload.issue.user.login;
issueOrPrNumber = context.payload.issue.number;
- } else if (context.eventName === 'pull_request') {
- username = context.payload.pull_request.user.login;
- issueOrPrNumber = context.payload.pull_request.number;
+ } else if (context.eventName === 'pull_request_target') {
+ username = context.payload.pull_request_target.user.login;
+ issueOrPrNumber = context.payload.pull_request_target.number;
}
// Check if an Adafruit member