<Query Kind="Program">
  <NuGetReference>Octokit</NuGetReference>
  <NuGetReference>Octokit.Reactive</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);

}