octokit / octokit.net

A GitHub API client library for .NET

Home Page:https://octokitnet.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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