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", "")); }
private void OnIssueOrPullRequest(IssueOrPullRequest ev) { Repo = ev.From; IssueNo = ev.No; }