{"id":19548998,"url":"https://github.com/ashwin-pc/github-data-analysis-cli","last_synced_at":"2025-10-13T10:09:08.827Z","repository":{"id":124290444,"uuid":"587506848","full_name":"ashwin-pc/github-data-analysis-cli","owner":"ashwin-pc","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-08T00:21:47.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T19:57:14.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ashwin-pc.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}},"created_at":"2023-01-10T22:55:53.000Z","updated_at":"2023-01-10T22:56:00.000Z","dependencies_parsed_at":"2024-02-08T01:27:39.177Z","dependency_job_id":"094467a7-37d6-4238-b78e-0deceb3f01b0","html_url":"https://github.com/ashwin-pc/github-data-analysis-cli","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/ashwin-pc%2Fgithub-data-analysis-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwin-pc%2Fgithub-data-analysis-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwin-pc%2Fgithub-data-analysis-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwin-pc%2Fgithub-data-analysis-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwin-pc","download_url":"https://codeload.github.com/ashwin-pc/github-data-analysis-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240806156,"owners_count":19860732,"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":"2024-11-11T03:57:37.692Z","updated_at":"2025-10-13T10:09:03.777Z","avatar_url":"https://github.com/ashwin-pc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Data Analysis CLI Tool\nThis is a command-line interface (CLI) tool for analyzing data from GitHub repositories using the GitHub GraphQL API.\n\n## Prerequisites\n- Deno\n- A personal access token from GitHub with the read:user and read:org permissions.\n\n## Installation\nDeno scripts do not require installation\n\n## Usage\nTo use the CLI tool, run the following command:\n\n```\ndeno run \u003cscript_name\u003e\n\n# e.g.\ndeno run explore.ts\n```\n\nThis will start the script and print the reults in the console or into a file depending on the script\n\n### Adding the personal access token for github\n\nCreate a `.env` file and add a line entry as follows\n\n```\nACCESS_TOKEN=xxx\n```\n\nThe scripts can then pickup the access token and execute the api calls\n\n## Using the github graphql explorer\n\nUse the GitHub GraphQL Explorer to test your queries. First make sure you have a GitHub account and are logged in. Then, go to the Explorer page by navigating to https://docs.github.com/en/graphql/overview/explorer.\n\nOnce on the Explorer page, you can start by typing in a query in the left-hand panel. The query will automatically be executed and the results will be displayed in the right-hand panel. You can also use the dropdown menus and autocomplete suggestions to help you construct your query.\n\nUse the `explore.ts` script to run the query and transform its response for data analysis\n\n## Useful scripts\n### Backport check\n\nTo validate if each Pr that needs to be backported has a corresponding backport Pr that is either open or as been merged, run the backport check script\n\n```\ndeno run --allow-all ./useful_scripts/backport_check/index.ts\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwin-pc%2Fgithub-data-analysis-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwin-pc%2Fgithub-data-analysis-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwin-pc%2Fgithub-data-analysis-cli/lists"}