Skip to content

Commit c1cb735

Browse files
feat(update_backlog): add demote and sync verbs
1 parent c5ce0fe commit c1cb735

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

moz-webgpu-cts/src/main.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,22 @@ enum OnZeroItem {
295295
enum UpdateBacklogDirection {
296296
/// Allows promotions from `backlog` to `implementing`.
297297
Promote,
298+
Demote,
299+
Sync,
298300
}
299301

300302
impl UpdateBacklogDirection {
301303
pub fn can_promote(self) -> bool {
302304
match self {
303-
Self::Promote => true,
305+
Self::Promote | Self::Sync => true,
306+
Self::Demote => false,
307+
}
308+
}
309+
310+
pub fn can_demote(self) -> bool {
311+
match self {
312+
Self::Demote | Self::Sync => true,
313+
Self::Promote => false,
304314
}
305315
}
306316
}
@@ -1090,6 +1100,9 @@ fn run(cli: Cli) -> ExitCode {
10901100
Case::PermaPass if direction.can_promote() => {
10911101
Some(ImplementationStatus::Implementing)
10921102
}
1103+
Case::Other if direction.can_demote() => {
1104+
Some(ImplementationStatus::Backlog)
1105+
}
10931106
_ => None,
10941107
}
10951108
}

0 commit comments

Comments
 (0)