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
| @@ -19,23 +19,21 @@ | ||
| 19 | 19 | ISSUE_NUMBER: ${{ github.event.issue.number }} |
| 20 | 20 | ISSUE_TITLE: ${{ github.event.issue.title }} |
| 21 | 21 | TARGET_REPO: ${{ secrets.ISSUE_NOTIFY_TARGET_REPO }} |
| 22 | - TARGET_WORKFLOW: ${{ secrets.ISSUE_NOTIFY_TARGET_WORKFLOW || 'issue-detective.yml' }} | |
| 23 | - GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN || github.token }} | |
| 22 | + TARGET_WORKFLOW: ${{ secrets.ISSUE_NOTIFY_TARGET_WORKFLOW }} | |
| 23 | + GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN }} | |
| 24 | 24 | run: | |
| 25 | 25 | # Check if internal processing is configured |
| 26 | - if [ -z "$TARGET_REPO" ]; then | |
| 27 | - echo "Internal processing not configured" | |
| 26 | + if [ -z "$TARGET_REPO" ] || [ -z "$TARGET_WORKFLOW" ]; then | |
| 27 | + echo "Not configured" | |
| 28 | 28 | exit 0 |
| 29 | 29 | fi |
| 30 | - | |
| 30 | + | |
| 31 | 31 | echo "Processing issue #${ISSUE_NUMBER}" |
| 32 | - | |
| 32 | + | |
| 33 | 33 | # Trigger internal workflow via workflow_dispatch |
| 34 | 34 | gh workflow run ${TARGET_WORKFLOW} \ |
| 35 | 35 | --repo ${TARGET_REPO} \ |
| 36 | 36 | -f "issue_url=${ISSUE_URL}" 2>/dev/null || { |
| 37 | - echo "Issue notification sent (dispatch may have failed due to permissions)" | |
| 37 | + echo "Issue notification sent" | |
| 38 | 38 | exit 0 |
| 39 | 39 | } |
| 40 | - | |
| 41 | - echo "✅ Issue processed and dispatched to ${TARGET_REPO}" |