{"id":25293907,"url":"https://github.com/pgimalac/github-utils","last_synced_at":"2025-04-06T19:55:08.639Z","repository":{"id":216018009,"uuid":"740250712","full_name":"pgimalac/github-utils","owner":"pgimalac","description":"Using the Github API to get information","archived":false,"fork":false,"pushed_at":"2024-09-26T12:24:28.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T01:56:07.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pgimalac.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T00:07:15.000Z","updated_at":"2024-09-26T12:24:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"3054bb1b-2fcb-4221-9858-ed2b40b49b6c","html_url":"https://github.com/pgimalac/github-utils","commit_stats":null,"previous_names":["pgimalac/github-utils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgimalac%2Fgithub-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgimalac%2Fgithub-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgimalac%2Fgithub-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgimalac%2Fgithub-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgimalac","download_url":"https://codeload.github.com/pgimalac/github-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543602,"owners_count":20955865,"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-02-13T01:56:10.987Z","updated_at":"2025-04-06T19:55:08.612Z","avatar_url":"https://github.com/pgimalac.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Github Utils\n### How to use\nThis is a python script, so just run\n```shell\npython gh-utils.py \u003cargs\u003e\n```\n\n### Requirements\nThe required python dependencies are indicated in the `requirements.txt` file, they can be installed with:\n```shell\npip install -r requirements.txt\n```\n\n### Token\nThis script requires a Github token to query the API.\nIt expects to find one in the `GITHUB_TOKEN` environment variable.\n\nThe exact permissions needed on the token depends on what function you want to query,\nbut overall it's read-only permissions on the repository content, pull request, and organization teams.\n\n### Commands\n#### Pull Request\n##### Team Files\nList files edited in a PR which are owned by a given team.\n\n```shell\npython gh-utils.py pr --url \u003cpr_url\u003e team-files --team \u003cteam_name\u003e\n```\n\nThere is a `--link` or `-l` flag which prints links to those files instead of just their path.\n\n##### Reviewers\nList teams that own unreviewed files.\n\nNote that this is not the same thing as still being requested for review, in case another team owns\nthe same files as you and has already reviewed.\n\n```shell\npython gh-utils.py pr --url \u003cpr_url\u003e reviewers\n```\n\nThere is a `--minimal` or `-m` flag which instead only prints the minimal set of teams needed to review.\nThis is minimal in terms of number of teams.\n\nThis is convenient if you only need one review per owner, and codeowners are interlapping.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgimalac%2Fgithub-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgimalac%2Fgithub-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgimalac%2Fgithub-utils/lists"}