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
type ForkWebhookEvent struct {
Forkee Repository
Repository
Sender User
Forkee *Repository
Repository *Repository
Sender *User
}

View File

@ -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
}

View File

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

View File

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