Skip to content

Commit 0c117fe

Browse files
committed
Always try when receiving a try command
When receiving a `try` command, always try the current commit, regardless of whether this pull request has been tried previously. Before this commit, we need to issue @bors retry try to kick off a try build after one has already run. Fixes #34
1 parent 0c36bc4 commit 0c117fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

homu/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,10 @@ def parse_commands(body, username, repo_label, repo_cfg, state, my_username,
672672

673673
state.save()
674674
if realtime and state.try_:
675+
# If we've tried before, the status will be 'success', and this
676+
# new try will not be picked up. Set the status back to ''
677+
# so the try will be run again.
678+
state.set_status('')
675679
# `try-` just resets the `try` bit and doesn't correspond to
676680
# any meaningful labeling events.
677681
state.change_labels(LabelEvent.TRY)

0 commit comments

Comments
 (0)