diff --git a/src/bors/command/parser.rs b/src/bors/command/parser.rs index 2d8613e7..469a8369 100644 --- a/src/bors/command/parser.rs +++ b/src/bors/command/parser.rs @@ -290,7 +290,7 @@ fn parser_try(command: &CommandPart<'_>, parts: &[CommandPart<'_>]) -> ParseResu )))); } }, - ("jobs", value) => { + ("job" | "jobs", value) => { let raw_jobs: Vec<_> = value.split(',').map(|s| s.to_string()).collect(); if raw_jobs.is_empty() { return Some(Err(CommandParseError::ValidationError( diff --git a/src/bors/handlers/help.rs b/src/bors/handlers/help.rs index cd97c241..18bf948a 100644 --- a/src/bors/handlers/help.rs +++ b/src/bors/handlers/help.rs @@ -43,7 +43,7 @@ mod tests { - `delegate+`: Delegate approval permissions to the PR author - Shortcut for `delegate=review` - `delegate-`: Remove any previously granted permission delegation - - `try [parent=] [jobs=]`: Start a try build. + - `try [parent=] [job|jobs=]`: Start a try build. - Optionally, you can specify a `` SHA with which will the PR be merged. You can specify `parent=last` to use the same parent SHA as the previous try build. - Optionally, you can select a comma-separated list of CI `` to run in the try build. - `try cancel`: Cancel a running try build diff --git a/src/bors/mod.rs b/src/bors/mod.rs index 30a2dda9..6a99ebbd 100644 --- a/src/bors/mod.rs +++ b/src/bors/mod.rs @@ -90,7 +90,7 @@ You can use the following commands: - `delegate+`: Delegate approval permissions to the PR author - Shortcut for `delegate=review` - `delegate-`: Remove any previously granted permission delegation -- `try [parent=] [jobs=]`: Start a try build. +- `try [parent=] [job|jobs=]`: Start a try build. - Optionally, you can specify a `` SHA with which will the PR be merged. You can specify `parent=last` to use the same parent SHA as the previous try build. - Optionally, you can select a comma-separated list of CI `` to run in the try build. - `try cancel`: Cancel a running try build