Fix 9 bugs and add 103 tests for core anonymization, config, and routing (#669)

This commit is contained in:
Thomas Durieux
2026-04-15 09:41:00 +02:00
committed by GitHub
parent 261eaa8d79
commit 188066e91d
23 changed files with 2630 additions and 39 deletions
+4 -2
View File
@@ -20,12 +20,12 @@ export async function getPullRequest(
pullRequest.options.expirationMode == "redirect"
) {
res.redirect(
`http://github.com/${pullRequest.source.repositoryFullName}/pull/${pullRequest.source.pullRequestId}`
`https://github.com/${pullRequest.source.repositoryFullName}/pull/${pullRequest.source.pullRequestId}`
);
return null;
}
pullRequest.check();
await pullRequest.check();
}
return pullRequest;
} catch (error) {
@@ -105,6 +105,8 @@ export function handleError(
let errorCode = error;
if (error instanceof Error) {
errorCode = error.message;
} else if (typeof error !== "string") {
errorCode = String(error);
}
let status = 500;
if (error.httpStatus) {