Exemplo n.º 1
0
        protected async Task <ICEWorkItem> GetPullRequestDetailsInternal(ICEWorkItem item)
        {
            var pullRequestDetailsResult = await _gitHubService.GetPullRequestDetails(item.PullRequest.Repo, item.PullRequest.Number);

            item.PullRequest = pullRequestDetailsResult;
            return(item);
        }
Exemplo n.º 2
0
 // TeamCity
 public async Task <ICEWorkItem> UpdateBuilds(ICEWorkItem workItem)
 {
     return(await Task.Run(() =>
     {
         workItem.PullRequest.Builds = GetBuilds(workItem.PullRequest.Number);
         return workItem;
     }));
 }
Exemplo n.º 3
0
        public async virtual Task <ICEWorkItem> UpdatePullRequest(ICEWorkItem item)
        {
            ICEWorkItem result = item;

            try
            {
                result = await _workItemService.GetPullRequestDetails(item);

                result = await _workItemService.UpdateBuilds(result);
            }
            catch (Exception ex)
            {
                ExceptionHandler(ex);
            }
            return(result);
        }
Exemplo n.º 4
0
 public virtual void WorkItemSelected(ICEWorkItem workItem)
 {
     //PullRequests = new List<ICEPullRequest>() { workItem.PullRequest };
 }
Exemplo n.º 5
0
 public async Task <ICEWorkItem> GetPullRequestDetails(ICEWorkItem item)
 {
     return(await GetPullRequestDetailsInternal(item));
 }