Skip to content

Commit 3af6aca

Browse files
Add job=... alias for jobs=...
1 parent dceadf0 commit 3af6aca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/bors/command/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ fn parser_try(command: &CommandPart<'_>, parts: &[CommandPart<'_>]) -> ParseResu
290290
))));
291291
}
292292
},
293-
("jobs", value) => {
293+
("job" | "jobs", value) => {
294294
let raw_jobs: Vec<_> = value.split(',').map(|s| s.to_string()).collect();
295295
if raw_jobs.is_empty() {
296296
return Some(Err(CommandParseError::ValidationError(

src/bors/handlers/help.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ mod tests {
4343
- `delegate+`: Delegate approval permissions to the PR author
4444
- Shortcut for `delegate=review`
4545
- `delegate-`: Remove any previously granted permission delegation
46-
- `try [parent=<parent>] [jobs=<jobs>]`: Start a try build.
46+
- `try [parent=<parent>] [job|jobs=<jobs>]`: Start a try build.
4747
- Optionally, you can specify a `<parent>` SHA with which will the PR be merged. You can specify `parent=last` to use the same parent SHA as the previous try build.
4848
- Optionally, you can select a comma-separated list of CI `<jobs>` to run in the try build.
4949
- `try cancel`: Cancel a running try build

src/bors/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ You can use the following commands:
9090
- `delegate+`: Delegate approval permissions to the PR author
9191
- Shortcut for `delegate=review`
9292
- `delegate-`: Remove any previously granted permission delegation
93-
- `try [parent=<parent>] [jobs=<jobs>]`: Start a try build.
93+
- `try [parent=<parent>] [job|jobs=<jobs>]`: Start a try build.
9494
- Optionally, you can specify a `<parent>` SHA with which will the PR be merged. You can specify `parent=last` to use the same parent SHA as the previous try build.
9595
- Optionally, you can select a comma-separated list of CI `<jobs>` to run in the try build.
9696
- `try cancel`: Cancel a running try build

0 commit comments

Comments
 (0)