kopia lustrzana https://github.com/badgen/badgen.net
live-fns: handle exception in github release badge
rodzic
c5d6eb4239
commit
7a5f06fcc5
|
@ -42,6 +42,14 @@ async function release (user, repo, channel) {
|
|||
const [latest] = logs
|
||||
const stable = logs.find(log => !log.prerelease)
|
||||
|
||||
if (!latest) {
|
||||
return {
|
||||
subject: 'release',
|
||||
status: 'none',
|
||||
color: 'yellow'
|
||||
}
|
||||
}
|
||||
|
||||
switch (channel) {
|
||||
case 'stable':
|
||||
return {
|
||||
|
|
Ładowanie…
Reference in New Issue