Fetch all issue labels

Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
This commit is contained in:
Abhilash Gnan 2020-10-28 19:45:21 +01:00
parent e093d23521
commit 9e03d01bdf
2 changed files with 2 additions and 6 deletions

View file

@ -78,7 +78,7 @@ const fragments = `
url url
state state
updatedAt updatedAt
labels(first: 3) { labels(first: 100) {
nodes { nodes {
name name
} }

View file

@ -57,9 +57,5 @@ func IssueLabelList(issue api.Issue) string {
labelNames = append(labelNames, label.Name) labelNames = append(labelNames, label.Name)
} }
list := strings.Join(labelNames, ", ") return strings.Join(labelNames, ", ")
if issue.Labels.TotalCount > len(issue.Labels.Nodes) {
list += ", …"
}
return list
} }