mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 05:56:26 +00:00
test(gerrit): fix approvePr coverage
This commit is contained in:
parent
7877331cf7
commit
1d8daf5095
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ export async function updatePr(prConfig: UpdatePrConfig): Promise<void> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (prConfig.platformPrOptions?.autoApprove) {
|
if (prConfig.platformPrOptions?.autoApprove) {
|
||||||
await client.approveChange(prConfig.number);
|
await approvePr(prConfig.number);
|
||||||
}
|
}
|
||||||
if (prConfig.state && prConfig.state === 'closed') {
|
if (prConfig.state && prConfig.state === 'closed') {
|
||||||
await client.abandonChange(prConfig.number);
|
await client.abandonChange(prConfig.number);
|
||||||
|
@ -196,7 +196,7 @@ export async function createPr(prConfig: CreatePRConfig): Promise<Pr | null> {
|
||||||
TAG_PULL_REQUEST_BODY,
|
TAG_PULL_REQUEST_BODY,
|
||||||
);
|
);
|
||||||
if (prConfig.platformPrOptions?.autoApprove) {
|
if (prConfig.platformPrOptions?.autoApprove) {
|
||||||
await client.approveChange(pr._number);
|
await approvePr(pr._number);
|
||||||
}
|
}
|
||||||
return getPr(pr._number);
|
return getPr(pr._number);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue