Skip to content

Commit

Permalink
Couple bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmurray-codecov committed Dec 5, 2024
1 parent 863eecc commit 19e3606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/content/github/file/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async function main(): Promise<void> {
return;
}
globals.coverageButton = createCoverageButton();
process(urlMetadata);
await process(urlMetadata);
} catch (e) {
Sentry.captureException(e);
throw e;
Expand Down
7 changes: 6 additions & 1 deletion src/content/github/pr/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ async function execute() {
createContainer();

const coverageReport = await getPRReport(urlMetadata);
if (!coverageReport.files) {
if (
!coverageReport.files ||
!coverageReport.totals.base.coverage ||
!coverageReport.totals.head.coverage ||
!coverageReport.totals.patch.coverage
) {
showError();
return;
}
Expand Down

0 comments on commit 19e3606

Please sign in to comment.