public LinkService( IMessageService messageService, IGitSettings gitSettings) { this.messageService = messageService; this.gitSettings = gitSettings; }
public GitMerger(IGitRepositoryManager repositoryManager, IGitSettings gitSettings, IJira jira, IJiraSettings jiraSettings) { _repositoryManager = repositoryManager; _gitSettings = gitSettings; _jira = jira; _jiraSettings = jiraSettings; Task.Run(() => HandleMergeRequests()); }
public Git(IGitSettings gitSettings) { if (gitSettings == null) { throw new ArgumentNullException(nameof(gitSettings), $"{nameof(gitSettings)} is null."); } _gitSettings = gitSettings; }
public BranchTipMonitorService( IGitBranchService gitBranchService, IGitCommitBranchNameService gitCommitBranchNameService, IGitSettings gitSettings) { this.gitBranchService = gitBranchService; this.gitCommitBranchNameService = gitCommitBranchNameService; this.gitSettings = gitSettings; }
public GitRepository(string repositoryIdentifier, string localPath, IGitSettings gitSettings) { if (string.IsNullOrEmpty(repositoryIdentifier)) { throw new ArgumentNullException(nameof(repositoryIdentifier), $"{nameof(repositoryIdentifier)} is null or empty."); } if (string.IsNullOrEmpty(localPath)) { throw new ArgumentNullException(nameof(localPath), $"{nameof(localPath)} is null or empty."); } if (gitSettings == null) { throw new ArgumentNullException(nameof(gitSettings), $"{nameof(gitSettings)} is null."); } RepositoryIdentifier = repositoryIdentifier; LocalPath = localPath; _gitSettings = gitSettings; _git = new Git(gitSettings); }
public RepositoryService( IStatusService statusService, ICacheService cacheService, ICommitsDetailsService commitsDetailsService, Lazy <IRemoteService> remoteService, IRepositoryStructureService repositoryStructureService, IProgressService progressService, IBranchTipMonitorService branchTipMonitorService, IGitSettings gitSettings) { this.statusService = statusService; this.cacheService = cacheService; this.commitsDetailsService = commitsDetailsService; this.remoteService = remoteService; this.repositoryStructureService = repositoryStructureService; this.progressService = progressService; this.branchTipMonitorService = branchTipMonitorService; this.gitSettings = gitSettings; statusService.StatusChanged += (s, e) => OnStatusChanged(e.NewStatus); statusService.RepoChanged += (s, e) => OnRepoChanged(e.BranchIds); }
public GitHubService(IGitSettings settings) { _settings = settings; }
public GitRepositoryManager(IGitSettings gitSettings) { _gitSettings = gitSettings; _git = new Git(_gitSettings); }