feat(report): add commit log collection from all repositories (#627)#629
Merged
feat(report): add commit log collection from all repositories (#627)#629
Conversation
- Add CommitLogEntry and RepositoryCommitLogs types to src/types/git.ts - Add MAX_COMMIT_LOG_LENGTH and GIT_LOG_TOTAL_TIMEOUT_MS constants - Add withTimeout utility with fallback support to src/lib/utils.ts - Add getCommitsByDateRange and collectRepositoryCommitLogs to git-utils.ts - Extend sanitizeMessage to escape <commit_log> tags via ESCAPED_TAGS array - Extend buildSummaryPrompt with optional commitLogs parameter - Integrate commit log collection into daily-summary-generator - Add comprehensive tests for all new functionality (106 tests pass) - All static analysis checks passed (tsc, eslint) Resolves #627 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Move TimeoutError class and withTimeout function after escapeHtml to restore the broken JSDoc-to-function association for escapeHtml. Add section separator comment consistent with codebase conventions. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
git-utils.tsにgetCommitsByDateRange()関数追加(全ブランチ、日付範囲指定)summary-prompt-builder.tsに<commit_log>セクション構築を追加daily-summary-generator.tsで全リポジトリのコミットログを収集しプロンプトに含めるCloses #627
Test plan
npm run lint— PASSnpx tsc --noEmit— PASSnpm run test:unit— 6131 passednpm run build— PASS🤖 Generated with Claude Code