git ssb

30+

cel / git-ssb-web



Commit afbb585e6580d4380af3a1b490efb8e6d05feeda

Update line-comment schema doc

cel committed on 11/24/2017, 4:38:12 AM
Parent: 43dad83091a92312dae090491ec32afd06fc8de9

Files changed

schemas.mdchanged
schemas.mdView
@@ -3,17 +3,22 @@
33 ```
44 {
55 "type": "line-comment",
66 "text": string,
7 + "mentions": Links,
78 "repo": MsgId,
8- "updateId": MgsIds,
9 + "updateId": MsgId,
10 + "commitId": string,
11 + "filePath": string,
912 "line": number,
1013 }
1114 ```
1215 `repo`: id of `git-repo`
16 +`text`: text of the comment
17 +`mentions`: mentions links associated with the text, as done with `post` messages
1318 `updateId`: id of a `git-update` message that pushed the git commit, git trees, and git blobs needed to render the diff.
1419 `commitId`: commit that the comment is on
1520 `filePath`: path to the file that the comment is on
1621 `line`: line number of the file that the comment is on
1722
18-Replies to a line comment should be messages of type `post` with `root`
19-linking to the `line-comment` message.
23 +A reply to a line comment should be a message of type `post` with `root`
24 +property set to the id of the `line-comment` message. `branch` property should follow the semantics of `branch` used in other `post` message threads.

Built with git-ssb-web