Skip to content

Commit 4d48344

Browse files
authored
Merge pull request #236 from Kobzol/disable-try-builds
Disable try builds
2 parents e3fbfe2 + e1525d3 commit 4d48344

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

homu/parse_issue_comment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,13 @@ def parse_issue_comment(username, body, sha, botname, hooks=[]):
225225
elif word == 'retry':
226226
commands.append(IssueCommentCommand.retry())
227227

228-
elif word == 'try':
229-
commands.append(IssueCommentCommand.try_())
228+
# elif word == 'try':
229+
# commands.append(IssueCommentCommand.try_())
230230

231-
elif word == 'try-':
231+
# elif word == 'try-':
232232
# Try- is broken, prevent its usage.
233233
# commands.append(IssueCommentCommand.untry())
234-
pass
234+
# pass
235235

236236
elif word in WORDS_TO_ROLLUP:
237237
rollup_value = WORDS_TO_ROLLUP[word]

homu/tests/test_parse_issue_comment.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,18 @@ def test_retry():
257257
assert command.action == 'retry'
258258

259259

260-
def test_try():
261-
"""
262-
@bors try
263-
"""
264-
265-
author = "jack"
266-
body = "@bors try"
267-
commands = parse_issue_comment(author, body, commit, "bors")
268-
269-
assert len(commands) == 1
270-
command = commands[0]
271-
assert command.action == 'try'
260+
# def test_try():
261+
# """
262+
# @bors try
263+
# """
264+
#
265+
# author = "jack"
266+
# body = "@bors try"
267+
# commands = parse_issue_comment(author, body, commit, "bors")
268+
#
269+
# assert len(commands) == 1
270+
# command = commands[0]
271+
# assert command.action == 'try'
272272

273273

274274
def test_try_minus():

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
],
2525
tests_require=[
2626
'pytest<8',
27+
'typing_extensions<4.14'
2728
],
2829
package_data={
2930
'homu': [

0 commit comments

Comments
 (0)