Skip to content

Commit 5d807eb

Browse files
authored
fix(workers/repository): add missing statuses for disabling a repository (#39808)
As noticed while working on changes in #39793, we were missing a couple of repository results that will lead to a repository being treated as disabled.
1 parent ae46c57 commit 5d807eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/workers/repository/result.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ import {
77
REPOSITORY_ACCESS_FORBIDDEN,
88
REPOSITORY_ARCHIVED,
99
REPOSITORY_BLOCKED,
10+
REPOSITORY_CANNOT_FORK,
1011
REPOSITORY_CLOSED_ONBOARDING,
1112
REPOSITORY_DISABLED,
1213
REPOSITORY_DISABLED_BY_CONFIG,
1314
REPOSITORY_EMPTY,
1415
REPOSITORY_FORKED,
16+
REPOSITORY_FORK_MISSING,
1517
REPOSITORY_FORK_MODE_FORKED,
1618
REPOSITORY_MIRRORED,
1719
REPOSITORY_NOT_FOUND,
@@ -44,10 +46,12 @@ export function processResult(
4446
REPOSITORY_ACCESS_FORBIDDEN,
4547
REPOSITORY_ARCHIVED,
4648
REPOSITORY_BLOCKED,
49+
REPOSITORY_CANNOT_FORK,
4750
REPOSITORY_CLOSED_ONBOARDING,
4851
REPOSITORY_DISABLED,
4952
REPOSITORY_DISABLED_BY_CONFIG,
5053
REPOSITORY_EMPTY,
54+
REPOSITORY_FORK_MISSING,
5155
REPOSITORY_FORK_MODE_FORKED,
5256
REPOSITORY_FORKED,
5357
REPOSITORY_MIRRORED,

0 commit comments

Comments
 (0)