I am using Octokit Nuget Package for Github. I need to get the result as per the figure attached
I am using the following method for getting details of the Repository
public JsonResult GetRepositoryDeatil(long id)
{
var client = new GitHubClient(new ProductHeaderValue("demo"));
var tokenAuth = new Credentials("xxxxxxx"); // NOTE: not real token
client.Credentials = tokenAuth;
var content = client.Repository.Content.GetAllContents(id).Result;
List<RepositoryContent> objRepositoryContentList = content.ToList();
return Json(objRepositoryContentList, JsonRequestBehavior.AllowGet);
}
Output JSON can be viewed at the following link Output JSON
I am not able to get the commit details but only the directory or the file detail. Please suggest.
Thanks.