Plugin markdown update (#211)

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

No files matched your search

+1 -1
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}`)