mirror of
https://github.com/anthropics/claude-code.git
synced 2025-10-19 03:17:50 +03:00
Merge pull request #7211 from anthropics/inigo/make-workflow-name-configurable
Add workflow configuration
This commit is contained in:
20
.github/workflows/issue-notify.yml
vendored
20
.github/workflows/issue-notify.yml
vendored
@@ -19,23 +19,21 @@ jobs:
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
ISSUE_TITLE: ${{ github.event.issue.title }}
|
||||
TARGET_REPO: ${{ secrets.ISSUE_NOTIFY_TARGET_REPO }}
|
||||
GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN || github.token }}
|
||||
TARGET_WORKFLOW: ${{ secrets.ISSUE_NOTIFY_TARGET_WORKFLOW }}
|
||||
GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN }}
|
||||
run: |
|
||||
# Check if internal processing is configured
|
||||
if [ -z "$TARGET_REPO" ]; then
|
||||
echo "Internal processing not configured"
|
||||
if [ -z "$TARGET_REPO" ] || [ -z "$TARGET_WORKFLOW" ]; then
|
||||
echo "Not configured"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
echo "Processing issue #${ISSUE_NUMBER}"
|
||||
|
||||
|
||||
# Trigger internal workflow via workflow_dispatch
|
||||
gh workflow run issue-detective.yml \
|
||||
gh workflow run ${TARGET_WORKFLOW} \
|
||||
--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)"
|
||||
-f "issue_url=${ISSUE_URL}" 2>/dev/null || {
|
||||
echo "Issue notification sent"
|
||||
exit 0
|
||||
}
|
||||
|
||||
echo "✅ Issue processed and dispatched to ${TARGET_REPO}"
|
||||
Reference in New Issue
Block a user