示例#1
0
        public async Task Merge([FromBody] PullRequestMerged pullRequestMerged)
        {
            if (pullRequestMerged.resource.status == "completed")
            {
                await _DBHelper.ClosePullRequest(pullRequestMerged);

                var pullRequests = await _DBHelper.GetPullRequests();

                await _hub.Clients.All.SendAsync("updatePullRequests", pullRequests);
            }
        }