kopia lustrzana https://github.com/badgen/badgen.net
fix(codacy): stop preprocessing branch name
Documentation doesn't say anything about branch name preprocessing and shields doesn't do it either: https://github.com/badges/shields/blob/d3a7afd/services/codacy/codacy-coverage.service.js#L59pull/465/head
rodzic
a91d673970
commit
cc63816816
|
@ -36,7 +36,7 @@ const SUBJECT_BY_TYPE = {
|
|||
|
||||
async function handler ({ type, projectId, branch }: PathArgs) {
|
||||
const searchParams = new URLSearchParams()
|
||||
if (branch) searchParams.append('branch', branch.replace(/-/g, '--'))
|
||||
if (branch) searchParams.append('branch', branch)
|
||||
const endpoint = `project/badge/${type}/${projectId}`
|
||||
const svg = await client.get(endpoint, { searchParams }).text()
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue