This commit is contained in:
Adam Majer 2024-08-26 12:51:58 +02:00
parent 01920900dd
commit 4f6e4f4be3

View File

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