Created
March 3, 2019 20:47
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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