git ssb

0+

cel / ssb-issues



Commit 6265721f1afb89664116866cfab644d8e413a9cd

Rename createFeedStream to list

Charles Lehner committed on 4/17/2016, 12:16:20 AM
Parent: 5ba5ed8f4b7cd0ca004b81ac3c4594eb91488aa1

Files changed

README.mdchanged
index.jschanged
README.mdView
@@ -71,14 +71,14 @@
7171 - `projectAuthor`: the author of the project
7272 - `msg`: ssb message object that created the issue (with
7373 `.key` and `.value`).
7474
75-#### createFeedStream: source
75+#### list: source
7676
7777 Get a stream of issues
7878
7979 ```js
80-issues.createFeedStream({ project:, open:, author:, live:, gt:, gte:, lt:, lte:, reverse: })
80+issues.list({ project:, open:, author:, live:, gt:, gte:, lt:, lte:, reverse: })
8181 ```
8282
8383 - `project` (Ref): get only issues for the given target
8484 - `open` (boolean): get only open or closed issues
index.jsView
@@ -16,9 +16,9 @@
1616 exports.name = 'issues'
1717
1818 exports.manifest = {
1919 get: 'async',
20- createFeedStream: 'source',
20+ list: 'source',
2121 new: 'async',
2222 edit: 'async',
2323 close: 'async',
2424 reopen: 'async',
@@ -185,9 +185,9 @@
185185 }
186186 }
187187 })
188188
189- function createFeedStream(opts) {
189+ function listIssues(opts) {
190190 opts.type = 'issue'
191191 return pull(
192192 // TODO: use links2 for this
193193 ssb.messagesByType(opts),
@@ -231,9 +231,9 @@
231231 }
232232
233233 return {
234234 get: getIssue,
235- createFeedStream: createFeedStream,
235+ list: listIssues,
236236 new: newIssue,
237237 edit: editIssue,
238238 close: closeIssue,
239239 reopen: reopenIssue,

Built with git-ssb-web