{"id":20263129,"url":"https://github.com/briandowns/libgithub","last_synced_at":"2025-09-03T06:36:36.146Z","repository":{"id":261879589,"uuid":"885134205","full_name":"briandowns/libgithub","owner":"briandowns","description":"C/C++ library for accessing the GitHub API.","archived":false,"fork":false,"pushed_at":"2025-05-22T18:54:23.000Z","size":249,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T12:51:40.808Z","etag":null,"topics":["c","cpp","github","library"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/briandowns.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-08T02:41:28.000Z","updated_at":"2025-08-02T22:42:19.000Z","dependencies_parsed_at":"2025-03-28T04:25:11.415Z","dependency_job_id":"b6edf2fa-8be6-41c6-9db8-1948ef71143e","html_url":"https://github.com/briandowns/libgithub","commit_stats":null,"previous_names":["briandowns/libgithub"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/briandowns/libgithub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Flibgithub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Flibgithub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Flibgithub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Flibgithub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/briandowns","download_url":"https://codeload.github.com/briandowns/libgithub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandowns%2Flibgithub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273403950,"owners_count":25099299,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","cpp","github","library"],"created_at":"2024-11-14T11:33:38.322Z","updated_at":"2025-09-03T06:36:36.133Z","avatar_url":"https://github.com/briandowns.png","language":"C","readme":"# libgithub\n\n[![Build and Deploy](https://github.com/briandowns/libgithub/actions/workflows/main.yml/badge.svg)](https://github.com/briandowns/libgithub/actions/workflows/compile_example.yml/badge.svg)\n\nlibgithub is a C client library for accessing the [Github REST API](https://docs.github.com/en) and has been tested on Linux (Debian variants), MacOS, and FreeBSD with GCC and Clang, amd64 and arm64 architectures.\n\n## Usage\n\nTo initialize the library, the user's github token is required.\n\n```c\ngh_client_init(token);\n```\n\nClean up after use.\n```c\ngh_client_free();\n```\n\n### Error Handling\n\nIf an error occurs during the call, the error will be put into the `response-\u003eerr_msg` field and `response-\u003eresp` will be set to `NULL`.\n\n```c\ngh_client_response_t *res = gh_client_repo_release_by_tag(\"briandowns\", \"spinner\", \"v1.29.16\");\nif (res-\u003eerr_msg != NULL) {\n    fprintf(stderr, \"%s\\n\", res-\u003eerr_msg);\n    gh_client_response_free(res);\n}\n```\n\n## Build shared object\n\nTo build the shared object:\n\n```sh\nmake install\n```\n\n## Example \n\nBuild the example:\n\n```sh\nmake example\n```\n\n## API Coverage\n\n* API response data is returned in a string containing JSON.\n* The caller is responsible for how to handle the data.\n* List calls support pagination.\n* Each response from the API includes rate limit data.\n\n### Repositories\n#### Branches\n\n- [x] List branches\n- [x] Get a branch\n- [x] Rename a branch\n- [x] Sync to an upstream\n- [x] Merge a branch\n\n#### Commits\n\n- [x] List commits\n- [x] Get a commit\n- [x] Compare commits\n- [x] Get PR from commit\n\n#### Pull Requests\n\n- [x] List pull requests\n- [x] Get a pull request by id\n- [ ] Create a pull request\n- [ ] Update a pull request\n- [ ] List pull request files\n- [ ] Check if pull request has been merged\n- [ ] Merge a pull request\n- [ ] Update a pull request branch\n\n#### Release\n\n- [x] List releases\n- [x] Create a release\n- [x] Generate release notes\n- [x] Get latest\n- [x] Get by tag\n- [x] Get by id\n- [x] Update a release\n- [x] Delete a release\n\n##### Assets\n\n- [x] List release assets\n- [x] Get a release asset\n- [ ] Update a release asset\n- [ ] Delete a release asset\n- [ ] Upload a release asset\n\n### Issues\n\n- [x] List issues assigned to logged in user\n- [x] List issues by repository\n- [x] Create an issue\n- [x] Get by id\n- [x] Update an issue\n- [x] Lock issue\n- [x] Unlock issue\n\n### Users\n\n- [x] Get info for logged in user\n- [x] Get info for user by id\n- [x] Get hovercard info\n- [x] List blocked users\n- [x] Block a user\n- [x] Unblock a user\n- [x] List followers\n- [x] Get rate limit info for auth'd user\n\n### Metrics\n\n- [x] Community Profile Metrics\n- [x] Repository Clones data\n- [x] Top 10 referral paths\n- [x] Top referral sources\n- [x] Number of page views \n\n### Billing\n\n- [x] Get action billing by org\n\n### Code of Conduct \n\n- [x] Get all codes of conduct\n- [x] Get a code of conduct by key\n\n## Requirements / Dependencies\n\n* libcurl\n\n## Contributing\n\nPlease feel free to open a PR!\n\n## Contact\n\nBrian Downs [@bdowns328](http://twitter.com/bdowns328)\n\n## License\n\nBSD 2 Clause [License](/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriandowns%2Flibgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbriandowns%2Flibgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriandowns%2Flibgithub/lists"}