cob: Add patch::Action::EditRevision

To be able to change the description of a patch revision, without the
need to create a new revision.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-03-30 10:42:49 +02:00
committed by Alexis Sellier
parent 8826ec4f9c
commit c809bd5b42
+6
View File
@@ -626,6 +626,12 @@ async fn patch_update_handler(
} => {
patch.edit(title, description, target, &signer)?;
}
patch::Action::EditRevision {
revision,
description,
} => {
patch.edit_revision(revision, description, &signer)?;
}
patch::Action::Tag { add, remove } => {
patch.tag(add, remove, &signer)?;
}