Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85301f9 commit a0c9967Copy full SHA for a0c9967
milestone-patches.py
@@ -59,7 +59,11 @@ def issue_get_closing_sha(issue):
59
# If the event closing the issue was not a commit, it was closed via PR
60
# and the immediate next event is most likely the commit that closed it
61
if not e.commit_id:
62
- e = next(events)
+ try:
63
+ e = next(events)
64
+ except StopIteration:
65
+ print('Issue {} was closed, but could not find associated PR'.format(issue.number))
66
+ return None
67
if not e.commit_id or not e.commit_url:
68
print('Issue {} was closed but no commit was associated!?'.format(issue.number))
69
return None
0 commit comments