Skip to content

Commit

Permalink
only active urls should be considered for list_active_git_urls
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Apr 26, 2024
1 parent 3e29da5 commit 59e8b0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ee/tabby-webserver/src/service/github_repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ impl GithubRepositoryService for GithubRepositoryProviderServiceImpl {

let mut repos = self
.list_repositories(vec![], None, None, None, None)
.await?;
.await?
.into_iter()
.filter(|x| x.active)
.collect();

deduplicate_github_repositories(&mut repos);

Expand Down
5 changes: 4 additions & 1 deletion ee/tabby-webserver/src/service/gitlab_repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ impl GitlabRepositoryService for GitlabRepositoryProviderServiceImpl {

let mut repos = self
.list_repositories(vec![], None, None, None, None)
.await?;
.await?
.into_iter()
.filter(|x| x.active)
.collect();

deduplicate_gitlab_repositories(&mut repos);

Expand Down

0 comments on commit 59e8b0e

Please sign in to comment.