mirror of
https://github.com/anthropics/claude-code.git
synced 2026-01-30 04:02:03 +00:00
Update workflow trigger method
This commit is contained in:
11
.github/workflows/issue-notify.yml
vendored
11
.github/workflows/issue-notify.yml
vendored
@@ -29,12 +29,11 @@ jobs:
|
|||||||
|
|
||||||
echo "Processing issue #${ISSUE_NUMBER}"
|
echo "Processing issue #${ISSUE_NUMBER}"
|
||||||
|
|
||||||
# Trigger internal workflow via repository_dispatch
|
# Trigger internal workflow via workflow_dispatch
|
||||||
gh api repos/${TARGET_REPO}/dispatches \
|
gh workflow run issue-detective.yml \
|
||||||
--method POST \
|
--repo ${TARGET_REPO} \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-f "issue_url=${ISSUE_URL}" \
|
||||||
-f event_type="issue-opened" \
|
-f "lookback_days=7" 2>/dev/null || {
|
||||||
-f "client_payload[issue_url]=${ISSUE_URL}" 2>/dev/null || {
|
|
||||||
echo "Issue notification sent (dispatch may have failed due to permissions)"
|
echo "Issue notification sent (dispatch may have failed due to permissions)"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user