Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea2c733

Browse files
bobmatnycclaude
andcommitted
feat: weekly per-engineer PR metrics with additive migration (#49)
Adds weekly_pr_metrics table and gfa pr-metrics CLI command to aggregate per-engineer PR activity (opens, merges, comments, reviews) by ISO week. - New WeeklyPRMetrics ORM model keyed by (engineer_identifier, iso_week) - _migrate_weekly_pr_metrics_v11() in _apply_migrations() — additive, CREATE-IF-NOT-EXISTS so existing data is fully preserved - gfa pr-metrics CLI with --week YYYY-WNN, --since YYYY-MM-DD, and default-to-current-week; upsert semantics (re-runs are idempotent) - reviewer list expansion for pr_reviews_given / pr_comments_given - 17 tests: aggregation logic, week parsing, upsert idempotency, migration safety (existing pull_request_cache rows survive migration) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 9f3a2da commit ea2c733

5 files changed

Lines changed: 881 additions & 1 deletion

File tree

src/gitflow_analytics/cli.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ def cli(ctx: click.Context) -> None:
118118

119119
register_identity_commands(cli)
120120

121+
# Weekly per-engineer PR metrics command (issue #49)
122+
from .cli_pr_metrics import register_pr_metrics_commands # noqa: E402
123+
124+
register_pr_metrics_commands(cli)
125+
121126

122127
def main() -> None:
123128
"""Main entry point."""

0 commit comments

Comments
 (0)