Example #1
0
        private void ConnectToGithub()
        {
            var credentialProvider = new CompositeCredentialProvider()
                .Add(new GitCredentialProvider("github.com"))
                .Add(new AskUserCredentialProvider());

            var authorization = AuthManager.GetAuthorization(credentialProvider);
            github = new GithubService(authorization) {UserAgent = UserAgent, AgentVersion = AgentVersion};
        }
Example #2
0
 public SprintReader(GithubService github, string ownerLogin, string repositoryName)
 {
     this.github = github;
     this.ownerLogin = ownerLogin;
     this.repositoryName = repositoryName;
 }