commit e117f5fb2b0eb25d9fe3536127865b300e705cd0 from: Stefan Sperling date: Mon Mar 11 09:49:08 2024 UTC we will probably try to use JSON for http commit - 61c1b3647f0284c38c0d8e25f0661f795b11362d commit + e117f5fb2b0eb25d9fe3536127865b300e705cd0 blob - aa645df623d74ff03495d3bc97bbfe82a20815a1 blob + 7506bd9ea830b6fd191477e5469eb6bba5a27de7 --- gotd/gotd.conf.5 +++ gotd/gotd.conf.5 @@ -364,10 +364,9 @@ or If HTTPS is used, sending of notifications will only succeed if no TLS errors occur. .Pp -The commit or tag message will be sent in the request body. If the optional .Ic shortlog -directive is given, only the first line of the commit or tag message +directive is given, only the first line of a commit or tag message will be sent. .Pp The optional @@ -384,34 +383,13 @@ The .Ar password must not be an empty string. .Pp -The -.Ar URL -may contain values expanded via one or more format string directives. -Special characters in expanded values will be URL-encoded. -The supported format string directives are as follows: -.Bl -tag -width Ds -.It %a -Name and email address of the author. -.It %c -Name and email address of the committer. -.It %d -Committer timestamp in seconds since the UNIX epoch. -.It %D -Author timestamp in seconds since the UNIX epoch. -.It %t -Object type. -Expands to either -.Dq commit -or -.Dq tag -(without quotes). -.It %x -Object ID as a hexadecimal string. -.It %% -Expands to a literal -.Dq % -(without quotes). +The request body contains a JSON document with the following objects: +.Bl -tag -width { "notifications" : array } +.It { "notifications" : array } +The top-level object contains an array of all notifications in this request. +.It TODO ... .El +.Pp .El .Sh FILES .Bl -tag -width Ds -compact @@ -457,7 +435,7 @@ repository "openbsd/ports" { reference namespace "refs/tags/" summarize email to openbsd-ports-changes@example.com with diff - url https://example.com/?id=%x&type=%tcommitter=%c×tamp=%d user "flan_announcer" password "secret" + url https://example.com/notify/ user "flan_announcer" password "secret" } }