Site-wide webhooks

Review Request #993 — Created Aug. 24, 2009 and discarded — Latest diff uploaded

Information

Review Board

Reviewers

Allows admin to add multiple webhook URLs. These are POSTed to on publish events, with a JSON payload of:

 - event_name (only "post_publish" for now)
 - event_source (model instance that got published)
 - event_source_type (model class: reviewrequest, review)
 - changedesc (when available)

TODO:

- write micro test app using wsgi to receive POSTs
Ran test suite with a webhook pointing at http://www.postbin.org/14iso90 and everything worked fine.
reviewboard/settings.py
reviewboard/notifications/__init__.py
reviewboard/notifications/admin.py
reviewboard/notifications/email.py
reviewboard/notifications/event_manager.py
reviewboard/notifications/models.py
reviewboard/notifications/post_url_dispatcher.py
reviewboard/reviews/models.py
reviewboard/reviews/signals.py
reviewboard/webapi/json.py
reviewboard/webapi/tests.py
Loading...