.
This commit is contained in:
parent
4aa44dbf83
commit
797e6ea8d6
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
|
@ -5,6 +5,6 @@ type WikiWebhookEvent struct {
|
|||||||
Page string
|
Page string
|
||||||
Comment string
|
Comment string
|
||||||
|
|
||||||
Repository Repository
|
Repository *Repository
|
||||||
Sender User
|
Sender User
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user