{"id":16551143,"url":"https://github.com/michaelcurrin/github-gql-go","last_synced_at":"2025-10-12T16:33:23.338Z","repository":{"id":65199562,"uuid":"338819793","full_name":"MichaelCurrin/github-gql-go","owner":"MichaelCurrin","description":"An easy way to query GitHub's GraphQL API from the command-line","archived":false,"fork":false,"pushed_at":"2024-05-24T19:43:48.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-14T20:49:52.149Z","etag":null,"topics":["github-api","github-api-v4","github-graphql","go","gql","gql-api","graphql"],"latest_commit_sha":null,"homepage":"","language":"Go","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/MichaelCurrin.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":"2021-02-14T14:09:46.000Z","updated_at":"2024-05-24T19:43:50.000Z","dependencies_parsed_at":"2023-01-12T15:00:34.960Z","dependency_job_id":"82b1d94e-b2a9-458c-9318-c77e82c78713","html_url":"https://github.com/MichaelCurrin/github-gql-go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"MichaelCurrin/go-project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fgithub-gql-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fgithub-gql-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fgithub-gql-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Fgithub-gql-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelCurrin","download_url":"https://codeload.github.com/MichaelCurrin/github-gql-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241876002,"owners_count":20035368,"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":["github-api","github-api-v4","github-graphql","go","gql","gql-api","graphql"],"created_at":"2024-10-11T19:36:28.557Z","updated_at":"2025-10-12T16:33:18.302Z","avatar_url":"https://github.com/MichaelCurrin.png","language":"Go","readme":"# GitHub GraphQL Go\n\u003e An easy way to query GitHub's GraphQL API from the command-line\n\n\u003c!-- Badges generated with Badge Generator - https://michaelcurrin.github.io/badge-generator/ --\u003e\n\n[![Go CI](https://github.com/MichaelCurrin/github-gql-go/workflows/Go%20CI/badge.svg)](https://github.com/MichaelCurrin/github-gql-go/actions?query=workflow:\"Go+CI\")\n[![GitHub tag](https://img.shields.io/github/tag/MichaelCurrin/github-gql-go?include_prereleases=\u0026sort=semver)](https://github.com/MichaelCurrin/github-gql-go/releases/)\n[![License](https://img.shields.io/badge/License-MIT-blue)](#license)\n\n[![Made with Go](https://img.shields.io/github/go-mod/go-version/MichaelCurrin/github-gql-go?logo=go\u0026logoColor=white)](https://golang.org)\n[![dependency - githubv4](https://img.shields.io/badge/dependency-githubv4-blue)](https://pkg.go.dev/github.com/shurcooL/githubv4)\n\n\nA CLI tool to query the [GitHub GraphQL](https://michaelcurrin.github.io/dev-resources/resources/version-control/github/graphql.html) API by acting as a wrapper on another Go package.\n\n\n## Sample usage\n\nCreate your GH auth token and set it on the environment.\n\n```sh\n$ export GH_TOKEN=abcdef\n```\n\nRun the CLI app to do a query and print results.\n\n```console\n$ ghgql\nLogin: MichaelCurrin\nCreated at: 2016-04-30 11:19:17 +0000 UTC\nAvatar URL: https://avatars.githubusercontent.com/u/18750745?s=72\u0026u=ec21949f76c6d8f152f3d8c8f8204d86d6fceba5\u0026v=4\n```\n\n\n## Purpose\n\nThe intention for this project is:\n\n- Be easy to use for developers who are not familiar with Go.\n- Produce an binary executable for downloading (without needing Node or Python installed).\n- Allow use interactively in the CLI or in project pipeline to handle (such as to download GitHub data as JSON data and use it to make a site).\n\n\n## Limitations ⚠️\n\n- This project only uses fixed GQL queries. There is a request for the current user and a request for this repo. The results get printed as text.\n- Aims for future development:\n    - Use a selection of `.gql` input file given by the user, or choose from queries known to the app. Currently using a Go object, which might be more practical anyway for types.\n    - Save output as a JSON or CSV file.\n- For a more full-fledged project that has a variety GQL files and writes CSV reports for each one, see my [GH Reporting Tool](https://github.com/MichaelCurrin/github-reporting-py) in Python.\n\n\n## Documentation\n\u003e How to install and run this project locally and release it\n\n\u003cdiv align=\"center\"\u003e\n\n[![Documentation](https://img.shields.io/badge/View-Documentation-blue?style=for-the-badge)](/docs/)\n\n\u003c/div\u003e\n\n\n## License\n\nReleased under [MIT](/LICENSE) by [@MichaelCurrin](https://github.com/MichaelCurrin).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcurrin%2Fgithub-gql-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelcurrin%2Fgithub-gql-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcurrin%2Fgithub-gql-go/lists"}