diff --git a/src/comment.js b/src/comment.js index 857a1851..f0c68623 100644 --- a/src/comment.js +++ b/src/comment.js @@ -36,7 +36,7 @@ const commentForMonorepo = ( lcovBaseArrayForMonorepo, options, ) => { - const { base } = options; + const { base, folder } = options; const rows = lcovArrayForMonorepo.map((lcovObj) => { const baseLcov = lcovBaseArrayForMonorepo.find( (el) => el.packageName === lcovObj.packageName, @@ -75,7 +75,9 @@ const commentForMonorepo = ( const html = table(tbody(rows.join(""))); - const title = `Coverage after merging into ${b(base)}
`; + const title = `Coverage for the ${b(folder)} folder after merging into ${b( + base, + )} `; return fragment(title, html); }; diff --git a/src/index.js b/src/index.js index f05d6dbb..cb12e56c 100644 --- a/src/index.js +++ b/src/index.js @@ -116,6 +116,7 @@ const main = async () => { head: context.payload.pull_request.head.ref, base: context.payload.pull_request.base.ref, appName, + folder: monorepoBasePath.split("/")[1], }; const lcov = !monorepoBasePath && (await parse(raw));