{"id":27598709,"url":"https://github.com/danimal141/github-pr-analyzer","last_synced_at":"2025-07-12T00:05:40.854Z","repository":{"id":214731935,"uuid":"737230187","full_name":"danimal141/github-pr-analyzer","owner":"danimal141","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-22T04:58:20.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-12T00:04:45.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danimal141.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-30T09:12:54.000Z","updated_at":"2024-01-21T01:46:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e5b47d9-6bd7-4c3e-a4d4-f1a675d9786c","html_url":"https://github.com/danimal141/github-pr-analyzer","commit_stats":null,"previous_names":["danimal141/pr-stats","danimal141/github-pr-analyzer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danimal141/github-pr-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Fgithub-pr-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Fgithub-pr-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Fgithub-pr-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Fgithub-pr-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danimal141","download_url":"https://codeload.github.com/danimal141/github-pr-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Fgithub-pr-analyzer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264915971,"owners_count":23682955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-22T14:29:31.267Z","updated_at":"2025-07-12T00:05:40.603Z","avatar_url":"https://github.com/danimal141.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub PR Analyzer\n\n## Overview\nThis repository contains scripts for analyzing pull requests (PRs) on GitHub repositories. It includes tools for aggregating and formatting data about PRs.\n\n## Prerequisites\n- GitHub CLI (`gh`): [GitHub CLI](https://github.com/cli/cli)\n- `jq`: [jq](https://stedolan.github.io/jq/)\n\n## Commands\n\n### gpa (github-pr-analyzer)\n- **Description:** Analyzes PRs in a GitHub repository within a specified date range.\n- **Usage:** `gpa --since=YYYY-MM-DD --until=YYYY-MM-DD --repo=orgName/repoName [--output=json|tsv] [--authors=author1,author2] [-v]`\n- **Options:**\n  - `--since`, `--until`: Date range for PR analysis.\n  - `--repo`: Target GitHub repository.\n  - `--output`: Output format (json or tsv).\n  - `--authors`: Filter PRs by authors.\n  - `-v`: Verbose mode.\n- **Example:** `bin/gpa --since=2023-12-05 --until=2023-12-11 --repo=myOrg/myRepo --output=json`\n\n### json-aggregator\n- **Description:** Aggregates PR data over multiple iterations into a single JSON object.\n- **Usage:** `json-aggregator --iter-start=YYYY-MM-DD --iter-end=YYYY-MM-DD --iter-duration=days --count=number --repo=orgName/repoName [--authors=author1,author2] [-v]`\n- **Options:**\n  - Iteration control parameters (`--iter-start`, `--iter-end`, `--iter-duration`).\n  - `--count`: Number of iterations.\n  - `--repo`: Target GitHub repository.\n  - `--authors`: Filter PRs by authors.\n  - `-v`: Verbose mode.\n- **Example:** `bin/json-aggregator --iter-start=2023-12-05 --iter-end=2023-12-11 --iter-duration=7 --count=4 --repo=myOrg/myRepo`\n\n### ★tsv-aggregator\n- **Description:** Converts JSON output from `json-aggregator` to TSV format.\n- **Usage:** `tsv-aggregator --iter-start=YYYY-MM-DD --iter-end=YYYY-MM-DD --iter-duration=days --count=number --repo=orgName/repoName [--authors=author1,author2] [-v]`\n- **Options:** Similar to `json-aggregator`.\n- **Example:** `bin/tsv-aggregator --iter-start=2023-12-05 --iter-end=2023-12-11 --iter-duration=7 --count=4 --repo=myOrg/myRepo \u003e out.tsv`\n  - You can paste the result to spreadsheets.\n\n## Misc Scripts\n\n### json-to-tsv.py\n- **Description:** Python script for converting JSON data to TSV format.\n- **Usage:** `python json-to-tsv.py \u003cjson_file\u003e`\n- **Details:** Processes JSON data to generate a TSV file suitable for spreadsheets.\n- **Example:** `python json-to-tsv.py out.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanimal141%2Fgithub-pr-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanimal141%2Fgithub-pr-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanimal141%2Fgithub-pr-analyzer/lists"}