hub.sr.ht/hubsrht
Conrad Hoffmann ec7a552ffc webhooks: add error handling for patch submission
Currently, any 400 error that occurs will be swallowed by
`SrhtService.post()` [1] - the caller must use a validation object to
become aware of an error.

This commit adds such error handling by means of a validation object to
the build submission webhook.

[1]: https://git.sr.ht/~sircmpwn/hub.sr.ht/tree/f37b9e6e/item/hubsrht/services.py#L56-60
2022-11-25 10:24:17 +01:00
..
alembic hubsrht: Use canonical user IDs 2022-10-25 11:00:27 +02:00
blueprints webhooks: add error handling for patch submission 2022-11-25 10:24:17 +01:00
templates hubsrht: Add visibility enum 2022-06-29 17:22:53 +02:00
types Uppercase the Visibility enum keys 2022-07-01 09:18:57 +02:00
app.py Allow trailing slashes on some routes 2020-04-29 10:46:05 -04:00
builds.py webhooks: add error handling for patch submission 2022-11-25 10:24:17 +01:00
decorators.py Implement featured projects 2020-04-28 14:08:56 -04:00
oauth.py Initial commit 2020-03-24 10:26:15 -04:00
projects.py hubsrht: Expect valid canonical name in URLs 2022-09-06 15:39:24 +02:00
services.py webhooks: add error handling for patch submission 2022-11-25 10:24:17 +01:00
trailers.py git: add function to parse message trailers 2021-11-29 10:52:31 +01:00