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
Changes: - Remove "labeled" trigger (not needed) - Keep issue_comment trigger which catches ALL new comments, including on older issues - Clarify in prompt that comments on older issues will be evaluated - This ensures older issues that get new engagement can be flagged as oncall 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
| @@ -2,7 +2,7 @@ | ||
| 2 | 2 | description: Identify critical issues that require oncall attention |
| 3 | 3 | on: |
| 4 | 4 | issues: |
| 5 | - types: [opened, edited, labeled, reopened] | |
| 5 | + types: [opened, edited, reopened] | |
| 6 | 6 | issue_comment: |
| 7 | 7 | types: [created] |
| 8 | 8 | schedule: |
| @@ -32,12 +32,13 @@ | ||
| 32 | 32 | |
| 33 | 33 | Repository: ${{ github.repository }} |
| 34 | 34 | Triggered by: ${{ github.event_name }} |
| 35 | - Issue number (if triggered by issue event): ${{ github.event.issue.number }} | |
| 35 | + Issue number (if triggered by issue event or comment): ${{ github.event.issue.number }} | |
| 36 | 36 | |
| 37 | 37 | TASK OVERVIEW: |
| 38 | 38 | |
| 39 | 39 | 1. Determine which issues to process: |
| 40 | - - If this workflow was triggered by an issue event (issue number provided above), process ONLY that issue | |
| 40 | + - If this workflow was triggered by an issue event or comment (issue number provided above), process ONLY that issue | |
| 41 | + - This includes NEW comments on OLDER issues - they may now qualify for oncall if they meet the criteria | |
| 41 | 42 | - If triggered by schedule or manual trigger, use mcp__github__search_issues to find issues created in the last 7 days (use query: "is:issue is:open created:>=$(date -d '7 days ago' +%Y-%m-%d)") |
| 42 | 43 | - This keeps the dataset small and focused on recent activity |
| 43 | 44 |