From 3bcb3547d16539c959d5c5134107ff2b47209293 Mon Sep 17 00:00:00 2001 From: Marc Chan Date: Sat, 9 May 2026 21:49:13 +0800 Subject: [PATCH] fix(actions): map pull_request_target to contributor bot event (#1092) --- .github/workflows/contributor-card-bot.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/contributor-card-bot.yml b/.github/workflows/contributor-card-bot.yml index 6834a6423c..189e7cf4ec 100644 --- a/.github/workflows/contributor-card-bot.yml +++ b/.github/workflows/contributor-card-bot.yml @@ -50,4 +50,9 @@ jobs: BOT_APP_ID: ${{ secrets.BOT_APP_ID }} BOT_APP_INSTALLATION_ID: ${{ secrets.BOT_APP_INSTALLATION_ID }} BOT_APP_PRIVATE_KEY: ${{ secrets.BOT_APP_PRIVATE_KEY }} - run: pnpm exec tsx scripts/action-handler.ts + run: | + if [ "$GITHUB_EVENT_NAME" = "pull_request_target" ]; then + GITHUB_EVENT_NAME=pull_request pnpm exec tsx scripts/action-handler.ts + else + pnpm exec tsx scripts/action-handler.ts + fi