Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Jul 5, 2024
1 parent b0c0b00 commit d7ada1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export class GetProjectChartDataService {
.map((item) => {
return {
sha: item.sha,
statements: item.summary['statements']['pct'] || 100,
newlines: item.summary['newlines']['pct'] || 100,
statements: item.summary['statements']['pct'],
newlines: item.summary['newlines']['pct'],
};
})
.reverse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ export class GetProjectRecordsService {
webUrl: commits.find(({ id }) => id === coverage.sha)?.web_url || '???',
message:
commits.find(({ id }) => id === coverage.sha)?.message || '???',
newlines: coverage.summary['newlines']['pct'] || 100,
statements: coverage.summary['statements']['pct'] || 100,
functions: coverage.summary['functions']['pct'] || 100,
branches: coverage.summary['branches']['pct'] || 100,
lines: coverage.summary['lines']['pct'] || 100,
newlines: coverage.summary['newlines']['pct'],
statements: coverage.summary['statements']['pct'],
functions: coverage.summary['functions']['pct'],
branches: coverage.summary['branches']['pct'],
lines: coverage.summary['lines']['pct'],
lastReportTime: cs[0]?.updatedAt || coverage.createdAt, //没有agg类型的时候就用all的创建时间
times: cs.length,
logs: [],
Expand Down

0 comments on commit d7ada1c

Please sign in to comment.