Skip to content

Commit da75362

Browse files
authored
Merge pull request #36 from bryanburgers/always-try
Always try when receiving a `try` command
2 parents 135f191 + 0c117fe commit da75362

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

homu/main.py

+4
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,10 @@ def parse_commands(body, username, repo_label, repo_cfg, state, my_username,
665665

666666
state.save()
667667
if realtime and state.try_:
668+
# If we've tried before, the status will be 'success', and this
669+
# new try will not be picked up. Set the status back to ''
670+
# so the try will be run again.
671+
state.set_status('')
668672
# `try-` just resets the `try` bit and doesn't correspond to
669673
# any meaningful labeling events.
670674
state.change_labels(LabelEvent.TRY)

0 commit comments

Comments
 (0)