コード例 #1
0
 public CommitGatheringStep(SophiaDbContext dbContext, GitHubOption gitHubOption) : base(dbContext)
 {
     _gitHubOption = gitHubOption;
 }
コード例 #2
0
 public PullRequestGatheringStep(SophiaDbContext dbContext, GitHubRepositoryPullRequestService gitHubRepositoryPullRequestService, GitHubOption gitHubOption)
     : base(dbContext)
 {
     _gitHubRepositoryPullRequestService = gitHubRepositoryPullRequestService;
     _gitHubOption = gitHubOption;
 }
コード例 #3
0
 public PullRequestAnalyzer(SophiaDbContext dbContext, GitHubOption gitHubOption, GitHubRepositoryPullRequestService gitHubRepositoryPullRequestService)
 {
     _dbContext    = dbContext;
     _gitHubOption = gitHubOption;
     _gitHubRepositoryPullRequestService = gitHubRepositoryPullRequestService;
 }
コード例 #4
0
        private async Task AnalyzePullRequests(long subscriptionId, SophiaDbContext dbContext, GitHubOption gitHubOption, GitHubRepositoryPullRequestService gitHubRepositoryPullRequestService)
        {
            try
            {
                var analyzer = new PullRequestAnalyzer(dbContext, gitHubOption, gitHubRepositoryPullRequestService);
                await analyzer.Analyze(subscriptionId);

                await dbContext.SaveChangesAsync();
            }
            catch (Exception e)
            {
                _logger.LogError("ApplyPullRequestsJob: Exception {exception} in {subscriptionId}", e.ToString(), subscriptionId);
                throw;
            }
        }
コード例 #5
0
 public RepositoryCloningStep(SophiaDbContext dbContext, GitHubOption gitHubOption) : base(dbContext)
 {
     _gitHubOption = gitHubOption;
 }