From ebf16fa07513a6779ec76ca00d181c8b03e6c11e Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw)" <3293172751nss@gmail.com> Date: Sat, 3 Jun 2023 21:57:14 +0800 Subject: [PATCH] feat(main): initializing labels Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> --- README.md | 2 +- README_zh-CN.md | 2 +- pkg/exporter/label.go | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5da4924..fb187e9 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

A+ -good first +good first diff --git a/README_zh-CN.md b/README_zh-CN.md index dd9f45c..321f26f 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -10,7 +10,7 @@

A+ -good first +good first diff --git a/pkg/exporter/label.go b/pkg/exporter/label.go index 6e7a081..26a7ca6 100644 --- a/pkg/exporter/label.go +++ b/pkg/exporter/label.go @@ -25,6 +25,7 @@ URL: https://api.github.com/repos/Kubernetes/Kubernetes/labels?page=1&sort=nam "description": "Categorizes an issue or PR as actively needing an API review." }, */ + type Label struct { // The name of the label. Name string `json:"name"` @@ -61,6 +62,10 @@ func (c *githubClient) ListLabels(ctx context.Context, owner, repo string) ([]*L Name: l.GetName(), Description: l.GetDescription(), Color: l.GetColor(), + Default: l.GetDefault(), + ID: l.GetID(), + NodeID: l.GetNodeID(), + URL: l.GetURL(), }) } if resp.NextPage == 0 {