Skip to content

Commit

Permalink
fix: update search query for open issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BishoyHanyRaafat committed Mar 19, 2024
1 parent cc31193 commit 4a466e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autocommit/git_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_repo_issues(repo_owner:str, repo_name:str) -> List[Optional[Dict[str, st
list: A list of dictionaries of opened issues containing basic information about issues (number,title, body).
Returns None if no issues are found.
"""
params = {'q': f'is:issue repo:{repo_owner}/{repo_name}', 'per_page': '100'}
params = {'q': f'is:issue is:open repo:{repo_owner}/{repo_name}', 'per_page': '100'}
query_string = urlencode(params)
url = f"https://api.github.com/search/issues?{query_string}"

Expand Down

0 comments on commit 4a466e5

Please sign in to comment.