private void AddShaToRepo(string githubUserId, Repository repo) { var refJsonFromInquisitor = _inquisitor.GetRefForRepo(githubUserId, repo.Name); if (!string.IsNullOrEmpty(refJsonFromInquisitor)) { var refJson = JObject.Parse(refJsonFromInquisitor); if (refJson.Property("object") != null) { repo.Sha = refJson["object"]["sha"].ToString(); } } }