got-notify-http: change the layout of the json
commitac0a4dfc3547f38c3fe0544f329f3c7bded24010
authorOmar Polo <op@omarpolo.com>
Thu, 28 Mar 2024 11:08:18 +0000 (28 11:08 +0000)
committerOmar Polo <op@omarpolo.com>
Thu, 28 Mar 2024 11:08:18 +0000 (28 11:08 +0000)
treecfe5545652a51dc1f1fb50bf8efe7c3357fd5f06
parent909ef56bac18cdc0d889412542697be574acfe6b
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