Skip to content

Commit d08a955

Browse files
[dashboard] feat: Add predefined repositories to /new (#19999)
1 parent 7e1020c commit d08a955

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

components/dashboard/src/components/RepositoryFinder.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,20 @@ export default function RepositoryFinder({
207207
isSelectable: true,
208208
}));
209209

210+
// Add predefined repos to end of the list.
211+
PREDEFINED_REPOS.forEach((repo) => {
212+
if (
213+
repo.url.toLowerCase().includes(searchString.toLowerCase()) ||
214+
repo.repoName.toLowerCase().includes(searchString.toLowerCase())
215+
) {
216+
result.push({
217+
id: repo.url,
218+
element: <PredefinedRepositoryOption repo={repo} />,
219+
isSelectable: true,
220+
});
221+
}
222+
});
223+
210224
if (hasMore) {
211225
result.push({
212226
id: "more",

0 commit comments

Comments
 (0)