commit - 5a810f318bdf6918a86fe0ce770d2eda026e6932
commit + 841969e1ced43e1e9e2d6c8e3b22541e24337eb9
blob - 80848550d9f189c5f02f34fea14379857dbd78a1
blob + bd6a17f9a4698f159dcf27a9d7f9e2b96e89a9bd
--- gotd/gotd.conf.5
+++ gotd/gotd.conf.5
.Dq notifications
property containing an array of notification objects.
The following notification object properties are always present:
-.Bl -tag -width auth_user
+.Bl -tag -width authenticated_user
.It Dv repo
The repository name as a string.
-.It Dv auth_user
+.It Dv authenticated_user
The committer's user account as authenticated by
.Xr gotd 8
as a string.
blob - 34cebb840cd2748f8de2cf177553261cab74e768
blob + c955054bab3e0db88cf373157014884410ae6d22
--- gotd/libexec/got-notify-http/got-notify-http.c
+++ gotd/libexec/got-notify-http/got-notify-http.c
fputc('{', fp);
json_field(fp, "type", "branch-deleted", 1);
json_field(fp, "repo", repo, 1);
- json_field(fp, "auth_user", user, 1);
+ json_field(fp, "authenticated_user", user, 1);
json_field(fp, "ref", ref, 1);
json_field(fp, "id", id, 0);
fputc('}', fp);
fprintf(fp, "{\"type\":\"commit\",\"short\":true,");
json_field(fp, "repo", repo, 1);
- json_field(fp, "auth_user", user, 1);
+ json_field(fp, "authenticated_user", user, 1);
json_field(fp, "id", id, 1);
json_author(fp, "committer", author, 1);
json_date(fp, "date", date, 1);
fprintf(fp, "{\"type\":\"commit\",\"short\":false,");
json_field(fp, "repo", repo, 1);
- json_field(fp, "auth_user", user, 1);
+ json_field(fp, "authenticated_user", user, 1);
json_field(fp, "id", l, 1);
while (!done) {
fputc('{', fp);
json_field(fp, "type", "tag", 1);
json_field(fp, "repo", repo, 1);
- json_field(fp, "auth_user", user, 1);
+ json_field(fp, "authenticated_user", user, 1);
json_field(fp, "tag", l, 1);
while (!done) {
blob - daa3a3c53c47d2e2f9f1506b58b3ea5def124c05
blob + 4e84724b805fce88a8e881e5700e1c71b5b4fd5b
--- regress/gotd/http_notification.sh
+++ regress/gotd/http_notification.sh
"type":"commit",
"short":false,
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"id":"$commit_id",
"author":{
"full":"$GOT_AUTHOR",
"type":"commit",
"short":false,
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"id":"$commit_id",
"author":{
"full":"$GOT_AUTHOR",
"type":"commit",
"short":false,
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"id":"$commit_id",
"author":{
"full":"$GOT_AUTHOR",
"type":"commit",
"short":false,
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"id":"$commit_id",
"author":{
"full":"$GOT_AUTHOR",
"type":"commit",
"short":true,
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"id":"$commit_id",
"committer":{
"user":"$GOT_AUTHOR_8"
"type":"commit",
"short":false,
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"id":"$commit_id",
"author":{
"full":"$GOT_AUTHOR",
{"notifications":[{
"type":"branch-deleted",
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"ref":"refs/heads/newbranch",
"id":"$commit_id"
}]}
{"notifications":[{
"type":"tag",
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"tag":"refs/tags/1.0",
"tagger":{
"full":"$GOT_AUTHOR",
{"notifications":[{
"type":"tag",
"repo":"test-repo",
- "auth_user":"${GOTD_DEVUSER}",
+ "authenticated_user":"${GOTD_DEVUSER}",
"tag":"refs/tags/1.0",
"tagger":{
"full":"$GOT_AUTHOR",