Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions homu/parse_issue_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
24 changes: 12 additions & 12 deletions homu/tests/test_parse_issue_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
],
tests_require=[
'pytest<8',
'typing_extensions<4.14'
],
package_data={
'homu': [
Expand Down