Skip to content

Commit

Permalink
test(gerrit): fix approvePr coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs committed Dec 1, 2024
1 parent 7877331 commit 1d8daf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modules/platform/gerrit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export async function updatePr(prConfig: UpdatePrConfig): Promise<void> {
);
}
if (prConfig.platformPrOptions?.autoApprove) {
await client.approveChange(prConfig.number);
await approvePr(prConfig.number);
}
if (prConfig.state && prConfig.state === 'closed') {
await client.abandonChange(prConfig.number);
Expand Down Expand Up @@ -196,7 +196,7 @@ export async function createPr(prConfig: CreatePRConfig): Promise<Pr | null> {
TAG_PULL_REQUEST_BODY,
);
if (prConfig.platformPrOptions?.autoApprove) {
await client.approveChange(pr._number);
await approvePr(pr._number);
}
return getPr(pr._number);
}
Expand Down

0 comments on commit 1d8daf5

Please sign in to comment.