developmentseed / jekyll-hook

No Longer Maintained | A server that listens for GitHub webhook posts and renders a Jekyll site
BSD 3-Clause "New" or "Revised" License
508 stars 83 forks source link

github no longer sends branch parameter in the request body #39

Closed cpoole closed 7 years ago

cpoole commented 8 years ago

Githubs webhook request body doesn't have a branch parameter. instead they provide a refs parameter. This commit splits the ref to get the branch.

This patch assumes your webhook is set up in the format http://myhost.com/jekyll/hook/:branchname

cpoole commented 7 years ago

wooo! glad to see this is being maintained!

--edit--

jk, haha. Thanks for merging this anyway