From 4f6e4f4be34b74e4e6f89cd6a30d20539c2b2c56de07479f6ae9a7070bc7a4ac Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Mon, 26 Aug 2024 12:51:58 +0200 Subject: [PATCH] . --- bots-common/request_pr.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bots-common/request_pr.go b/bots-common/request_pr.go index 9f5e0bd..a5feab5 100644 --- a/bots-common/request_pr.go +++ b/bots-common/request_pr.go @@ -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) } -