GitHub

0.1.0

Swift Package client for the GitHub GraphQL API V4
eneko/GitHub

What's New

Release 0.1.0

2020-12-21T19:42:55Z

First release

Release Swift 4.2 Build Status codecov Swift Package Manager Compatible Linux Compatible

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

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Oct 20 2024 02:33:28 GMT-0900 (Hawaii-Aleutian Daylight Time)