Bläddra i källkod

Support @rustbot review (#1615)

This is a nice alias for @rustbot ready and can flow off memory slightly more
smoothly.
Mark Rousskov 2 år sedan
förälder
incheckning
9dca721fb4
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      parser/src/command/shortcut.rs

+ 2 - 1
parser/src/command/shortcut.rs

@@ -5,7 +5,7 @@
 //! The grammar is as follows:
 //!
 //! ```text
-//! Command: `@bot ready`, or `@bot author`.
+//! Command: `@bot ready`/`@bot review`, or `@bot author`.
 //! ```
 
 use crate::error::Error;
@@ -39,6 +39,7 @@ impl ShortcutCommand {
     pub fn parse<'a>(input: &mut Tokenizer<'a>) -> Result<Option<Self>, Error<'a>> {
         let mut shortcuts = HashMap::new();
         shortcuts.insert("ready", ShortcutCommand::Ready);
+        shortcuts.insert("review", ShortcutCommand::Ready);
         shortcuts.insert("author", ShortcutCommand::Author);
         shortcuts.insert("blocked", ShortcutCommand::Blocked);