Mislav Marohnić
48aeff1ca7
Assert stdout separarely from stderr in command tests
...
This stubs stderr separately from stdout in command tests (before those
streams were combined) and improves test assertions around output.
Additionally, no longer use the `cmd.Print*()` family of Cobra functions
because their name sounds like the text will go to stdout, but they
write to stderr instead. Use the more explicit `cmd.ErrOrStderr()` as
output destination instead.
2019-12-16 15:46:42 +01:00
Mislav Marohnić
e93ab66107
Merge pull request #147 from github/pr-to-pull-request
...
Consistently use "pull request" instead of "PR" in user-facing copy
2019-12-13 17:14:17 +01:00
Nate Smith
995093591b
s/-B/-T
2019-12-11 15:03:23 -06:00
Mislav Marohnić
cc7b2f0ea8
Consistently use "pull request" instead of "PR" in user-facing copy
2019-12-11 09:31:57 +01:00
Mislav Marohnić
5ac4b1e6d6
Implement pr create --web
2019-12-04 16:26:40 +01:00
Mislav Marohnić
5d644d2468
Silence stderr in git push during pr create but show it on failures
2019-12-04 16:16:10 +01:00
vilmibm
633c8c070b
factor out title body prompting
2019-11-20 11:39:42 -06:00
Mislav Marohnić
135efda6d3
Avoid re-wrapping of "could not determine suitable remote" error
2019-11-14 19:31:33 +01:00
vilmibm
237fd04ad0
use errors.Wrap
2019-11-13 15:00:57 -06:00
Mislav Marohnić
e3e8647760
Eliminate package-level flags
2019-11-13 19:24:58 +01:00
Mislav Marohnić
65054fdc6e
Complete pr create test
2019-11-11 15:01:41 +01:00
Mislav Marohnić
ef4cadd8c9
Pass arbitrary params to CreatePullRequest
2019-11-11 14:09:24 +01:00
nate smith
9efe96575e
actually add command
2019-10-30 12:01:54 -05:00