コード例 #1
0
        public IActionResult WebhookReceived(int projectId, [FromBody] GitHookRequest request)
        {
            var handler = new GitHubWebHookHandler();

            handler.Handle(request);

            return(new OkResult());
        }
コード例 #2
0
        public GitHookResult Handle(GitHookRequest request)
        {
            var result = new GitHookResult();

            if (request.ref_type == "branch")
            {
            }
            else
            {
                result.Succeded = true;
                result.Log("This was not related to the creation of a branch so it wasn't handled by TACC");
            }

            return(result);
        }