(github-badge) render badge for none-exists label

pull/302/head
amio 2019-07-18 21:35:20 +08:00
rodzic 9153c9ce3f
commit f6a73d3c0a
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -335,8 +335,8 @@ async function repoStats ({topic, owner, repo, ...restArgs}: Args) {
case 'label-issues':
return {
subject: `${restArgs.label}`,
status: result.label.issues.totalCount,
color: result.label.color
status: result.label ? result.label.issues.totalCount : 0,
color: result.label ? result.label.color : 'grey'
}
case 'prs':
return {