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
|
||||
state
|
||||
updatedAt
|
||||
labels(first: 3) {
|
||||
labels(first: 100) {
|
||||
nodes {
|
||||
name
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,9 +57,5 @@ func IssueLabelList(issue api.Issue) string {
|
|||
labelNames = append(labelNames, label.Name)
|
||||
}
|
||||
|
||||
list := strings.Join(labelNames, ", ")
|
||||
if issue.Labels.TotalCount > len(issue.Labels.Nodes) {
|
||||
list += ", …"
|
||||
}
|
||||
return list
|
||||
return strings.Join(labelNames, ", ")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue