fix: archive ownerless repositories without assigning ownership (#800)

This commit is contained in:
Thomas Durieux authored and GitHub committed 2026-09-08 14:03:09 +02:00
1 parent 8de4a536cc
commit 530e388e46
13 files changed
+364 -53

No files matched your search

+1
View File
@@ -274,6 +274,7 @@ export async function checkToken(token: string) {
const checkedRepositoryTokens = new WeakMap<Repository, string>();
export async function getToken(repository: Repository) {
repository.assertNotArchived();
logger.debug("getToken", { repoId: repository.repoId });
const credential = await getCredential(repository.owner.id);
const ownerAccessToken = credential?.token;