-
Notifications
You must be signed in to change notification settings - Fork 24
Feature: reporting #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
e66fa9e
to
0ce6fae
Compare
github-webhook.js
Outdated
} | ||
if (rule.report) getStream(past).then(function(str) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a {
after the if
also, this should be exclusive to the logStream
if
above, we can't have the stream being piped into two places unless we introduce another utility that will allow it to be double-piped. It's either one or the other or something funky in between.
I also would rather not introduce get-stream
, it's not a package I'm aware of and its usage here doesn't make me entirely comfortable -- there's no promises in this library yet so I'd like to avoid that for now, and there's no catch
on this either. I'd rather use bl
, which I'm obviously more comfortable with and it'll do the job just fine with a callback, like past.pipe(bl((data, err) => { err or data.toString() ... }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to bl (i like bl, i don't know why i used get-stream).
However i don't understand the comment piping in two places: i thought that was okay.
Hi, this is something i just added. I thought it was cool enough to PR it !