예제 #1
0
        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();
                }
            }
        }