Files
octokit.net/samples/linqpad-samples/1-introducing-octokit.linq
Naveen e3da87cdfb Removed the integration test options
Removed the integration test options because lprun has compileonly
option.
2015-10-05 19:40:23 -04:00

32 lines
976 B
C#

<Query Kind="Program">
<NuGetReference>Octokit</NuGetReference>
<NuGetReference>Octokit.Reactive</NuGetReference>
<NuGetReference>Rx-Main</NuGetReference>
<Namespace>Octokit</Namespace>
<Namespace>System.Reactive.Linq</Namespace>
<Namespace>System.Threading.Tasks</Namespace>
</Query>
async Task Main(string[] args)
{
var owner = string.Empty;
var reponame = string.Empty;
owner = "octokit";
reponame = "octokit.net";
var client = new GitHubClient(new Octokit.ProductHeaderValue("octokit.samples"));
var repository = await client.Repository.Get(owner, reponame);
Console.WriteLine(String.Format("Octokit.net can be found at {0}\n", repository.HtmlUrl));
Console.WriteLine("It currently has {0} watchers and {1} forks\n",
repository.StargazersCount,
repository.ForksCount);
Console.WriteLine("It has {0} open issues\n", repository.OpenIssuesCount);
Console.WriteLine("And GitHub thinks it is a {0} project", repository.Language);
}