skip review
This commit is contained in:
parent
e1e781ed25
commit
01a1d8f0c5
@ -54,6 +54,7 @@ enum ScriptActionParseResult{
|
|||||||
Block,
|
Block,
|
||||||
Exit,
|
Exit,
|
||||||
Delete,
|
Delete,
|
||||||
|
Skip,
|
||||||
}
|
}
|
||||||
struct ParseScriptActionErr;
|
struct ParseScriptActionErr;
|
||||||
impl std::str::FromStr for ScriptActionParseResult{
|
impl std::str::FromStr for ScriptActionParseResult{
|
||||||
@ -64,6 +65,7 @@ impl std::str::FromStr for ScriptActionParseResult{
|
|||||||
"block\n"=>Ok(Self::Block),
|
"block\n"=>Ok(Self::Block),
|
||||||
"exit\n"=>Ok(Self::Exit),
|
"exit\n"=>Ok(Self::Exit),
|
||||||
"delete\n"=>Ok(Self::Delete),
|
"delete\n"=>Ok(Self::Delete),
|
||||||
|
"skip\n"=>Ok(Self::Skip),
|
||||||
_=>Err(ParseScriptActionErr),
|
_=>Err(ParseScriptActionErr),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -170,6 +172,7 @@ async fn review(config:ReviewConfig)->Result<(),ReviewError>{
|
|||||||
ScriptActionParseResult::Block=>submissions_api::types::Policy::Blocked,
|
ScriptActionParseResult::Block=>submissions_api::types::Policy::Blocked,
|
||||||
ScriptActionParseResult::Exit=>break,
|
ScriptActionParseResult::Exit=>break,
|
||||||
ScriptActionParseResult::Delete=>submissions_api::types::Policy::Delete,
|
ScriptActionParseResult::Delete=>submissions_api::types::Policy::Delete,
|
||||||
|
ScriptActionParseResult::Skip=>continue,
|
||||||
};
|
};
|
||||||
|
|
||||||
// update policy
|
// update policy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user