File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -295,12 +295,22 @@ enum OnZeroItem {
295295enum UpdateBacklogDirection {
296296 /// Allows promotions from `backlog` to `implementing`.
297297 Promote ,
298+ Demote ,
299+ Sync ,
298300}
299301
300302impl 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 }
You can’t perform that action at this time.
0 commit comments