From 6be41caa7f9e27e7b0c509662c8da564d32c4841 Mon Sep 17 00:00:00 2001 From: fedor Date: Mon, 15 Jul 2024 22:52:38 -0400 Subject: [PATCH 1/2] Document upcoming changes to webhooks payloads These are proposed new fields that will come to the payloads and GraphQL API in the coming weeks. These events will allow to improve export of the events into systems like Datadog. See the following issue: * https://github.com/cirruslabs/cirrus-webhooks-server/issues/8 * https://github.com/cirruslabs/cirrus-webhooks-server/issues/9 --- docs/api.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/api.md b/docs/api.md index 71903f60..c1d2e450 100644 --- a/docs/api.md +++ b/docs/api.md @@ -69,6 +69,10 @@ build(id: $buildId) { changeIdInRepo changeTimestamp status + initializer { + id + username + } } task(id: $taskId) { id @@ -103,6 +107,10 @@ fragment AuditEventWebhookPayload on AuditEventType { data actor { id + username + } + actorLocation { + ip } repository { id From bbebc7fe6d886cc1caf7e55b100505267b56b951 Mon Sep 17 00:00:00 2001 From: fedor Date: Thu, 25 Jul 2024 11:19:06 -0400 Subject: [PATCH 2/2] actorLocationIP --- docs/api.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index c1d2e450..99885b66 100644 --- a/docs/api.md +++ b/docs/api.md @@ -109,9 +109,7 @@ fragment AuditEventWebhookPayload on AuditEventType { id username } - actorLocation { - ip - } + actorLocationIP repository { id owner