Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Repository.Release.GetLatest fails with 404 #2916

Open
1 task done
yoshiask opened this issue May 10, 2024 · 0 comments
Open
1 task done

[BUG]: Repository.Release.GetLatest fails with 404 #2916

yoshiask opened this issue May 10, 2024 · 0 comments
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@yoshiask
Copy link

yoshiask commented May 10, 2024

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
@yoshiask yoshiask added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

1 participant