Skip to content

Commit

Permalink
feat(repository): extend repository list with configured repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Jan 17, 2025
1 parent 6129191 commit ab5881d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ee/tabby-webserver/src/service/repository/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ impl RepositoryService for RepositoryServiceImpl {
.unwrap_or_default(),
);

repos.extend(
self.config
.iter()
.enumerate()
.map(|(index, repo)|CodeRepository::new(repo.git_url(), &config_index_to_id(index)))
.collect::<Vec<CodeRepository>>()
);

Ok(repos)
}

Expand Down

0 comments on commit ab5881d

Please sign in to comment.