nerdishbynature / octokit.swift

A Swift API Client for GitHub and GitHub Enterprise
MIT License
488 stars 126 forks source link

Add Latest Release Endpoint #164

Closed brianmichel closed 1 year ago

brianmichel commented 1 year ago

The API now has a latest release endpoint which will automatically filter down the list of releases to be the most recent non-prerelease and non-draft release that exists in a repository. This allows users of OctoKit to use this endpoint as needed.

I added a test and new fixture that could be used (I used the test data from the API, hope that was okay).

Let me know if there is more you'd like me to do with this, I was unsure if I also needed to provide a callback-style function in addition to the async/await one, so I opted for keeping it simple.

pietbrauer commented 1 year ago

Thanks a lot!