-
Notifications
You must be signed in to change notification settings - Fork 817
internal: better weekly output #6893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Claude finished @centdix's task —— View job Code Review: internal: better weekly outputTasks
SummaryThis PR improves the weekly PR summary workflow by transitioning from a minimalistic output format to a categorized, structured format with better organization and readability. The changes enhance the presentation of merged PRs for Discord delivery. What ChangedThe workflow prompt was updated to generate a more structured weekly summary with:
Code Quality Review✅ Strengths
🔍 Observations & Suggestions1. Categorization Logic Could Be More Robust File: The current categorization relies on simple string matching: - **Features**: PRs with titles starting with "feat:", "feature:", or containing "add", "implement", "new"
- **Bug Fixes**: PRs with titles starting with "fix:", "bug:", or containing "fix", "resolve", "patch"
- **Other**: All remaining PRs Potential Issues:
Suggestion: Consider word boundary matching to avoid partial matches, or leverage GitHub PR labels if they're consistently applied: # Example with word boundaries
echo "$title" | grep -qiE '\b(add|implement|new)\b' 2. Date Range Display Missing File: The old format included the date range in the output: 📊 Week of [Start Date] to [End Date] The new format removes this. While it shows "Weekly overview", the specific date range would be helpful for archival purposes. Suggestion: Consider adding the date range back: #### 📈 Weekly overview (YYYY-MM-DD to YYYY-MM-DD) 3. Sorting Logic Changed File: Old: Sort by importance (breaking changes > features > bugfixes > other) Impact: This is actually an improvement for most use cases, as recent PRs are more relevant. However, if there are critical breaking changes from earlier in the week, they might get buried. Suggestion: Document this trade-off or consider a hybrid approach where breaking changes are always listed first within their category. 4. Title Truncation Note Could Be Clearer File: The instruction "NEVER truncate PR titles - show full titles" is good, but the character limit enforcement (line 57-59) says to "truncate PR descriptions (NOT titles)". Potential Issue: Very long PR titles could consume most of the 6000 character budget, leaving little room for descriptions. Suggestion: Consider adding a soft maximum for titles (e.g., "Prefer titles under 100 chars, but never truncate them") to help Claude make better trade-offs. 5. Compact Formatting Trade-off The new format uses more structural elements (headers, emojis, category names) which consume more characters than the minimalistic approach. This is a reasonable trade-off for better readability, but it means fewer PRs can fit in the 6000 character limit. Calculation:
This is acceptable given the UX improvement. Security Review✅ No security concerns identified
Performance Considerations✅ No performance concerns
Testing InstructionsHow to verify this change: Navigate to the GitHub Actions tab in the windmill-labs/windmill repository and manually trigger the "Weekly PR Summary" workflow using the workflow_dispatch option. After the workflow completes successfully, check the Discord channel where weekly summaries are posted (the channel configured to receive messages from the Windmill webhook endpoint). The summary should now display PRs organized into three emoji-labeled categories (Features ✨, Bug Fixes 🐛, and Other 🔧) with a statistics overview at the top showing total merged PRs and counts per category, instead of the previous flat list format. Each PR entry should show the full title, author username, and a brief description, sorted by merge date within its category, and if there are many PRs the summary should stay under 6000 characters by truncating descriptions and showing "and X more PRs" at the end. Final Verdict✅ Approve with minor suggestions This is a solid improvement to the weekly PR summary output. The categorized format significantly enhances readability and makes it easier for the team to understand what happened during the week. The implementation is clean and maintains all existing functionality while adding value. Recommended actions before merge:
The suggestions above are minor improvements and shouldn't block merging if the current format meets your needs. |
Deploying windmill with
|
Latest commit: |
cba780e
|
Status: | ✅ Deploy successful! |
Preview URL: | https://7c740fc9.windmill.pages.dev |
Branch Preview URL: | https://fg-betterweek.windmill.pages.dev |
No description provided.