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.
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.