From 797e6ea8d62830b85b10b5f480832feaafdef29d90b55ca7a24fe45eca1d2778 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Tue, 27 Aug 2024 12:15:59 +0200 Subject: [PATCH] . --- bots-common/request_fork.go | 6 +++--- bots-common/request_pr.go | 6 +++--- bots-common/request_push.go | 2 +- bots-common/request_wiki.go | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bots-common/request_fork.go b/bots-common/request_fork.go index 1f6e44e..9cfe67e 100644 --- a/bots-common/request_fork.go +++ b/bots-common/request_fork.go @@ -1,7 +1,7 @@ package common type ForkWebhookEvent struct { - Forkee Repository - Repository - Sender User + Forkee *Repository + Repository *Repository + Sender *User } diff --git a/bots-common/request_pr.go b/bots-common/request_pr.go index 8d9814b..f99a72e 100644 --- a/bots-common/request_pr.go +++ b/bots-common/request_pr.go @@ -8,7 +8,7 @@ import ( type Head struct { Ref string - Repo Repository + Repo *Repository Sha string } @@ -40,8 +40,8 @@ type PullRequestWebhookEvent struct { Action string Number int - Pull_Request PullRequest - Repository Repository + Pull_Request *PullRequest + Repository *Repository Requested_reviewer *User Sender User } diff --git a/bots-common/request_push.go b/bots-common/request_push.go index 0c5c144..050e62d 100644 --- a/bots-common/request_push.go +++ b/bots-common/request_push.go @@ -18,7 +18,7 @@ type PushRequest struct { Pusher User Sender User - Repository Repository + Repository *Repository } func (h *RequestHandler) parsePushRequest(data io.Reader) *PushRequest { diff --git a/bots-common/request_wiki.go b/bots-common/request_wiki.go index 4be1187..84bbe3a 100644 --- a/bots-common/request_wiki.go +++ b/bots-common/request_wiki.go @@ -5,6 +5,6 @@ type WikiWebhookEvent struct { Page string Comment string - Repository Repository + Repository *Repository Sender User }