.
This commit is contained in:
parent
01920900dd
commit
4f6e4f4be3
@ -12,6 +12,16 @@ type Head struct {
|
||||
Sha string
|
||||
}
|
||||
|
||||
type IssueLabelDetail struct {
|
||||
Id int
|
||||
Name string
|
||||
Exclusive bool
|
||||
Is_archived bool
|
||||
Color string
|
||||
Description string
|
||||
Url string
|
||||
}
|
||||
|
||||
type PullRequest struct {
|
||||
Id int
|
||||
Url string
|
||||
@ -19,7 +29,7 @@ type PullRequest struct {
|
||||
State string
|
||||
|
||||
Base Head
|
||||
Labels []string
|
||||
Labels []IssueLabelDetail
|
||||
Head Head
|
||||
|
||||
User User
|
||||
@ -63,4 +73,3 @@ func (h *RequestHandler) parsePullRequest(data io.Reader) *PullRequestWebhookEve
|
||||
func (h *RequestHandler) parsePullRequestSync(data io.Reader) *PullRequestWebhookEvent {
|
||||
return h.parsePullRequest(data)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user