Skip to content

Commit 9dca721

Browse files
Support @rustbot review (#1615)
This is a nice alias for @rustbot ready and can flow off memory slightly more smoothly.
1 parent d7ae8c1 commit 9dca721

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parser/src/command/shortcut.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! The grammar is as follows:
66
//!
77
//! ```text
8-
//! Command: `@bot ready`, or `@bot author`.
8+
//! Command: `@bot ready`/`@bot review`, or `@bot author`.
99
//! ```
1010
1111
use crate::error::Error;
@@ -39,6 +39,7 @@ impl ShortcutCommand {
3939
pub fn parse<'a>(input: &mut Tokenizer<'a>) -> Result<Option<Self>, Error<'a>> {
4040
let mut shortcuts = HashMap::new();
4141
shortcuts.insert("ready", ShortcutCommand::Ready);
42+
shortcuts.insert("review", ShortcutCommand::Ready);
4243
shortcuts.insert("author", ShortcutCommand::Author);
4344
shortcuts.insert("blocked", ShortcutCommand::Blocked);
4445

0 commit comments

Comments
 (0)