Skip to content

Commit

Permalink
feat: 如果baseCommitSha不存在或者值为-,baseCommitSha设置成commitSha
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Oct 18, 2023
1 parent 3af033b commit a1cd4ad
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ export class CoverageClientService {
coverageClientDto.reportId = coverageClientDto.commitSha;
}

if (
!coverageClientDto.baseCommitSha ||
coverageClientDto.baseCommitSha === '-'
) {
coverageClientDto.baseCommitSha = coverageClientDto.commitSha;
}

const currentUserObj = await this.prisma.user.findFirst({
where: {
id: currentUser,
Expand Down

0 comments on commit a1cd4ad

Please sign in to comment.