Order the issues the DM tries by sorting, and pin the window's no-DM line
This commit is contained in:
@@ -52,9 +52,9 @@ def awaited(task: EpicIssue, epic: str, store: EpicStore, window: tmux.Window, p
|
||||
elif not told:
|
||||
text = message(task, epic, held)
|
||||
say(text, effects, stdout=True)
|
||||
# The issues it holds up come first; any other open issue of the epic may do where they have no repo with a notifier.
|
||||
where = notifier_checkout([*(issue for issue in issues if issue.key in held), *(issue for issue in issues if issue.key not in held and not issue.done)], home)
|
||||
# The issues it holds up come first; any other issue of the epic may do where they have no repo with a notifier.
|
||||
where = notifier_checkout(sorted(issues, key=lambda issue: issue.key not in held), home)
|
||||
if where is None:
|
||||
say("no DM went out: no open issue of the epic has a repo whose project config names a notifier and whose checkout exists", effects, stdout=True)
|
||||
say("no DM went out: no issue of the epic has a repo whose project config names a notifier and whose checkout exists", effects, stdout=True)
|
||||
told = where is None or tell(text, effects, where)
|
||||
effects.sleep(poll)
|
||||
|
||||
Reference in New Issue
Block a user