# HG changeset patch # User Matthew Wild # Date 1425055356 0 # Node ID 754d97ba333d05eb6bab76294c56d12cce532499 # Parent 43c54a27bab2e9aadc9fef0d21eec57846192b5f mod_pubsub_github: Update for new Github webhook format diff -r 43c54a27bab2 -r 754d97ba333d mod_pubsub_github/mod_pubsub_github.lua --- a/mod_pubsub_github/mod_pubsub_github.lua Fri Feb 27 16:25:48 2015 +0000 +++ b/mod_pubsub_github/mod_pubsub_github.lua Fri Feb 27 16:42:36 2015 +0000 @@ -8,7 +8,7 @@ local node = module:get_option("github_node", "github"); function handle_POST(event) - local data = json.decode(formdecode(event.request.body).payload); + local data = json.decode(event.request.body); if not data then return "Invalid JSON. From you of all people..."; end