Skip to content
forked from eneko/GitHub

Swift Package client for the GitHub GraphQL API V4

Notifications You must be signed in to change notification settings

rizwankce/GitHub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub GraphQL API V4 client

This is a client for the GitHub GraphQL API V4.

Note: This client is in very early stages and currently has extremely limited functionality:

  • Retrieve version tag for lastest release from a given repository.
  • Retrieve list of open pull requests from a given repository.

Usage

Initialize a client passing in a valid GitHub access token:

let token = "your_token"
let github = GitHub(token: token)

Retrieve latest release version of a given project:

let version = try github.latestRelease(owner: "eneko", project: "SourceDocs")
print(version)  // 0.5.0

Retrieve list of open pull requests on a given project:

let pullRequests = try github.openPullRequests(owner: "eneko", project: "SourceDocs")
print(pullRequests.count) // 0

About

Swift Package client for the GitHub GraphQL API V4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%