kopia lustrzana https://github.com/badgen/badgen.net
live-fns: (github) add token required hint
rodzic
f67013244d
commit
f27a280e70
|
@ -199,6 +199,10 @@ const makeRepoQuery = (topic, user, repo, ...args) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const repoStats = async (topic, user, repo, ...args) => {
|
const repoStats = async (topic, user, repo, ...args) => {
|
||||||
|
if (!token) {
|
||||||
|
return { status: 'token required' }
|
||||||
|
}
|
||||||
|
|
||||||
const repoQuery = makeRepoQuery(topic, user, repo, ...args)
|
const repoQuery = makeRepoQuery(topic, user, repo, ...args)
|
||||||
const { data } = await queryGithub(repoQuery)
|
const { data } = await queryGithub(repoQuery)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue