Skip to content

Commit

Permalink
fix(trends): prevent TS exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Jun 28, 2021
1 parent 7f0b785 commit 59e331b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions report/src/trends/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async function generateTrends(gitPath, latestReport, maxDaysHistory = 30) {
)
// extract summary content for each commit
.map(async ({ commit }) => {
//@ts-expect-error
commit.repo = repo; // for some reason this is not populated by default and prevents `getEntry`
core.info(`Get GIT entry for ${commit.sha()}`);
const treeEntry = await commit.getEntry("report.json");
Expand Down

0 comments on commit 59e331b

Please sign in to comment.