Skip to content

feat: add td stats bus-factor command#83

Open
marcus wants to merge 1 commit intomainfrom
feat/bus-factor
Open

feat: add td stats bus-factor command#83
marcus wants to merge 1 commit intomainfrom
feat/bus-factor

Conversation

@marcus
Copy link
Copy Markdown
Owner

@marcus marcus commented Mar 27, 2026

Summary

  • Adds td stats bus-factor subcommand that analyzes git blame data to identify code ownership concentration risks
  • Computes per-directory bus factor scores (minimum contributors owning >50% of code) with risk-sorted table output
  • Supports --path, --depth, --min-bus-factor, and --json flags

Test plan

  • Unit tests for blame output parsing, bus factor scoring, directory depth calculation, author sorting
  • Integration test with real temp git repo
  • All 13 new tests pass (go test ./internal/git/...)

🤖 Generated with Claude Code


Automated by nightshift

Analyzes git blame data to identify code ownership concentration risks.
Computes bus factor scores per directory (minimum contributors owning >50%
of code). Outputs risk-sorted table highlighting single-owner hotspots.

Nightshift-Task: bus-factor
Nightshift-Ref: https://github.com/marcus/nightshift

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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