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