feat(report): add GitHub Issue context to daily report prompts (#630)#631
Merged
feat(report): add GitHub Issue context to daily report prompts (#630)#631
Conversation
- Add IssueInfo type to src/types/git.ts - Add issue-related constants to review-config.ts (MAX_ISSUE_BODY_LENGTH=500, MAX_ISSUES_PER_REPORT=20, ISSUE_FETCH_TIMEOUT_MS=10000, ISSUE_FETCH_TOTAL_TIMEOUT_MS=15000) - Add extractIssueNumbers() to git-utils.ts (extracts #NNN, Closes/Fixes/Resolves #NNN patterns) - Create src/lib/git/github-api.ts with getIssueInfo() and collectIssueInfos() using gh CLI with graceful degradation - Update buildSummaryPrompt() with optional 5th arg issueInfos, issue_context section, prompt injection prevention rule, ESCAPED_TAGS update, and priority-based overflow truncation - Update generateDailySummary() to collect issue info from commit messages with withTimeout and graceful fallback Tests: 6163 passed, ESLint: 0 errors, TypeScript: 0 errors Resolves #630 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#NNNパターンでIssue番号を抽出するextractIssueNumbers()をgit-utils.tsに追加github-api.tsを新規追加し、gh issue viewでIssue情報(番号・タイトル・ラベル・状態・本文要約)を取得summary-prompt-builder.tsに<issue_context>セクション構築を追加daily-summary-generator.tsでIssue情報収集フローを統合Closes #630
Test plan
npm run lint— PASSnpx tsc --noEmit— PASSnpm run test:unit— 6163 passed (323 files)npm run build— PASS🤖 Generated with Claude Code