Example #1
0
 public LinkService(
     IMessageService messageService,
     IGitSettings gitSettings)
 {
     this.messageService = messageService;
     this.gitSettings    = gitSettings;
 }
Example #2
0
 public GitMerger(IGitRepositoryManager repositoryManager, IGitSettings gitSettings, IJira jira, IJiraSettings jiraSettings)
 {
     _repositoryManager = repositoryManager;
     _gitSettings       = gitSettings;
     _jira         = jira;
     _jiraSettings = jiraSettings;
     Task.Run(() => HandleMergeRequests());
 }
Example #3
0
 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;
 }
Example #5
0
        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);
        }
Example #6
0
        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;
 }
Example #8
0
 public GitRepositoryManager(IGitSettings gitSettings)
 {
     _gitSettings = gitSettings;
     _git         = new Git(_gitSettings);
 }
 public GitHubService(IGitSettings settings)
 {
     _settings = settings;
 }