1{
2 "lexicon": 1,
3 "id": "sh.tangled.git.keepCommit",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "input": {
8 "encoding": "application/json",
9 "schema": {
10 "type": "object",
11 "required": ["repo", "ref"],
12 "properties": {
13 "repo": {
14 "type": "string",
15 "format": "at-uri",
16 "description": "AT-URI of the repository"
17 },
18 "ref": {
19 "type": "string",
20 "description": "ref to keep"
21 }
22 }
23 }
24 },
25 "output": {
26 "encoding": "application/json",
27 "schema": {
28 "type": "object",
29 "required": ["commitId"],
30 "properties": {
31 "commitId": {
32 "type": "string",
33 "description": "Keeped commit hash"
34 }
35 }
36 }
37 },
38 "errors": [
39 {
40 "name": "InternalServerError",
41 "description": "Failed to keep commit"
42 }
43 ]
44 }
45 }
46}