Skip to content

Commit

Permalink
Fix check-future-commits-prs script
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Nov 16, 2023
1 parent 961359f commit 7e3536f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion check-future-commits-prs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
from datetime import datetime

from github import Github
from os.path import expanduser, dirname, abspath, join, exists
from optparse import OptionParser
Expand Down Expand Up @@ -44,7 +46,8 @@
label = [repo.get_label("future-commit")]
cnt = 0
for issue in repo.get_issues(state="open", sort="updated", labels=label):
if not issue.pull_request:
pr = issue.pull_request
if not pr:
continue
last_commit = get_last_commit(pr)
if last_commit is None:
Expand Down

0 comments on commit 7e3536f

Please sign in to comment.