Mislav Marohnić
766e4950d9
Be transparent about which part of pr create flow failed
...
When applying metadata to the new PR such as assignees or reviewers, if
the operation fails, an error message would get printed:
failed to create pull request: <API error text>
This was misleading, because the PR did get created; it's just that
updating it failed. The new error message is:
https://github.com/OWNER/REPO/pull/123
pull request update failed: <API error text>
The PR URL is printed on stdout and the error message is printed on
stderr. In case of any errors, the exit code is still non-zero.
2020-08-31 16:46:22 +02:00
Mislav Marohnić
c21caf5b2b
Disallow pr -R flag for commands that operate on the current branch
...
If the `--repo` flag is specified, then the user intends to select a
repository other than the current one. In that case, it doesn't make
sense to fall back to detecting the PR belonging to the current branch,
so throw a descriptive error instead.
2020-08-27 16:30:34 +02:00
Dan Hughes
7b8d052f0e
Add new output to existing test
2020-08-26 17:31:13 +01:00
Dan Hughes
a3aea11e5b
Include URL and number in non-TTY output
2020-08-26 17:28:17 +01:00
Nate Smith
b9292f582f
Merge pull request #1476 from rimazk123/prclose-delete
...
Add delete branch flag to pr close
2020-08-19 21:11:48 -05:00
vilmibm
e44eb665a1
Merge remote-tracking branch 'origin/trunk' into prclose-delete
2020-08-19 21:06:04 -05:00
Nate Smith
ddfa1714d2
Merge pull request #1479 from wilso199/pr-checkout-submodules
...
PR Checkout - Recurse Submodules
2020-08-19 16:46:21 -05:00
vilmibm
16f69e9c12
fix tests
2020-08-19 16:40:13 -05:00
vilmibm
5c4f93ad0a
Merge remote-tracking branch 'origin/trunk' into pr-checkout-submodules
2020-08-19 16:37:01 -05:00
Martín Montes
df66a8f131
Using default pager in gh pr diff
2020-08-17 22:31:30 +02:00
Mislav Marohnić
47cef736f4
Fix GH_REPO override
2020-08-07 14:47:58 +02:00
Mislav Marohnić
c00fe73d5a
Isolate issue commands
2020-08-07 00:27:55 +02:00
Mislav Marohnić
6490d7717c
Fix --repo override taking effect for pr commands
2020-08-06 21:39:46 +02:00
Mislav Marohnić
5404fb2362
Wrap up migrating all pr commands
2020-08-06 21:21:35 +02:00
Mislav Marohnić
82661c197e
Isolate pr list command
2020-08-04 18:38:06 +02:00
Mislav Marohnić
558e3f3dea
Isolate pr create command
2020-08-04 18:29:42 +02:00
Mislav Marohnić
e024184c6f
Fix pr merge test
2020-08-04 15:13:36 +02:00
Mislav Marohnić
d774a6a35f
Merge branch 'pr-commands-isolate' into pr-commands-isolate-2
2020-08-04 15:13:33 +02:00
Mislav Marohnić
8cba134f5d
Fix pr checkout test
2020-08-04 15:10:44 +02:00
Mislav Marohnić
a73584db72
Merge remote-tracking branch 'origin' into pr-commands-isolate
2020-08-04 15:01:30 +02:00
Mislav Marohnić
3ac73297eb
Isolate pr status command
2020-07-31 19:07:30 +02:00
Mislav Marohnić
7cc74c5bb6
Isolate pr merge command
2020-07-31 19:07:16 +02:00
Mislav Marohnić
74b191d0f7
Isolate pr view command
2020-07-31 14:19:09 +02:00
Mislav Marohnić
7949d5373d
Fix pr diff in notty mode
2020-07-29 22:58:08 +02:00
Mislav Marohnić
487dd06bf3
Isolate pr checkout command
2020-07-29 22:50:34 +02:00
Mislav Marohnić
af68a749f0
Isolate pr diff command
2020-07-29 22:49:50 +02:00
Mislav Marohnić
12637d02d6
Isolate pr review command
2020-07-29 19:35:54 +02:00
Mislav Marohnić
3c32a8441a
Extract PR lookup into shared package
2020-07-29 19:35:03 +02:00