coreh / hookshot

Hookshot is a tiny library and companion CLI tool for handling GitHub post-receive hooks.
MIT License
145 stars 24 forks source link

Pass through bodyParser.json() middleware options #12

Open mbland opened 9 years ago

mbland commented 9 years ago

18F/pages is a Hookshot server for https://pages.18f.gov/. As noted in 18F/pages#14, the default 100KB payload limit was exceeded by a webhook fired for 18F/govt-wide-patternlibrary#54. This change will allow us to pass options through to the bodyParser.json() middleware to increase the limit.

I've currently installed this on our server using:

$ npm install git+ssh://git@github.com/18F/hookshot.git#json-options

I've also updated our 18F/pages server to use this version, and verified that it addresses our problem, evidenced by the logs and the successful first deployment of https://pages.18f.gov/govt-wide-patternlibrary/.

cc: @juliaelman

mbland commented 9 years ago

Ping... Any interest in merging this?