Skip to content

Commit

Permalink
fix: badge generation and messages (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
timcreatedit authored May 27, 2024
2 parents a971914 + 863ce20 commit 8ed1022
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function generateBadges(
continue
}
const svg = await buildSvg(
project.name,
`${project.name} Coverage`,
Config.upperCoverageThreshold,
Config.lowerCoverageThreshold,
lineCoverage.percentage
Expand All @@ -31,7 +31,7 @@ export async function generateBadges(
return
}
const svg = await buildSvg(
'Test Coverage',
'Monorepo Coverage',
Config.upperCoverageThreshold,
Config.lowerCoverageThreshold,
totalLineCoverage.percentage
Expand Down
1 change: 1 addition & 0 deletions src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export async function commitAndPushChanges(
*/
export async function getChanges(): Promise<string> {
let changes = ''
await exec.exec('git', ['add', '.'])
await exec.exec('git', ['diff', '--name-only'], {
listeners: {
stdout: (data: Buffer) => {
Expand Down

0 comments on commit 8ed1022

Please sign in to comment.