Skip to content

Commit 733d95c

Browse files
committed
add priority as alias of p
1 parent 3c988f9 commit 733d95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bors/command/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ fn parse_priority<'a>(parts: &[CommandPart<'a>]) -> Result<Option<u32>, CommandP
259259
return Err(CommandParseError::UnknownArg(key));
260260
}
261261
CommandPart::KeyValue { key, value } => {
262-
if *key == "p" {
262+
if *key == "p" || *key == "priority" {
263263
return match value.parse::<u32>() {
264264
Ok(p) => Ok(Some(p)),
265265
Err(_) => Err(CommandParseError::ValidationError(

0 commit comments

Comments
 (0)