Skip to content

Commit

Permalink
Do not allow bors try after it has been bors r+'ed. Fix #3.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed May 31, 2018
1 parent 9ca78fc commit 35cfa28
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions homu/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,14 @@ def parse_commands(body, username, repo_cfg, state, my_username, db, states,
elif word in ['try', 'try-'] and realtime:
if not _try_auth_verified():
continue
if state.status == '' and state.approved_by:
state.add_comment(
':no_good: '
'Please do not `try` after a pull request has been `r+`ed.'
' If you need to `try`, unapprove (`r-`) it first.'
)
continue

state.try_ = word == 'try'

state.merge_sha = ''
Expand Down

0 comments on commit 35cfa28

Please sign in to comment.