Skip to content

Commit 3abf0b0

Browse files
Merge pull request #187 from Nilstrieb/hide-forbidden-knowledge
Remove `squash` from command list
2 parents 5f77352 + 9c26f56 commit 3abf0b0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

homu/html/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ <h3>Commands</h3>
6666
<li><code>rollup</code>: Mark the PR as likely to merge without issue, short for <code>rollup=always</code></li>
6767
<li><code>rollup-</code>: Unmark the PR as <code>rollup</code>.</li>
6868
<li><code>rollup=maybe|always|iffy|never</code>: Mark the PR as "always", "maybe", "iffy", and "never" rollup-able.</li>
69-
<li><code>squash</code>: Squash all commits into one just before performing the merge.</li>
70-
<li><code>squash-</code>: Do not squash commits before merging.</li>
7169
<li><code>retry</code>: Signal that the PR is not bad, and should be retried by buildbot.</li>
7270
<li><code>try</code>: Request that the PR be tested by buildbot, without accepting it.</li>
7371
<li><code>force</code>: Stop all the builds on the configured builders, and proceed to the next PR.</li>

homu/parse_issue_comment.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,14 @@ def parse_issue_comment(username, body, sha, botname, hooks=[]):
236236
commands.append(IssueCommentCommand.rollup(rollup_value))
237237

238238
elif word == 'squash':
239-
commands.append(IssueCommentCommand.squash())
239+
# Squash is broken, prevent its usage.
240+
# commands.append(IssueCommentCommand.squash())
241+
pass
240242

241243
elif word == 'squash-':
242-
commands.append(IssueCommentCommand.unsquash())
244+
# Squash is broken, prevent its usage.
245+
# commands.append(IssueCommentCommand.unsquash())
246+
pass
243247

244248
elif word == 'force':
245249
commands.append(IssueCommentCommand.force())

0 commit comments

Comments
 (0)