feat: Integrate GitHub workflow for daily LLM commit summaries.#323
feat: Integrate GitHub workflow for daily LLM commit summaries.#323khawa-angx merged 1 commit intomainfrom
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds a daily GitHub Actions workflow to run a new TypeScript script that summarizes the day’s commits across origin branches using OpenAI and posts the result to a Feishu webhook; updates tsconfig to include the scripts directory. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Scheduler as Cron/Dispatch
participant GH as GitHub Actions
participant Node as Node/tsx Runner
participant Script as daily-summary.ts
participant Git as Git (repo)
participant LLM as OpenAI API
participant Feishu as Feishu Webhook
Scheduler->>GH: Trigger workflow (10:00 UTC or manual)
GH->>Node: Setup Node.js, install deps
Node->>Script: Execute with env (API keys, REPO, limits)
Script->>Git: fetch --all, list origin/* branches
Script->>Git: collect today's commit SHAs (per-branch cap)
alt No commits
Script-->>Node: Log "no commits today"
Node-->>GH: Exit success
else Commits found
loop For each commit
Script->>Git: Show metadata and diff (filtered)
par Chunk summaries
Script->>LLM: Summarize chunk (model)
LLM-->>Script: Chunk summary or error
end
Script->>LLM: Merge chunk summaries per commit
LLM-->>Script: Per-commit summary (or fallback)
end
Script->>LLM: Aggregate daily summary
LLM-->>Script: Final text (or fallback)
alt Webhook configured
Script->>Feishu: POST final daily summary
Feishu-->>Script: 2xx
else No webhook
Script-->>Node: Print final text to console
end
Script-->>Node: Done
end
Node-->>GH: Job complete
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (3)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Review by RecurseML🔍 Review performed on c0aab91..c985d64 ✨ No bugs found, your code is sparkling clean ✅ Files analyzed, no issues (2)• ⏭️ Files skipped (low suspicion) (1)• |
|
Hi, how are you today? did you have a good weekend? |
Summary by CodeRabbit
New Features
Chores