got-notify-http: change the layout of the json
commit9c485a117d54fcaae2d9cfc14cb90bbd5fbec161
authorOmar Polo <op@omarpolo.com>
Thu, 28 Mar 2024 11:08:18 +0000 (28 11:08 +0000)
committerThomas Adam <thomas@xteddy.org>
Sat, 30 Mar 2024 17:21:23 +0000 (30 17:21 +0000)
tree59cee54814f162027c54d190c4d1a35163b31b1b
parent7d119a7cb849b6e7d08ef4db9b4e410607a086e3
got-notify-http: change the layout of the json

Split the author/committer in sub-fields, rename author -> committer
in the short format parser and cache the author for the long format
in case it's the same user as the committer.  Put a copy of the
first line of the commit message in the "short_message" field.

There's some redundancy now, but it's to make consuming easier.

ok stsp@
gotd/libexec/got-notify-http/got-notify-http.c
regress/gotd/http_notification.sh