Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Make Patch `state` field similar to Issue
Alexis Sellier committed 3 years ago
commit 7266729924c6ea2e4ca756b4054cc413711304c1
parent f7aac06a8fc449975ff4c74c33f1d349e9961684
2 files changed +4 -4
modified radicle-httpd/src/api/v1/projects.rs
@@ -1351,7 +1351,7 @@ mod routes {
                },
                "title": "A new `hello word`",
                "description": "change `hello world` in README to something else",
-
                "state": "proposed",
+
                "state": { "status": "proposed" },
                "target": "delegates",
                "tags": [],
                "revisions": [
@@ -1382,7 +1382,7 @@ mod routes {
                },
                "title": "A new `hello word`",
                "description": "change `hello world` in README to something else",
-
                "state": "proposed",
+
                "state": { "status": "proposed" },
                "target": "delegates",
                "tags": [],
                "revisions": [
@@ -1452,7 +1452,7 @@ mod routes {
                },
                "title": "Update README",
                "description": "Do some changes to README",
-
                "state": "proposed",
+
                "state": { "status": "proposed" },
                "target": "delegates",
                "tags": [],
                "revisions": [
modified radicle/src/cob/patch.rs
@@ -399,7 +399,7 @@ impl Revision {
}

#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
-
#[serde(rename_all = "camelCase")]
+
#[serde(rename_all = "camelCase", tag = "status")]
pub enum State {
    #[default]
    Proposed,