Skip to content

feat: add report generation and GitHub Issue posting#6

Merged
packet-mover merged 1 commit intomainfrom
feat/report-and-issue-posting
Apr 5, 2026
Merged

feat: add report generation and GitHub Issue posting#6
packet-mover merged 1 commit intomainfrom
feat/report-and-issue-posting

Conversation

@packet-mover
Copy link
Copy Markdown
Contributor

@packet-mover packet-mover commented Apr 5, 2026

Summary

  • Add GenerateReport() in report.go — produces Markdown per README spec: header with org/timestamp/count, summary table sorted by pass rate ascending, per-repo tables with ✅/❌
  • Add CreateIssue to GitHubClient interface + real implementation (POST to GitHub Issues API)
  • Wire up Run() end-to-end: scan → generate report → post as GitHub Issue to Config.ReportRepo
  • Add parseReportRepo helper for owner/repo string parsing

Files changed

File Change
report.go New — report generation
report_test.go New — 4 tests (structure, icons, sorting, empty)
client.go Added CreateIssue to interface + implementation
client_mock_test.go Added CreateIssue stub
scanner.go Run() wired up, parseReportRepo added

Test plan

  • go test ./... passes
  • go vet ./... clean
  • Manual end-to-end test with a real org and token

- Add GenerateReport() producing Markdown per README spec
  (header, summary table sorted by pass rate, per-repo ✅/❌ tables)
- Add CreateIssue to GitHubClient interface + real implementation
- Wire up Run() end-to-end: scan → generate report → post issue
- Add parseReportRepo helper for owner/repo parsing
- Tests for report structure, icons, summary sorting, empty results

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@packet-mover packet-mover merged commit 433177d into main Apr 5, 2026
2 checks passed
@packet-mover packet-mover deleted the feat/report-and-issue-posting branch April 5, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant