zulip/zerver/lib/webhooks
Hemanth V. Alluri 4691028097 webhooks: Extract the '__' method of mapping to headers.
In the GitHub integration we established that for many integrations,
we can directly map the fixture filename to the set of required
headers and by following a simple naming convention we can greatly
ease the logic involved in fixture_to_headers method required .

So to prevent the need for duplicating the logic used by the GitHub
integration, we created a method called `get_http_headers_from_filename`
which will take the name of the HTTP header (key) and then return a
corresponding method (in a decorator-like fashion) which could then be
equated to fixture_to_headers in headers.py.

The GitHub integration was modified to use this method and the docs
were updated to suggest using this when possible.
2019-06-26 10:32:34 -07:00
..
__init__.py Add common git integration method to build message for push events. 2016-10-10 17:32:41 -07:00
common.py webhooks: Extract the '__' method of mapping to headers. 2019-06-26 10:32:34 -07:00
git.py webhooks/github: Improve punctuation. 2019-05-09 13:05:49 -07:00