lexicons: pulls: pull rounds out into their own records #406

open
opened by nel.pet targeting master from nel.pet/core: push-kyupnpkvqmsy
Changed files
+96 -50
lexicons
-50
lexicons/pulls/pull.json
···
"required": [
"target",
"title",
-
"patch",
"createdAt"
],
"properties": {
···
"body": {
"type": "string"
},
-
"patch": {
-
"type": "string"
-
},
-
"stackInfo": {
-
"type": "ref",
-
"ref": "#stackInfo"
-
},
-
"source": {
-
"type": "ref",
-
"ref": "#source"
-
},
"createdAt": {
"type": "string",
"format": "datetime"
···
"type": "string"
}
}
-
},
-
"source": {
-
"type": "object",
-
"required": [
-
"branch",
-
"sha"
-
],
-
"properties": {
-
"branch": {
-
"type": "string"
-
},
-
"sha": {
-
"type": "string",
-
"minLength": 40,
-
"maxLength": 40
-
},
-
"repo": {
-
"type": "string",
-
"format": "at-uri"
-
}
-
}
-
},
-
"stackInfo": {
-
"type": "object",
-
"required": [
-
"changeId"
-
],
-
"properties": {
-
"changeId": {
-
"type": "string",
-
"description": "Change ID of this commit/change."
-
},
-
"parent": {
-
"type": "string",
-
"description": "AT-URI of the PR for the parent commit/change in the change stack.",
-
"format": "at-uri"
-
}
-
}
}
}
}
+96
lexicons/pulls/round.json
···
+
{
+
"lexicon": 1,
+
"id": "sh.tangled.repo.pull.round",
+
"needsCbor": true,
+
"needsType": true,
+
"defs": {
+
"main": {
+
"type": "record",
+
"key": "tid",
+
"record": {
+
"type": "object",
+
"required": [
+
"pull",
+
"patch",
+
"sourceInfo",
+
"createdAt"
+
],
+
"properties": {
+
"pull": {
+
"type": "string",
+
"format": "at-uri"
+
},
+
"patch": {
+
"type": "string",
+
"description": "A patch describing this change. Either gotten directly from the user (patch-based PR) or from the knot based on a commit from another repo. The source of the patch and it's potential details are described by sourceInfo"
+
},
+
"sourceInfo": {
+
"type": "union",
+
"refs": [
+
"#patchSourceInfo",
+
"#commitSourceInfo"
+
]
+
},
+
"stackInfo": {
+
"type": "ref",
+
"ref": "#stackInfo"
+
},
+
"comment": {
+
"type": "string"
+
},
+
"prevRound": {
+
"type": "ref",
+
"ref": "com.atproto.repo.strongRef"
+
},
+
"createdAt": {
+
"type": "string",
+
"format": "datetime"
+
}
+
}
+
}
+
},
+
"patchSourceInfo": {
+
"type": "object",
+
"properties": {}
+
},
+
"commitSourceInfo": {
+
"type": "object",
+
"required": [
+
"repo",
+
"branch",
+
"sha"
+
],
+
"properties": {
+
"repo": {
+
"type": "string",
+
"format": "uri"
+
},
+
"branch": {
+
"type": "string"
+
},
+
"sha": {
+
"type": "string",
+
"minLength": 40,
+
"maxLength": 40
+
}
+
}
+
},
+
"stackInfo": {
+
"type": "object",
+
"required": [
+
"changeId"
+
],
+
"properties": {
+
"changeId": {
+
"type": "string",
+
"description": "Change ID of this commit/change."
+
},
+
"parent": {
+
"type": "string",
+
"description": "AT-URI of the PR for the parent commit/change in the change stack.",
+
"format": "at-uri"
+
}
+
}
+
}
+
}
+
}