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
Update workflow
| @@ -1,39 +1,0 @@ | ||
| 1 | -name: Issue Notification | |
| 2 | - | |
| 3 | -on: | |
| 4 | - issues: | |
| 5 | - types: [opened] | |
| 6 | - | |
| 7 | -permissions: | |
| 8 | - issues: read | |
| 9 | - actions: write | |
| 10 | - | |
| 11 | -jobs: | |
| 12 | - notify: | |
| 13 | - runs-on: ubuntu-latest | |
| 14 | - timeout-minutes: 5 | |
| 15 | - steps: | |
| 16 | - - name: Process new issue | |
| 17 | - env: | |
| 18 | - ISSUE_URL: ${{ github.event.issue.html_url }} | |
| 19 | - ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| 20 | - ISSUE_TITLE: ${{ github.event.issue.title }} | |
| 21 | - TARGET_REPO: ${{ secrets.ISSUE_NOTIFY_TARGET_REPO }} | |
| 22 | - TARGET_WORKFLOW: ${{ secrets.ISSUE_NOTIFY_TARGET_WORKFLOW }} | |
| 23 | - GH_TOKEN: ${{ secrets.ISSUE_NOTIFY_TOKEN }} | |
| 24 | - run: | | |
| 25 | - # Check if internal processing is configured | |
| 26 | - if [ -z "$TARGET_REPO" ] || [ -z "$TARGET_WORKFLOW" ]; then | |
| 27 | - echo "Not configured" | |
| 28 | - exit 0 | |
| 29 | - fi | |
| 30 | - | |
| 31 | - echo "Processing issue #${ISSUE_NUMBER}" | |
| 32 | - | |
| 33 | - # Trigger internal workflow via workflow_dispatch | |
| 34 | - gh workflow run ${TARGET_WORKFLOW} \ | |
| 35 | - --repo ${TARGET_REPO} \ | |
| 36 | - -f "issue_url=${ISSUE_URL}" 2>/dev/null || { | |
| 37 | - echo "Issue notification sent" | |
| 38 | - exit 0 | |
| 39 | - } |
| @@ -1,0 +1,28 @@ | ||
| 1 | +name: Issue Opened Dispatch | |
| 2 | + | |
| 3 | +on: | |
| 4 | + issues: | |
| 5 | + types: [opened] | |
| 6 | + | |
| 7 | +permissions: | |
| 8 | + issues: read | |
| 9 | + actions: write | |
| 10 | + | |
| 11 | +jobs: | |
| 12 | + notify: | |
| 13 | + runs-on: ubuntu-latest | |
| 14 | + timeout-minutes: 1 | |
| 15 | + steps: | |
| 16 | + - name: Process new issue | |
| 17 | + env: | |
| 18 | + ISSUE_URL: ${{ github.event.issue.html_url }} | |
| 19 | + ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| 20 | + ISSUE_TITLE: ${{ github.event.issue.title }} | |
| 21 | + TARGET_REPO: ${{ secrets.ISSUE_OPENED_DISPATCH_TARGET_REPO }} | |
| 22 | + GH_TOKEN: ${{ secrets.ISSUE_OPENED_DISPATCH_TOKEN }} | |
| 23 | + run: | | |
| 24 | + gh api repos/${TARGET_REPO}/dispatches \ | |
| 25 | + -f event_type=issue_opened \ | |
| 26 | + -f client_payload[issue_url]="${ISSUE_URL}" || { | |
| 27 | + exit 0 | |
| 28 | + } |