{"id":17962528,"url":"https://github.com/eneko/github","last_synced_at":"2025-09-29T04:31:52.752Z","repository":{"id":63909347,"uuid":"114937303","full_name":"eneko/GitHub","owner":"eneko","description":"Swift Package client for the GitHub GraphQL API V4","archived":false,"fork":false,"pushed_at":"2021-01-17T17:13:35.000Z","size":17,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-10T19:28:06.791Z","etag":null,"topics":["api","api-client","github","graphql","library","swift","swift-package","swift-package-manager"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/eneko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null},"funding":{"github":"eneko","patreon":"eneko"}},"created_at":"2017-12-20T22:33:29.000Z","updated_at":"2023-08-02T09:09:55.000Z","dependencies_parsed_at":"2022-11-29T07:03:16.590Z","dependency_job_id":null,"html_url":"https://github.com/eneko/GitHub","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FGitHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FGitHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FGitHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eneko%2FGitHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eneko","download_url":"https://codeload.github.com/eneko/GitHub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234588050,"owners_count":18856856,"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":["api","api-client","github","graphql","library","swift","swift-package","swift-package-manager"],"created_at":"2024-10-29T11:19:38.510Z","updated_at":"2025-09-29T04:31:52.355Z","avatar_url":"https://github.com/eneko.png","language":"Swift","readme":"![Release](https://img.shields.io/github/release/eneko/github.svg)\n![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg)\n[![Build Status](https://travis-ci.org/eneko/GitHub.svg?branch=master)](https://travis-ci.org/eneko/GitHub)\n[![codecov](https://codecov.io/gh/eneko/GitHub/branch/master/graph/badge.svg)](https://codecov.io/gh/eneko/GitHub)\n[![Swift Package Manager Compatible](https://img.shields.io/badge/spm-compatible-brightgreen.svg)](https://swift.org/package-manager)\n![Linux Compatible](https://img.shields.io/badge/linux-compatible%20🐧-brightgreen.svg)\n\n# GitHub GraphQL API V4 client\n\nThis is a client for the [GitHub GraphQL API V4](https://developer.github.com/v4/).\n\nNote: This client is in very early stages and currently has extremely limited functionality:\n- Retrieve version tag for lastest release from a given repository.\n- Retrieve list of open pull requests from a given repository.\n\n## Usage\n\nInitialize a client passing in a valid GitHub access token:\n```swift\nlet token = \"your_token\"\nlet github = GitHub(token: token)\n```\n\nRetrieve latest release version of a given project:\n```swift\nlet version = try github.latestRelease(owner: \"eneko\", project: \"SourceDocs\")\nprint(version)  // 0.5.0\n```\n\nRetrieve list of open pull requests on a given project:\n```swift\nlet pullRequests = try github.openPullRequests(owner: \"eneko\", project: \"SourceDocs\")\nprint(pullRequests.count) // 0\n```\n","funding_links":["https://github.com/sponsors/eneko","https://patreon.com/eneko"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feneko%2Fgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feneko%2Fgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feneko%2Fgithub/lists"}