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