public async Task Post(/*[FromBody]PushPayload payload*/)
        {
            var payload = await Request.GetGithubPayloadAsync(_config.SecretKey);

            if (payload == null)
            {
                Response.StatusCode = 400;
                return;
            }

            var commits = payload.Commits.OrderByDescending(c => c.Timestamp);
            var processor = new GithubPushProcessor(_environment.WebRootPath, _config);

            foreach (var commit in commits)
            {
                await processor.ProcessAsync(commit);
            }
 
            // todo: process

            int foo = 0;
        }
        public async Task Post(/*[FromBody]PushPayload payload*/)
        {
            var body = await Request.Body.ReadToEndAsync();
            var payload = JsonConvert.DeserializeObject<PushPayload>(body);
            var header = Request.Headers["X-Hub-Signature"];
            
            if (!GithubValidate.Validate(header, body))
            {
                Response.StatusCode = 400;
                return;
            }

            var commits = payload.Commits.OrderByDescending(c => c.Timestamp);
            var processor = new GithubPushProcessor(_environment.WebRootPath);

            foreach (var commit in commits)
            {
                await processor.ProcessAsync(commit);
            }
 
            // todo: process

            int foo = 0;
        }