diff --git a/adabot/lib/circuitpython_library_validators.py b/adabot/lib/circuitpython_library_validators.py index 2451b54..8e18631 100644 --- a/adabot/lib/circuitpython_library_validators.py +++ b/adabot/lib/circuitpython_library_validators.py @@ -1141,8 +1141,8 @@ def gather_insights(self, repo, insights, since, show_closed_metric=False): days_open += datetime.timedelta(days=(days_open.days * -1)) if "pull_request" in issue: pull_request = gh_reqs.get( - f"/repos/{repo['full_name']}/pulls/{issue['id']}" - ) + f"/repos/{repo['full_name']}/pulls/{issue['number']}" + ).json() pr_link = "{0} (Open {1} days)".format( issue["pull_request"]["html_url"], days_open.days )