Plugin markdown update (#211)

This commit is contained in:
Simon Lecoq
2021-04-07 14:13:56 +02:00
committed by GitHub
parent f93da199d6
commit a98530dd6b
10 changed files with 87 additions and 30 deletions

View File

@@ -68,7 +68,7 @@
console.debug(`metrics/compute/${login} > markdown render`)
let source = image
try {
let template = q.markdown
let template = `${q.markdown}`.replace(/\n/g, "")
if (!/^https:/.test(template)) {
const {data:{default_branch:branch, full_name:repo}} = await rest.repos.get({owner:login, repo:q.repo||login})
console.debug(`metrics/compute/${login} > on ${repo} with default branch ${branch}`)