kopia lustrzana https://github.com/badgen/badgen.net
rodzic
55b5a3cb59
commit
d155bd63a6
|
@ -20,8 +20,8 @@ async function handler ({ user, repo, branch = 'master' }: PathArgs) {
|
||||||
got(org).text()
|
got(org).text()
|
||||||
])
|
])
|
||||||
|
|
||||||
const result = statuses.find(st => {
|
const result = statuses.find(([status]) => {
|
||||||
return (svg1 && svg1.includes(st[0])) || (svg2 && svg2.includes(st[0]))
|
return svg1?.includes(status) || svg2?.includes(status)
|
||||||
})
|
})
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
Ładowanie…
Reference in New Issue