Skip to content

Commit

Permalink
Merge pull request #3641 from webcompat/issue/3639/1
Browse files Browse the repository at this point in the history
Fixes #3639 - Add a required parameter to request only issues
  • Loading branch information
karlcow authored Nov 9, 2021
2 parents 333d937 + 60c588e commit e5fe665
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webcompat/api/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def get_search_results(query_string=None, params=None):
query_string += " repo:{0}".format(REPO_PATH)
params['q'] = query_string

# add a required parameter to request only issues and not PRs
params['q'] += ' is:issue'

# convert issues api to search api params here.
params = normalize_api_params(params)
path = 'search/issues'
Expand Down

0 comments on commit e5fe665

Please sign in to comment.