Skip to content

Instantly share code, notes, and snippets.

@marcduiker
Created March 3, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcduiker/50fb218fb33afd8e3c2447306a3af7d2 to your computer and use it in GitHub Desktop.
Save marcduiker/50fb218fb33afd8e3c2447306a3af7d2 to your computer and use it in GitHub Desktop.
Using the Octokit.Net client library to get the latest release for a public GitHub repository.
var client = new GitHubClient(new ProductHeaderValue("SomeApplicationIdentifier"));
var latestRelease = await client.Repository.Release.GetLatest(
repoConfiguration.RepositoryOwner,
repoConfiguration.RepositoryName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment