[BUG]: Repository.Release.GetLatest fails with 404
yoshiask opened this issue · comments
What happened?
I am trying to get the latest release of a repository in an org. In the following code sample:
var org = await _gitHub.Organization.Get("ZuneDev");
var repo = await _gitHub.Repository.Get("ZuneDev", "ZuneModdingHelper");
var releases = await _gitHub.Repository.Release.GetAll("ZuneDev", "ZuneModdingHelper");
var latest = await _gitHub.Repository.Release.GetLatest(repo.Id);
The first three lines execute as expected, but the fourth one, Release.GetLatest(...)
, always fails with an ambiguous "Not Found" error (which doesn't specify what exactly wasn't found, only providing a link to the endpoint's documentation).
Versions
Octokit.NET 11.0.1
.NET 8
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct