git ssb

0+

cel / ssb-issues



Commit 1889f951e47739c84552fd11554b14400e74f1e7

Add msg property to issue

Charles Lehner committed on 4/11/2016, 3:16:18 AM
Parent: 22e129844192c0ac7cf466780ed41402f70a273c

Files changed

README.mdchanged
index.jschanged
README.mdView
@@ -55,9 +55,10 @@
5555 project: Ref?,
5656 projectAuthor: FeedRef?,
5757 created_at: number,
5858 updated_at: number,
59- open: boolean
59+ open: boolean,
60+ msg: Msg,
6061 }
6162 ```
6263
6364 - `id`: id of the issue
@@ -67,8 +68,10 @@
6768 - `title`: title of the issue
6869 - `open`: whether the issue is open (true) or closed (false)
6970 - `project`: the project that the issue is for
7071 - `projectAuthor`: the author of the project
72+- `msg`: ssb message object that created the issue (with
73+ `.key` and `.value`).
7174
7275 #### createFeedStream: source
7376
7477 Get a stream of issues
index.jsView
@@ -64,8 +64,9 @@
6464 msg = {key: id, value: msg}
6565 if (err) return cb(err)
6666 issueMsg = msg
6767 issue.id = msg.key
68+ issue.msg = msg
6869 issue.author = msg.value.author
6970 var c = msg.value.content
7071 issue.project = c.project
7172 issue.text = c.text

Built with git-ssb-web