{"id":22327444,"url":"https://github.com/rewindio/github-deployment-metrics","last_synced_at":"2025-10-25T10:07:09.994Z","repository":{"id":154974479,"uuid":"630046049","full_name":"rewindio/github-deployment-metrics","owner":"rewindio","description":"Pulls deployment metrics from Github actions","archived":false,"fork":false,"pushed_at":"2024-07-24T19:46:57.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-31T07:45:44.456Z","etag":null,"topics":["metrics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rewindio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-19T14:53:24.000Z","updated_at":"2024-07-24T19:47:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"717458e5-c37d-4ba5-b144-570f1eff7bde","html_url":"https://github.com/rewindio/github-deployment-metrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Fgithub-deployment-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Fgithub-deployment-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Fgithub-deployment-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rewindio%2Fgithub-deployment-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rewindio","download_url":"https://codeload.github.com/rewindio/github-deployment-metrics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245599570,"owners_count":20642126,"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":["metrics"],"created_at":"2024-12-04T03:09:27.370Z","updated_at":"2025-10-25T10:07:04.943Z","avatar_url":"https://github.com/rewindio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-deployment-metrics\nPulls metrics from github actions around deployments\n\n## Installation\n\n```bash\ngit clone rewindio/github-deployment-metrics\npip3 install -r requirements.txt\n```\n\n## Prerequistes\n\n- A Github Personal Access Token (PAT) that has repo and admin:org scopes\n- The Github PAT set in an environment variable named `GITHUB_PAT` OR contained in a `.env` file\n\n## Usage\n\n```bash\nusage: get-deployment-metrics.py [-h] --org-name ORG_NAME --deploy-workflow-pattern WORKFLOW_PATTERN --date-filter DATE_FILTER [--detailed] [--include-manual-runs] [--verbose]\n\nGather deployment metrics from Github actions\n\noptions:\n  -h, --help            show this help message and exit\n  --org-name ORG_NAME   Github organization name\n  --deploy-workflow-pattern WORKFLOW_PATTERN\n                        Track stats for all jobs run matching this workflow name pattern (eg. *Deploy*)\n  --date-filter DATE_FILTER\n                        Github start/end date filter (eg. 2023-03-01..2023-03-31)\n  --detailed            Show detailed output for each repo\n  --include-manual-runs\n                        Include manual workflow runs in stats computations\n  --verbose             Turn on DEBUG logging\n```\n\n### Example Execution\n\n```bash\n./get-deployment-metrics.py --org-name acme --deploy-workflow-pattern '*Deploy*' --date-filter '2023-03-01..2023-03-31' --detailed\n```\n\n### Notes\n\n* By default, manually invoked workflows are skipped and not included in the metrics. You can override this with the `--include_manual_runs` flag\n* Archived repos are ignored\n* The date-filter option uses the [Github date filtering](https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates) syntax\n* The `deploy-workflow-pattern` must be a valid pattern as supported by the [python fnmatch](https://docs.python.org/3/library/fnmatch.html) module\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewindio%2Fgithub-deployment-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frewindio%2Fgithub-deployment-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frewindio%2Fgithub-deployment-metrics/lists"}