kopia lustrzana https://github.com/badgen/badgen.net
Cleanup codes
rodzic
ce61b831b1
commit
b1055a7cd6
|
@ -4,7 +4,7 @@ import genHelp from '../libs/gen-help'
|
|||
|
||||
// Handles `/docs/:name`
|
||||
export default async function (req, res) {
|
||||
const [ , topic, name ] = req.url.split('/')
|
||||
const [ , , name ] = req.url.split('/')
|
||||
const helpMarkdown = genHelp(name)
|
||||
|
||||
if (helpMarkdown) {
|
||||
|
|
|
@ -153,7 +153,7 @@ async function release ({ owner, repo, channel }: Args) {
|
|||
default:
|
||||
return {
|
||||
subject: 'release',
|
||||
status: version(latest ? latest.name || latest.tag_name : null),
|
||||
status: version(latest.name || latest.tag_name),
|
||||
color: latest.prerelease ? 'orange' : 'blue'
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue