|
| 1 | +--- |
| 2 | +created: 2026-01-27T14:34 |
| 3 | +title: Simplify bot activity table to show total count per repo |
| 4 | +area: reports |
| 5 | +files: |
| 6 | + - scripts/lib/markdown-generator.mjs:388-422 |
| 7 | +--- |
| 8 | + |
| 9 | +## Problem |
| 10 | + |
| 11 | +The bot activity table in monthly reports is too long and detailed. It currently breaks down bot activity per-bot per-repository, which creates verbose tables like: |
| 12 | + |
| 13 | +``` |
| 14 | +| Repository | Bot | PRs | |
| 15 | +|------------|-----|-----| |
| 16 | +| bluefin | ubot-7274 | 88 | |
| 17 | +| bluefin-lts | pull | 8 | |
| 18 | +| bluefin-lts | ubot-7274 | 50 | |
| 19 | +| bluefin-lts | testpullapp | 5 | |
| 20 | +| bluefin-lts | copilot-swe-agent | 1 | |
| 21 | +| aurora | ubot-7274 | 72 | |
| 22 | +``` |
| 23 | + |
| 24 | +This level of detail isn't useful for report readers. They only need to know total bot activity per repository. |
| 25 | + |
| 26 | +## Solution |
| 27 | + |
| 28 | +Aggregate bot activity at the repository level instead of per-bot: |
| 29 | + |
| 30 | +**Desired output:** |
| 31 | +``` |
| 32 | +| Repository | Bot PRs | |
| 33 | +|------------|---------| |
| 34 | +| bluefin | 88 | |
| 35 | +| bluefin-lts | 64 | |
| 36 | +| aurora | 72 | |
| 37 | +``` |
| 38 | + |
| 39 | +**Implementation:** |
| 40 | +- Modify `generateBotActivityTable()` in `markdown-generator.mjs` |
| 41 | +- Group bot items by repository, sum counts |
| 42 | +- Simplify table header and rows |
| 43 | +- Keep detailed bot breakdown in collapsible details section |
| 44 | + |
| 45 | +**Files to modify:** |
| 46 | +- `scripts/lib/markdown-generator.mjs` lines 388-422 (`generateBotActivityTable` function) |
| 47 | +- May need to adjust `generateBotActivitySection` caller (lines 388-401) |
| 48 | + |
| 49 | +**Testing:** |
| 50 | +- Regenerate December and January reports |
| 51 | +- Verify table is shorter and more readable |
| 52 | +- Ensure details section still shows per-bot breakdown |
0 commit comments