Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 306bd6b

Browse files
authored
Merge pull request #2163 from github/fixes/2162-clone-dialog-on-enterprise
Avoid using GraphQL repositories/ownerAffiliations
2 parents 645db55 + 4895e6c commit 306bd6b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/GitHub.App/Services/RepositoryCloneService.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ public async Task<ViewerRepositoriesModel> ReadViewerRepositories(HostAddress ad
7474
Direction = OrderDirection.Desc
7575
};
7676

77-
var affiliation = new RepositoryAffiliation?[]
78-
{
79-
RepositoryAffiliation.Owner, RepositoryAffiliation.Collaborator
80-
};
81-
8277
var repositorySelection = new Fragment<Repository, RepositoryListItemModel>(
8378
"repository",
8479
repo => new RepositoryListItemModel
@@ -95,7 +90,7 @@ public async Task<ViewerRepositoriesModel> ReadViewerRepositories(HostAddress ad
9590
.Select(viewer => new ViewerRepositoriesModel
9691
{
9792
Owner = viewer.Login,
98-
Repositories = viewer.Repositories(null, null, null, null, affiliation, null, null, order, affiliation, null)
93+
Repositories = viewer.Repositories(null, null, null, null, null, null, null, order, null, null)
9994
.AllPages()
10095
.Select(repositorySelection).ToList(),
10196
ContributedToRepositories = viewer.RepositoriesContributedTo(100, null, null, null, null, null, null, order, null)

0 commit comments

Comments
 (0)