A Swift framework for the GitHub API
This release has a significant reworking of the API. Instead of calling methods directly on Client
, methods and properties are exposed on the different types to return a Request<Value>
. These are then used with one of the Client.execute
methods to actual perform the request.
Added
Fixed
UserProfile.websiteURL
is now a String
because it can contain any stringAdded
Client.branches(in: Repository)
to retrieve branches in a repository (#61). Thanks @Palleas!Fixed
Thank you to @ikesyo and @dduan for improvements to the codebase! ✨
Added
Client.content(atPath: String, in: Repository)
to retrieve files from the API (#51). Thanks @Palleas!Client.create(file: File, atPath: String, in: Repository)
to create files with the API (#55). Thanks @Palleas!Improved
is
prefix (#49). Thanks @ikesyo!URLSession
is now configurable (#45). Thanks @ikesyo!Thank you also to @ikesyo and @pixyzehn for improvements to the codebase!
Added
Client.commentsOnIssue
for fetching comments on issues and PRs (#38, #40). Thanks @Palleas!Fixed
Added
Client.assignedIssues()
for getting the issues assigned to the authenticated user (#28). Thanks @Palleas!Client.issuesInRepository()
for getting the issues in a repository (#28). Thanks @Palleas!Client.authenticatedUser()
for getting information about the authenticated user (#35). Thanks @Palleas!Improved
Client.userWithLogin()
now returns a UserInfo
and User
is used for things like an issue’s author (#31).Added
Fixed
This release drops support for Swift 2.1.
Added
Fixed
Server
s and Repository
s now use case-insensitive comparisons (#22).This is the first release of Tentacle, built to support the needs of Carthage. :tada: