Browse Source

live-fns: handle exception in github release badge

refactor-github
Amio 6 years ago
parent
commit
7a5f06fcc5
  1. 8
      libs/live-fns/github.js

8
libs/live-fns/github.js

@ -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 {

Loading…
Cancel
Save