Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/patchbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,15 @@ def test_a_ticket(self, ticket=None):
print "No more tickets."
time.sleep(self.config['idle'])
return

rating, ticket = ticket
if len(ticket['depends_on']) > 0:
for dep_id in ticket['depends_on']:
time.sleep(1)
dep = self.lookup_ticket(dep_id)
if dep['status'] <> 'closed' and dep['status'] <> 'unknown':
print "Ticket has open dependency. Ignoring..."
return

print "\n" * 2
print "=" * 30, ticket['id'], "=" * 30
print ticket['title']
Expand Down