@looper/git-contributor-analysis
Analyze git repository contributors over a configurable time period.
Given a path to a git repository and a number of days to look back, the
analyze method collects per-contributor statistics by parsing git shortlog
and git log --numstat output. It produces two data artifacts:
report (resource) - structured JSON with contributor details including
name, email, commit count, files changed, lines added, and lines removed.
Sorted by commit count descending with totals.
summary (file, text/plain) - a pre-formatted ASCII table for human
consumption, with aligned columns, comma-formatted numbers, and a
totals row.
Global arguments:
repoPath (string, required) - path to the git repository
days (number, default 30) - number of days to look back
Usage:
swamp model create @looper/git-contributor-analysis my-repo-stats
# Edit input to set repoPath and days
swamp model method run my-repo-stats analyze --json
Works well in workflows with runtime inputs - pass repoPath dynamically
via ${{ inputs.repoPath }} in globalArguments.
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gitanalytics
2026.03.02.2