Monorepo for Tangled
1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.create",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Create a new repository",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "rkey",
14 "name"
15 ],
16 "properties": {
17 "rkey": {
18 "type": "string",
19 "description": "Rkey of the repository record"
20 },
21 "name": {
22 "type": "string",
23 "description": "Name of the repository"
24 },
25 "defaultBranch": {
26 "type": "string",
27 "description": "Default branch to push to"
28 },
29 "source": {
30 "type": "string",
31 "description": "A source URL to clone from, populate this when forking or importing a repository."
32 },
33 "repoDid": {
34 "type": "string",
35 "format": "did",
36 "description": "Optional user-provided did:web to use as the repo identity instead of minting a did:plc."
37 }
38 }
39 }
40 },
41 "output": {
42 "encoding": "application/json",
43 "schema": {
44 "type": "object",
45 "properties": {
46 "repoDid": {
47 "type": "string",
48 "format": "did"
49 }
50 }
51 }
52 }
53 }
54 }
55}