public void DeleteBranch(string branchName, string repoName)
        {
            if (string.IsNullOrWhiteSpace(branchName) || string.IsNullOrWhiteSpace(repoName))
            {
                Log?.Invoke(this, new GithubLogEventArgs
                {
                    Data = "Attempted to update, but no Branch data"
                });
                return;
            }

            var githubBranch = new GithubBranch
            {
                BranchName = branchName,
                Repo       = repoName
            };

            BranchDeleted?.Invoke(this, new GithubBranchDeletedEvent
            {
                RepositoryName = repoName,
                Branch         = githubBranch
            });
        }
示例#2
0
 private void InvokeBranchDeleted(RemoteRepositoryBranch branch)
 => BranchDeleted?.Invoke(this, new RemoteReferenceEventArgs(branch));