pr_stats#
Pull request activity report command line.
- moa.commands.pr_stats.build_pr_activity_rows(owner: str, repo: str, token: str | None = None, api_url: str = 'https://api.github.com', since: str | None = None, cached_rows: dict[str, dict[str, Any]] | None = None, verbose: bool = False) list[dict[str, Any]]#
Build report rows for closed pull requests, reusing cached values when available.
- moa.commands.pr_stats.main(argv: list[str] | None = None) int#
CLI entry point for generating pull request activity reports.
- moa.commands.pr_stats.save_pr_activity_report(owner: str, repo: str, output_dir: str, prefix: str, token: str | None = None, api_url: str = 'https://api.github.com', since: str | None = None, cache_file: str | None = None, verbose: bool = False) dict[str, Any]#
Generate CSV/XLSX/SVG/HTML PR activity outputs and return their paths.