diff --git a/dist/index.js b/dist/index.js index 0b1577a..c40ca13 100644 --- a/dist/index.js +++ b/dist/index.js @@ -19907,7 +19907,7 @@ async function generateBadges(projects) { if (lineCoverage === undefined) { continue; } - const svg = await buildSvg(project.name, config_1.Config.upperCoverageThreshold, config_1.Config.lowerCoverageThreshold, lineCoverage.percentage); + const svg = await buildSvg(`${project.name} Coverage`, config_1.Config.upperCoverageThreshold, config_1.Config.lowerCoverageThreshold, lineCoverage.percentage); const path = project.pubspecFile.split('/').slice(0, -1).join('/'); // write svg to file fs.writeFileSync(`${path}/coverage.svg`, svg); @@ -19917,7 +19917,7 @@ async function generateBadges(projects) { if (totalLineCoverage === undefined) { return; } - const svg = await buildSvg('Test Coverage', config_1.Config.upperCoverageThreshold, config_1.Config.lowerCoverageThreshold, totalLineCoverage.percentage); + const svg = await buildSvg('Monorepo Coverage', config_1.Config.upperCoverageThreshold, config_1.Config.lowerCoverageThreshold, totalLineCoverage.percentage); fs.writeFileSync(`./coverage-total.svg`, svg); } } @@ -20347,6 +20347,7 @@ exports.commitAndPushChanges = commitAndPushChanges; */ async function getChanges() { let changes = ''; + await exec.exec('git', ['add', '.']); await exec.exec('git', ['diff', '--name-only'], { listeners: { stdout: (data) => { diff --git a/src/badge.ts b/src/badge.ts index f0138fc..9987ff5 100644 --- a/src/badge.ts +++ b/src/badge.ts @@ -15,7 +15,7 @@ export async function generateBadges( continue } const svg = await buildSvg( - project.name, + `${project.name} Coverage`, Config.upperCoverageThreshold, Config.lowerCoverageThreshold, lineCoverage.percentage @@ -31,7 +31,7 @@ export async function generateBadges( return } const svg = await buildSvg( - 'Test Coverage', + 'Monorepo Coverage', Config.upperCoverageThreshold, Config.lowerCoverageThreshold, totalLineCoverage.percentage diff --git a/src/git.ts b/src/git.ts index d27e761..9ae7280 100644 --- a/src/git.ts +++ b/src/git.ts @@ -45,6 +45,7 @@ export async function commitAndPushChanges( */ export async function getChanges(): Promise { let changes = '' + await exec.exec('git', ['add', '.']) await exec.exec('git', ['diff', '--name-only'], { listeners: { stdout: (data: Buffer) => {