diff --git a/lib/modules/platform/gerrit/index.ts b/lib/modules/platform/gerrit/index.ts index 0d3989e148..a3246f5da3 100644 --- a/lib/modules/platform/gerrit/index.ts +++ b/lib/modules/platform/gerrit/index.ts @@ -161,7 +161,7 @@ export async function updatePr(prConfig: UpdatePrConfig): Promise { ); } if (prConfig.platformPrOptions?.autoApprove) { - await client.approveChange(prConfig.number); + await approvePr(prConfig.number); } if (prConfig.state && prConfig.state === 'closed') { await client.abandonChange(prConfig.number); @@ -196,7 +196,7 @@ export async function createPr(prConfig: CreatePRConfig): Promise { TAG_PULL_REQUEST_BODY, ); if (prConfig.platformPrOptions?.autoApprove) { - await client.approveChange(pr._number); + await approvePr(pr._number); } return getPr(pr._number); }