Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript

Fix cross-repo workflow trigger mechanism

inigo8fba17cb9973
diff --git a/.github/workflows/issue-notify.yml b/.github/workflows/issue-notify.yml
index 4551c228..e0351cec 100644
--- a/.github/workflows/issue-notify.yml
+++ b/.github/workflows/issue-notify.yml
@@ -30,10 +30,10 @@ jobs:
echo "Processing issue #${ISSUE_NUMBER}"
- # Trigger internal workflow via workflow_dispatch
- gh workflow run ${TARGET_WORKFLOW} \
- --repo ${TARGET_REPO} \
- -f "issue_url=${ISSUE_URL}" 2>/dev/null || {
+ # Trigger internal workflow via repository_dispatch
+ gh api repos/${TARGET_REPO}/dispatches \
+ -f event_type=issue_opened \
+ -f client_payload[issue_url]="${ISSUE_URL}"|| {
echo "Issue notification sent"
exit 0
}