Beispiel #1
0
 public Program(string[] args, IGitHubUtils gitHubUtils)
     : this(args)
 {
     _gitHubUtils = gitHubUtils;
 }
 public GitAutomation(GitAutomationConfig config, IGitHubUtils gitHubUtils, ILogger logger)
 {
     _config      = config;
     _gitHubUtils = gitHubUtils ?? new GitHubUtils(config.RemoteCredentialType, config.RemoteCredentialType == "userPassword" ? config.RemoteUsername : config.RepoAuthToken, config.RemotePassword, logger);
     _logger      = logger;
 }