Skip to content

Commit

Permalink
WEB-2001 calculate size-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Ladaria committed Aug 29, 2024
1 parent 997eb65 commit ad089b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 279 deletions.
4 changes: 2 additions & 2 deletions .github/actions/utils/github.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const fetchPullRequestComments = async () => {
issue_number: context.issue.number,
});
}
return null;
return {data: []};
};

const findPullRequestComment = async (firstLine) => {
const {data} = await fetchPullRequestComments();
const comment = data.find((comment) => comment.body.startsWith(firstLine));
const comment = data.find((comment) => comment?.body?.startsWith(firstLine));
return comment ? comment.id : null;
};

Expand Down
3 changes: 1 addition & 2 deletions scripts/size-stats/app-test-lib-overhead/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"name": "app-test-lib-overhead",
"private": true,
"scripts": {
"build": "rimraf dist && webpack --mode production"
"build": "rm -rf dist && webpack --mode production"
},
"devDependencies": {
"rimraf": "^6.0.1",
"webpack": "^5.94.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4"
Expand Down
Loading

0 comments on commit ad089b4

Please sign in to comment.