Skip to content

Commit

Permalink
run
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Oct 17, 2024
1 parent c0a2d33 commit 8cd129e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/check_bad_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ def get_commit_info(commit):

url = f"https://api.github.com/repos/huggingface/transformers/commits/{commit}/pulls"
pr_info_for_commit = requests.get(url).json()
print(pr_info_for_commit)

if len(pr_info_for_commit) > 0:
print(pr_info_for_commit)
pr_number = pr_info_for_commit[0]["number"]

url = f"https://api.github.com/repos/huggingface/transformers/pulls/{pr_number}"
Expand Down

0 comments on commit 8cd129e

Please sign in to comment.