-
Couldn't load subscription status.
- Fork 7.3k
Filter out unwanted stderr output during git push commands #2016
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
Conversation
1a414cf to
a90a9a0
Compare
a90a9a0 to
4100857
Compare
4100857 to
c138964
Compare
514b202 to
e30be98
Compare
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.
This is progressing great! I would suggest focusing on ironing out the RegexWriter so it doesn't inadvertently change the output that wasn't related to "Create a pull request", such as the progress indicator from git push.
b44ce6d to
901ac02
Compare
fb7b594 to
b1672d8
Compare
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.
I'm into this 👍 sam had expressed concern about it being over-complex and perhaps for this single use case it is, but once it exists I definitely see us reaching for it more to handle git output.
I'd like to have it in; and it's easy to remove and do something simpler if we decide we want that.
the feedback was addressed and mislav is OOO
b1672d8 to
9acbf8a
Compare
This PR creates a wrapper around an
io.Writertype that will filter the output based on a regex and replace matches with a replacement string, and finally write the filtered output to the originalio.Writer.closes #1067