Skip to content

Commit 20214e6

Browse files
author
Henry Walshaw
committed
Add run message and report to webhook message
This does increase the message size, though I imagine that's marginal, and is backwards compatible in that old keys remain in place and aren't modified. The goal is to make the actual GHC app more set and forget, and we can handle the errors with a little more discretion on the webhook end.
1 parent 9af0d86 commit 20214e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GeoHealthCheck/notifications.py

+2
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def do_webhook(config, resource, run, status_changed, result):
215215
params['ghc.resource.title'] = resource.title
216216
params['ghc.resource.type'] = resource.resource_type
217217
params['ghc.resource.view'] = resource_view
218+
params['ghc.run.message'] = run.message
219+
params['ghc.run.report'] = run.report
218220

219221
try:
220222
r = requests.post(url, params)

0 commit comments

Comments
 (0)