amio 5 years ago
parent
commit
c5867b91f7
  1. 5
      endpoints/github.ts

5
endpoints/github.ts

@ -377,10 +377,11 @@ async function repoStats ({topic, owner, repo, ...restArgs}: Args) {
color: 'blue'
}
case 'license':
const li = result.licenseInfo
return {
subject: topic,
status: result.licenseInfo.spdxId,
color: 'blue'
status: li ? li.spdxId : 'no license',
color: li ? 'blue' : 'grey'
}
case 'last-commit':
const commits = result.branch.target.history.nodes

Loading…
Cancel
Save