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

Update workflowBrowse files
inigo authored on Sep 5, 2025 parent 8fba17c · commit cd043128fec2
2 changed files+28 -39compared with 8fba17c
D.github/workflows/issue-notify.yml
A.github/workflows/issue-opened-dispatch.yml
D.github/workflows/issue-notify.yml+0 -39
@@ -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 repository_dispatch
34- gh api repos/${TARGET_REPO}/dispatches \
35- -f event_type=issue_opened \
36- -f client_payload[issue_url]="${ISSUE_URL}"|| {
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+ }