mirror of
https://github.com/anthropics/claude-code.git
synced 2025-10-19 03:17:50 +03: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}"
|
||||
|
||||
# Trigger internal workflow via repository_dispatch
|
||||
gh api repos/${TARGET_REPO}/dispatches \
|
||||
--method POST \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
-f event_type="issue-opened" \
|
||||
-f "client_payload[issue_url]=${ISSUE_URL}" 2>/dev/null || {
|
||||
# Trigger internal workflow via workflow_dispatch
|
||||
gh workflow run issue-detective.yml \
|
||||
--repo ${TARGET_REPO} \
|
||||
-f "issue_url=${ISSUE_URL}" \
|
||||
-f "lookback_days=7" 2>/dev/null || {
|
||||
echo "Issue notification sent (dispatch may have failed due to permissions)"
|
||||
exit 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user