This commit is contained in:
Adam Majer 2024-08-27 12:15:59 +02:00
parent 4aa44dbf83
commit 797e6ea8d6
4 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
package common package common
type ForkWebhookEvent struct { type ForkWebhookEvent struct {
Forkee Repository Forkee *Repository
Repository Repository *Repository
Sender User Sender *User
} }

View File

@ -8,7 +8,7 @@ import (
type Head struct { type Head struct {
Ref string Ref string
Repo Repository Repo *Repository
Sha string Sha string
} }
@ -40,8 +40,8 @@ type PullRequestWebhookEvent struct {
Action string Action string
Number int Number int
Pull_Request PullRequest Pull_Request *PullRequest
Repository Repository Repository *Repository
Requested_reviewer *User Requested_reviewer *User
Sender User Sender User
} }

View File

@ -18,7 +18,7 @@ type PushRequest struct {
Pusher User Pusher User
Sender User Sender User
Repository Repository Repository *Repository
} }
func (h *RequestHandler) parsePushRequest(data io.Reader) *PushRequest { func (h *RequestHandler) parsePushRequest(data io.Reader) *PushRequest {

View File

@ -5,6 +5,6 @@ type WikiWebhookEvent struct {
Page string Page string
Comment string Comment string
Repository Repository Repository *Repository
Sender User Sender User
} }