Set patch status to merged automatically

When a merge is applied to a patch, we check whether the threshold
of delegates has been reached, at which point we set the patch status
to `merged`.

This requires threading the identity document oid through the "apply"
process.
This commit is contained in:
Alexis Sellier
2023-04-05 10:32:45 +02:00
parent fff45817bc
commit 48105b8b35
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -101,6 +101,7 @@ mod routes {
"open": 1,
"draft": 0,
"archived": 0,
"merged": 0,
},
"issues": {
"open": 1,
+3 -1
View File
@@ -751,6 +751,7 @@ mod routes {
"open": 1,
"draft": 0,
"archived": 0,
"merged": 0,
},
"issues": {
"open": 1,
@@ -781,6 +782,7 @@ mod routes {
"open": 1,
"draft": 0,
"archived": 0,
"merged": 0,
},
"issues": {
"open": 1,
@@ -2267,7 +2269,7 @@ mod routes {
},
"title": "A new `hello world`",
"description": "change `hello world` in README to something else",
"state": { "status": "open" },
"state": { "status": "merged" },
"target": "delegates",
"tags": [],
"revisions": [