From 89d4e825e54e220461f52fa7b6bfc31d0c2027de Mon Sep 17 00:00:00 2001 From: packet-mover Date: Thu, 16 Apr 2026 22:29:48 +0200 Subject: [PATCH] docs: update report format to match implementation The report format section described an older design (per-repo tables with pass/fail emoji) that was never implemented. Update to match the actual output: header with compliant/skipped counts, summary table sorted by pass rate, collapsible details sections grouped by compliance status, and skipped repos with reasons. --- README.md | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 783e7b0..c4a84e4 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Each rule produces a **pass** or **fail** result per repository. There are no sc ## Report format -The report is a single Markdown document posted as a GitHub Issue. Structure: +The report is a single Markdown document. Structure: ``` # Codatus - Org Compliance Report @@ -118,32 +118,44 @@ The report is a single Markdown document posted as a GitHub Issue. Structure: **Org:** {org_name} **Scanned:** {timestamp} **Repos scanned:** {count} +**Compliant:** {n}/{total} ({percent}%) +**Skipped:** {count} <-- only if any repos were skipped ## Summary | Rule | Passing | Failing | Pass rate | -|------|---------|---------|-----------| -| Has CI workflow | 42 | 8 | 84% | -| Has CODEOWNERS | 30 | 20 | 60% | +|------|---------|---------|----------| +| Has branch protection | 1 | 3 | 25% | +| Has required reviewers | 1 | 3 | 25% | | ... | ... | ... | ... | -## Results by repository +## ✅ Fully compliant ({n} repos) -### repo-name-1 +
+All rules passing -| Rule | Result | -|------|--------| -| Has repo description | ✅ | -| Has .gitignore | ✅ | -| Has substantial README | ❌ | -| ... | ... | +[repo-a](https://github.com/{org}/repo-a) +[repo-b](https://github.com/{org}/repo-b) -### repo-name-2 +
-... +## ❌ Non-compliant ({n} repos) + +
+repo-c - {n} failing + +- Has branch protection +- Has required reviewers + +
+ +## ⚠️ Skipped ({n} repos) <-- only if any repos were skipped + +- [empty-repo](https://github.com/{org}/empty-repo) - repository is empty +- [huge-repo](https://github.com/{org}/huge-repo) - file tree too large (truncated by GitHub API) ``` -Repositories are sorted alphabetically. The summary table is sorted by pass rate ascending (worst compliance first). +The summary table is sorted by pass rate ascending (worst compliance first). Sections are omitted when empty (e.g., no "Fully compliant" section if all repos have failures). Skipped repos are those that could not be scanned (empty repos, truncated file trees, API errors) - they are excluded from the compliance count. ---