Example #1
0
        public NewPullRequestEventPublisher(string owner, string repositoryName)
        {
            Repo = new GitRemotePoint()
            {
                Host           = Config.Get("github.host", "https://github.com"),
                Owner          = owner,
                RepositoryName = repositoryName
            };

            Github = new GitHubClient(
                new ProductHeaderValue("Chain.Github"),
                new Uri(Config.Get("github.host", "https://github.com")));
            Github.Credentials = new Credentials(
                Config.Get("github.id", ""), Config.Get("github.password", ""));
        }
Example #2
0
 private void OnIssueOrPullRequest(IssueOrPullRequest ev)
 {
     Repo    = ev.From;
     IssueNo = ev.No;
 }