Ejemplo n.º 1
0
        async void DisplayCommitInBranchStatus(string sha, string branchName)
        {
            var result = await _gitHubService.CheckCommitInBranch("Advantage", branchName, sha);

            var statusMessage = String.Format("Commit {0} is {1}in branch {2} [{3}]", sha.Substring(0, 8), CompareStatusIsTrue(result.Status) ? "" : "NOT ", branchName, result.Status);

            Console.WriteLine(statusMessage);
            txtBranchCheck.AppendText(statusMessage + "\r\n");
        }