Skip to content

Commit

Permalink
fix: no special magic for monorepo path
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Feb 20, 2023
1 parent be00e45 commit 31a6c89
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export async function generateReport(
// prefix: `${process.env.GITHUB_WORKSPACE}/`,
// head: context.payload.pull_request?.head.ref,
base,
folder: monorepoBasePath.split("/")[1],
folder: monorepoBasePath,
};

await upsertComment(
Expand All @@ -257,9 +257,7 @@ export async function generateReport(
lcovBaseArrayForMonorepo,
options,
),
`<!-- monorepo-code-coverage-assistant--${
monorepoBasePath.split("/")[1]
} -->`,
`<!-- monorepo-code-coverage-assistant--${monorepoBasePath} -->`,
);

return lcovArrayForMonorepo.length;
Expand Down

0 comments on commit 31a6c89

Please sign in to comment.