Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianc committed May 14, 2024
1 parent 339519f commit 7aaa59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const updateCodeCoverageComment = module.exports = async ({ context, github, pat
const coverageText = fs.readFileSync(`go-cover/${revision}.txt`, 'utf8').split('\n').slice(0, -1)
const coverageTextSummary = coverageText[coverageText.length-1].split('\t').pop()
const coverage = parseFloat(coverageTextSummary.replace('%', ''), 10)
const coverageEmoji = coverage >= threshold ? '' : `<kbd>🔻 ${(coverage - threshold).toFixed(1)}%</kbd>`
const coverageEmoji = coverage >= threshold ? '' : `<kbd>🔻 ${(coverage - threshold).toFixed(1)}%</kbd> `
const pathText = (path !== './' ? ` for <kbd>${path}/</kbd>` : '').replace('//', '/')

const commentBody = [
Expand Down

0 comments on commit 7aaa59b

Please sign in to comment.