Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85a9103

Browse files
authored
Merge pull request #329 from tekktrik/fix/response-error
Fix adabout error with labelling draft PRs
2 parents 43c5dc5 + 93ce7fa commit 85a9103

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adabot/lib/circuitpython_library_validators.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1141,8 +1141,8 @@ def gather_insights(self, repo, insights, since, show_closed_metric=False):
11411141
days_open += datetime.timedelta(days=(days_open.days * -1))
11421142
if "pull_request" in issue:
11431143
pull_request = gh_reqs.get(
1144-
f"/repos/{repo['full_name']}/pulls/{issue['id']}"
1145-
)
1144+
f"/repos/{repo['full_name']}/pulls/{issue['number']}"
1145+
).json()
11461146
pr_link = "{0} (Open {1} days)".format(
11471147
issue["pull_request"]["html_url"], days_open.days
11481148
)

0 commit comments

Comments
 (0)