Exemple #1
0
        public static void CreatePullRequest(this ICakeContext context, Credentials credentials,
                                             GitHubRepository repository, NewPullRequest pullRequest)
        {
            var client = GitHubClientFactory.Create(credentials);

            client.PullRequest.Create(repository.Owner, repository.RepositoryName, pullRequest);
        }
Exemple #2
0
        public static void CreateIssue(this ICakeContext context, Credentials credentials, GitHubRepository repository, NewIssue issue)
        {
            var client = GitHubClientFactory.Create(credentials);

            client.Issue.Create(repository.Owner, repository.RepositoryName, issue).Wait();
        }