spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

Merge pull request #7211 from anthropics/inigo/make-workflow-name-configurableBrowse files
Add workflow configuration
bogini authored on Sep 5, 2025 · GitHub committed on Sep 5, 2025 parents 702c601 + 1bcc5cf · commit 2b3a504f8559
1 changed file+9 -11compared with 702c601
M.github/workflows/issue-notify.yml
@@ -19,23 +19,21 @@
1919 ISSUE_NUMBER: ${{ github.event.issue.number }}
2020 ISSUE_TITLE: ${{ github.event.issue.title }}
2121 TARGET_REPO: ${{ secrets.ISSUE_NOTIFY_TARGET_REPO }}
22- GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN || github.token }}
22+ TARGET_WORKFLOW: ${{ secrets.ISSUE_NOTIFY_TARGET_WORKFLOW }}
23+ GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN }}
2324 run: |
2425 # Check if internal processing is configured
25- if [ -z "$TARGET_REPO" ]; then
26- echo "Internal processing not configured"
26+ if [ -z "$TARGET_REPO" ] || [ -z "$TARGET_WORKFLOW" ]; then
27+ echo "Not configured"
2728 exit 0
2829 fi
29-
30+
3031 echo "Processing issue #${ISSUE_NUMBER}"
31-
32+
3233 # Trigger internal workflow via workflow_dispatch
33- gh workflow run issue-detective.yml \
34+ gh workflow run ${TARGET_WORKFLOW} \
3435 --repo ${TARGET_REPO} \
35- -f "issue_url=${ISSUE_URL}" \
36- -f "lookback_days=7" 2>/dev/null || {
37- echo "Issue notification sent (dispatch may have failed due to permissions)"
36+ -f "issue_url=${ISSUE_URL}" 2>/dev/null || {
37+ echo "Issue notification sent"
3838 exit 0
3939 }
40-
41- echo "✅ Issue processed and dispatched to ${TARGET_REPO}"