Skip to content

Commit fc92de9

Browse files
committed
fix: convert search iterator results to list of short repositories to match other repo iterators
Signed-off-by: Zack Koppert <[email protected]>
1 parent fed4054 commit fc92de9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

evergreen.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,11 @@ def get_repos_iterator(
349349
# Use GitHub search API if REPOSITORY_SEARCH_QUERY is set
350350
if search_query:
351351
# Return repositories matching the search query
352-
return github_connection.search_repositories(search_query)
352+
repos = []
353+
# Search results need to be converted to a list of repositories since they are returned as a search iterator
354+
for repo in github_connection.search_repositories(search_query):
355+
repos.append(repo.repository)
356+
return repos
353357

354358
repos = []
355359
# Default behavior: list all organization/team repositories or specific repository list

0 commit comments

Comments
 (0)