Stop deleting review caches on PR close
This commit is contained in:
1 parent
f9c632e6ab
commit
14a30a3695
6 files changed
+5
-89
No files matched your search
@@ -7,7 +7,6 @@ import { withRetry } from "../retry.js";
|
||||
import type { PullRequestFile, PullRequestRef, ReviewDecision, ReviewMode } from "../types.js";
|
||||
import {
|
||||
deleteLocalReviewCache,
|
||||
deleteRemoteReviewCaches,
|
||||
loadPreviousReview,
|
||||
saveReviewCache
|
||||
} from "./cache.js";
|
||||
@@ -306,20 +305,6 @@ export async function processScheduledPendingMerges(
|
||||
}
|
||||
}
|
||||
|
||||
export async function cleanupPullRequestReviewCache(
|
||||
octokit: Octokit,
|
||||
params: {
|
||||
owner: string;
|
||||
repo: string;
|
||||
repositoryId: string;
|
||||
pullNumber: number;
|
||||
}
|
||||
): Promise<void> {
|
||||
await deleteLocalReviewCache(params.pullNumber);
|
||||
const deleted = await deleteRemoteReviewCaches(octokit, params);
|
||||
logger.info({ ...params, deleted }, "Deleted review caches for closed pull request.");
|
||||
}
|
||||
|
||||
export async function shouldReviewPullRequest(
|
||||
octokit: Octokit,
|
||||
params: { owner: string; repo: string; pullNumber: number }
|
||||
|
||||
Reference in new issue
Block a user