diff --git a/homu/parse_issue_comment.py b/homu/parse_issue_comment.py index 27be202..c051062 100644 --- a/homu/parse_issue_comment.py +++ b/homu/parse_issue_comment.py @@ -225,13 +225,13 @@ def parse_issue_comment(username, body, sha, botname, hooks=[]): elif word == 'retry': commands.append(IssueCommentCommand.retry()) - elif word == 'try': - commands.append(IssueCommentCommand.try_()) + # elif word == 'try': + # commands.append(IssueCommentCommand.try_()) - elif word == 'try-': + # elif word == 'try-': # Try- is broken, prevent its usage. # commands.append(IssueCommentCommand.untry()) - pass + # pass elif word in WORDS_TO_ROLLUP: rollup_value = WORDS_TO_ROLLUP[word] diff --git a/homu/tests/test_parse_issue_comment.py b/homu/tests/test_parse_issue_comment.py index 33ac166..41516af 100644 --- a/homu/tests/test_parse_issue_comment.py +++ b/homu/tests/test_parse_issue_comment.py @@ -257,18 +257,18 @@ def test_retry(): assert command.action == 'retry' -def test_try(): - """ - @bors try - """ - - author = "jack" - body = "@bors try" - commands = parse_issue_comment(author, body, commit, "bors") - - assert len(commands) == 1 - command = commands[0] - assert command.action == 'try' +# def test_try(): +# """ +# @bors try +# """ +# +# author = "jack" +# body = "@bors try" +# commands = parse_issue_comment(author, body, commit, "bors") +# +# assert len(commands) == 1 +# command = commands[0] +# assert command.action == 'try' def test_try_minus(): diff --git a/setup.py b/setup.py index 74c16f7..8dc97ca 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ ], tests_require=[ 'pytest<8', + 'typing_extensions<4.14' ], package_data={ 'homu': [