Repository navigation
Description
Summary
Address data-quality and PR-hygiene issues surfaced in review of PR #1271 by @mrsabath.
Data-quality fixes (scanner script)
1. Populate the "Issues" column in "Broken Links by Repo" table
The Issues column in docs/link-health.md is currently empty for every row. The jq expression that builds the repo table hardcodes a blank cell. Fix: query GitHub for open issues with [link-health] prefix matching each repo and populate the column with the count.
2. Deduplicate same-day rows in the Trend table
When the scanner runs more than once per day (manual + cron), both rows appear in the trend table. The second row shows delta 0 which is confusing. Fix: when generating the trend table, keep only the last entry per calendar date.
Context on the May 18 duplicate: A manual run at 01:42 UTC detected 6 new broken links. The scheduled cron at 11:00 UTC saw no change. Both were appended to history.json correctly, but the dashboard should display only the final state per day.
PR / commit hygiene (bot template)
3. PR body must include ## Summary section
The kagenti PR template requires a ## Summary section. Auto-generated PRs from the scanner (and health dashboard) should include this. The body should explain what changed in the scan (e.g., "Updated link-health report: 43 internal, 24 external broken links across 17 repos").
4. PR title prefix: use docs: (lowercase)
The org ruleset allows Docs as a prefix, but our convention for bot-generated doc PRs is docs:. Update the scanner to use docs: Link health report (auto-updated) as the PR title.
5. Rolling PR strategy with weekly merges
Confirmed behavior: the scanner updates a single standing PR (link-health/reports branch) via force-push. This is intentional — one rolling PR, merged weekly (or sooner) by a maintainer. Document this in the standing order so reviewers understand the pattern.
6. DCO sign-off: human signer, bot committer
Current setup is correct and intentional: Signed-off-by: Gloire Rubambiza <[email protected]> with clawgenti as the commit author. This is appropriate because a bot cannot certify the DCO on its own behalf. No change needed — just documenting the decision for future reviewers.
Related
- Epic: **Phase 4:** Generalize scanner/fixer pattern into reusable program abstraction. #1260
- Original issue: epic: OpenClaw Link Health Agent for rossoctl org #1178
- Reviewed PR: docs: Link health dashboard (auto-updated) #1271
- Dashboard hygiene (automation repo): filed separately
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix: Improve scanner report quality and PR hygiene