Commit fc79e4ae8dfc4b26c46b891776e8b82a3d34110e
Uniqify listed PRs
cel committed on 10/19/2016, 2:03:06 AMParent: efa6ad97a49b5f3337174d89838e3695e691507a
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -98,8 +98,9 @@ | |||
98 | 98 … | opts = opts || {} | |
99 | 99 … | opts.type = 'pull-request' | |
100 | 100 … | return pull( | |
101 | 101 … | sbot.messagesByType(opts), | |
102 … | + pull.unique('key'), | ||
102 | 103 … | pull.filter(function (msg) { | |
103 | 104 … | return (!opts.repo || opts.repo == msg.value.content.repo) | |
104 | 105 … | && (!opts.headRepo || opts.headRepo == msg.value.content.head_repo) | |
105 | 106 … | && (!opts.author || opts.author == msg.value.author) |
Built with git-ssb-web