Skip to content

Commit

Permalink
#4003: Adding the open flag to show only open PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
eyonland committed Feb 5, 2024
1 parent 7a92717 commit b6c0011
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/github/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ def get_my_pending_reviews(username, github_token):
headers = {"Authorization": f"token {github_token}"}
pending_reviews_urls = []

<<<<<<< HEAD
prs_url = f"https://api.github.com/search/issues?q=is:pr+review-requested:{username}&sort=created&order=desc"
=======
prs_url = (
f"https://api.github.com/search/issues?q=is:pr+is:open+review-requested:{username}&sort=created&order=desc"
)
>>>>>>> #4003: Adding the open flag to show only open PRs
prs_response = requests.get(prs_url, headers=headers)
prs = prs_response.json().get("items", []) if prs_response.status_code == 200 else []

Expand Down

0 comments on commit b6c0011

Please sign in to comment.