Skip to content

Commit

Permalink
Merge pull request #188 from Nilstrieb/remove-more-forbidden-knowledge
Browse files Browse the repository at this point in the history
Prevent `@bors try-` from being used
  • Loading branch information
pietroalbini authored Jan 5, 2023
2 parents 3abf0b0 + 567e557 commit c8f51b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion homu/parse_issue_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ def parse_issue_comment(username, body, sha, botname, hooks=[]):
commands.append(IssueCommentCommand.try_())

elif word == 'try-':
commands.append(IssueCommentCommand.untry())
# Try- is broken, prevent its usage.
# commands.append(IssueCommentCommand.untry())
pass

elif word in WORDS_TO_ROLLUP:
rollup_value = WORDS_TO_ROLLUP[word]
Expand Down
4 changes: 1 addition & 3 deletions homu/tests/test_parse_issue_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,7 @@ def test_try_minus():
body = "@bors try-"
commands = parse_issue_comment(author, body, commit, "bors")

assert len(commands) == 1
command = commands[0]
assert command.action == 'untry'
assert len(commands) == 0


def test_rollup():
Expand Down

0 comments on commit c8f51b8

Please sign in to comment.