Skip to content

Commit e8e423d

Browse files
committed
Fixing the URL used to query repository names ordered by stars.
1 parent 4dc7d8a commit e8e423d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gitxray/xrays/repository_xray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def run(gx_context, gx_output, gh_api):
1515
similar_names = gh_api.search_repositories_by_name(repository.get('name'), limit=10)
1616
if similar_names != None and similar_names.get('total_count') != None and similar_names.get('total_count') > 0:
1717
most_rated = similar_names.get('items')[0]
18-
search_url = f"https://github.com/search?q={repository.get('name')}%20in:name&type=repositories&s=stars&o=desc"
18+
search_url = f"https://github.com/search?q=%22{repository.get('name')}%22%20in:name&type=repositories&s=stars&o=desc"
1919
if most_rated.get('full_name') == repository.get('full_name'):
2020
reponame_msg = f"This is the highest rating repository with name [{repository.get('name')}]"
2121
else:

0 commit comments

Comments
 (0)