From bc7726d63e52cb2555818a9f73bc307c468dcb06 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 20 Oct 2025 05:56:26 +0000 Subject: [PATCH] Update triggers to catch comments on older issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/claude-oncall-triage.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/claude-oncall-triage.yml b/.github/workflows/claude-oncall-triage.yml index 5a204945..9c744405 100644 --- a/.github/workflows/claude-oncall-triage.yml +++ b/.github/workflows/claude-oncall-triage.yml @@ -2,7 +2,7 @@ name: Claude Oncall Issue Triage description: Identify critical issues that require oncall attention on: issues: - types: [opened, edited, labeled, reopened] + types: [opened, edited, reopened] issue_comment: types: [created] schedule: @@ -32,12 +32,13 @@ jobs: Repository: ${{ github.repository }} Triggered by: ${{ github.event_name }} - Issue number (if triggered by issue event): ${{ github.event.issue.number }} + Issue number (if triggered by issue event or comment): ${{ github.event.issue.number }} TASK OVERVIEW: 1. Determine which issues to process: - - If this workflow was triggered by an issue event (issue number provided above), process ONLY that issue + - If this workflow was triggered by an issue event or comment (issue number provided above), process ONLY that issue + - This includes NEW comments on OLDER issues - they may now qualify for oncall if they meet the criteria - 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)") - This keeps the dataset small and focused on recent activity