From 90b72a892b9dabc12150f801b0b5ba0ad15ffbfe Mon Sep 17 00:00:00 2001 From: SuYao Date: Thu, 23 Oct 2025 13:55:58 +0800 Subject: [PATCH] * feat: add GitHub issue tracker workflow with Feishu notifications * feat: add GitHub issue tracker workflow with Feishu notifications * fix: add missing environment variable for Claude translator in GitHub issue tracker workflow * fix: update environment variable for Claude translator in GitHub issue tracker workflow * Add quiet hours handling and scheduled processing for GitHub issue notifications - Implement quiet hours detection (00:00-08:30 Beijing Time) with delayed notifications - Add scheduled workflow to process pending issues daily at 08:30 Beijing Time - Create new script to batch process and summarize multiple pending issues with Claude * Replace custom Node.js script with Claude Code Action for issue processing - Migrate from custom JavaScript implementation to Claude Code Action for AI-powered issue summarization and processing - Simplify workflow by leveraging Claude's built-in GitHub API integration and tool usage capabilities - Maintain same functionality: fetch pending issues, generate Chinese summaries, send Feishu notifications, and clean up labels - Update Claude action reference from version pin to main branch for latest features * Remove GitHub issue comment functionality - Delete automated AI summary comments on issues after processing - Remove documentation for manual issue commenting workflow - Keep Feishu notification system intact while streamlining issue interactions * Add OIDC token permissions and GitHub token to Claude workflow - Add `id-token: write` permission for OIDC authentication in both jobs - Pass `github_token` to Claude action for proper GitHub API access - Maintain existing issue write and contents read permissions --- .github/workflows/github-issue-tracker.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/github-issue-tracker.yml b/.github/workflows/github-issue-tracker.yml index 9830c016d9..34ea35d5ba 100644 --- a/.github/workflows/github-issue-tracker.yml +++ b/.github/workflows/github-issue-tracker.yml @@ -15,6 +15,7 @@ jobs: permissions: issues: write contents: read + id-token: write steps: - name: Checkout repository @@ -62,6 +63,7 @@ jobs: id: summarize uses: anthropics/claude-code-action@main with: + github_token: ${{ secrets.GITHUB_TOKEN }} anthropic_api_key: ${{ secrets.CLAUDE_TRANSLATOR_APIKEY }} prompt: | Please analyze this GitHub issue and provide a concise summary in Chinese (中文). @@ -103,6 +105,7 @@ jobs: permissions: issues: write contents: read + id-token: write steps: - name: Checkout repository