Fetch all issue labels
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
This commit is contained in:
parent
e093d23521
commit
9e03d01bdf
2 changed files with 2 additions and 6 deletions
|
|
@ -78,7 +78,7 @@ const fragments = `
|
||||||
url
|
url
|
||||||
state
|
state
|
||||||
updatedAt
|
updatedAt
|
||||||
labels(first: 3) {
|
labels(first: 100) {
|
||||||
nodes {
|
nodes {
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue