Nate Smith
a55b473188
Merge pull request #591 from cli/powershell-completions
...
Add support for PowerShell completion
2020-03-10 14:56:28 -07:00
Nate Smith
6886795a2d
Merge pull request #617 from cli/repo-create-homepage
...
Fix setting homepage URL in `repo create`
2020-03-10 14:52:49 -07:00
Nate Smith
80f4cdde82
Merge pull request #618 from cli/pr-create-validate
...
Ensure `pr create` validates all inputs before forking+pushing
2020-03-10 14:51:00 -07:00
Mislav Marohnić
7c11f7655a
No need to opt in to shadow-cat API preview
...
This was needed for draft pull requests, but these APIs were public
since Feburary 2020.
2020-03-10 13:59:56 +01:00
Mislav Marohnić
42b40b1179
No longer need to opt into pe_mobile API flag
...
`pe_mobile` was required to get access to `reviewDecision` and
`statusCheckRollup`, but both are now public in GitHub API.
2020-03-10 13:58:06 +01:00
Mislav Marohnić
d584a9692c
Raise error if --draft was used in pr create --web
...
Since we cannot pass the "draft" option as query parameter, this raises
an error instead of proceeding to open the browser and potentially
confuse the user as to why `--draft` wasn't respected.
2020-03-09 14:53:27 +01:00
Mislav Marohnić
7777307588
Avoid forking/pushing until pr create inputs have been processed
...
This avoids fork or push operation if there were errors processing the
input arguments or if the operation has been cancelled during
interactive survey.
2020-03-09 14:51:40 +01:00
Mislav Marohnić
f9c32654e9
Fix setting homepage URL in repo create
2020-03-09 12:53:41 +01:00
Alisson Santos
dcedacd4f7
Remove duplicates
2020-03-05 13:55:36 +01:00
Mislav Marohnić
fa595596de
Improve completion docs
2020-03-05 09:34:05 +01:00
Mislav Marohnić
aa07c5366e
Add support for PowerShell completion
2020-03-05 09:33:49 +01:00
Billy Griffin
f2262cfcae
Consistent punctuation in usage
2020-03-04 10:22:46 -07:00
Christian Muehlhaeuser
fdfcecfcb6
Fix typo in 'overridden'
2020-03-04 14:20:55 +00:00
Billy Griffin
be32459de1
Update repo usage
2020-03-03 15:38:50 -07:00
Mislav Marohnić
74cd5b3837
Use overridable Confirm
2020-03-03 22:59:50 +01:00
Mislav Marohnić
15b758aaa9
Tweak repo docs
2020-03-03 22:59:35 +01:00
Mislav Marohnić
52cc04e300
Merge remote-tracking branch 'origin/master' into repo-create
2020-03-03 22:55:49 +01:00
Nate Smith
3d7733870e
Merge branch 'master' into repo-fork
2020-03-03 15:40:54 -06:00
vilmibm
44c0d115fc
usage
2020-03-03 15:40:19 -06:00
vilmibm
90d2f99d2a
this fetch was redundant since AddRemote fetches
2020-03-03 15:38:05 -06:00
Mislav Marohnić
a73880f5dd
Merge pull request #567 from cli/pr-selector-base
...
Fix detecting PR for current branch pushed to fork
2020-03-03 22:02:21 +01:00
Mislav Marohnić
232453173c
Merge pull request #574 from cli/help-flag
...
Ensure that `gh <command> -h` is equivalent to `--help`
2020-03-03 21:57:07 +01:00
Mislav Marohnić
be09717918
Add ability to repo create within an org
2020-03-03 21:49:47 +01:00
Mislav Marohnić
8deb0d8783
repo create NAME offers to set up when ran outside of a git repo
2020-03-03 21:07:51 +01:00
Mislav Marohnić
371d4f5c6a
Ensure that gh <command> -h is equivalent to --help
...
This compensates for what appears to be a bug in Cobra, which only
handles `pflag.ErrHelp` unless the error is wrapped. It also might be
that Cobra doesn't recognize Go 1.13-style error wrapping.
2020-03-03 20:05:44 +01:00
Nate Smith
fdf940eeba
Merge pull request #530 from doi-t/issue-467
...
Ability to differentiate pull requests by their state
2020-03-02 16:12:55 -06:00
vilmibm
ce8f3418eb
remove short versions of repo/clone to reduce usage clutter
2020-03-02 14:41:51 -06:00
vilmibm
48a6bbf043
minor golfing
2020-03-02 14:38:49 -06:00
vilmibm
6a57f04285
allow continuing if already forked
2020-03-02 14:37:08 -06:00
Mislav Marohnić
201217d88a
Fix detecting PR for current branch pushed to fork
...
Now passing base repo as reference to `prSelectorForCurrentBranch()` so
that it doesn't have to (inexactly) determine the base repo itself and
risk it being different than the base repo determined during `pr
status/view`.
2020-03-02 11:35:20 +01:00
vilmibm
bb65bda62f
escape codes in errors render v poorly in windows
2020-02-28 10:28:36 -06:00
vilmibm
5d44d9f483
tweak flag settings
2020-02-27 16:55:31 -06:00
vilmibm
8c473a2779
shorten some english
2020-02-27 16:44:02 -06:00
vilmibm
7fad2d05fb
switch to alternate method for determining if repo already forked
2020-02-27 16:43:44 -06:00
Billy Griffin
8340591ad3
Number is more readable
2020-02-27 11:23:37 -07:00
Billy Griffin
b18ea98436
Improve error message for issue URL with no args
2020-02-27 11:22:39 -07:00
Mislav Marohnić
adf2177a24
Merge pull request #474 from politas/fix/StripHash
...
Handle properly passed #<num> as equivalent to <num> for PRs and Issues
2020-02-27 12:15:00 +01:00
Mislav Marohnić
f5b0354ae3
Fix tests
2020-02-27 12:11:49 +01:00
Myk
038e5e5342
Accept #<num> syntax as issue/PR number
2020-02-27 12:11:49 +01:00
vilmibm
115bf37bbd
switch to --clone/--remote
2020-02-26 17:08:48 -06:00
vilmibm
256bdabf03
slight refactor
...
I didn't initially use GitHubRepo because it had the weird error
wrapping. I poked around and I think this function is leftover from a
vestigial GitHubRepoID function that used to be more single-purpose. I
took out the weird error handling so it could be reused and then used it
from the new GitHubRepoExists.
2020-02-26 16:48:29 -06:00
Mislav Marohnić
55b66feb42
Merge pull request #542 from Dasio/slice-initialization
...
Slice initialization
2020-02-26 20:02:06 +01:00
Mislav Marohnić
4e97a0e05d
Have correct command be run in repo clone test
2020-02-26 19:53:18 +01:00
Mislav Marohnić
4a56280ab5
Automatically add origin remote after repo create
2020-02-26 19:53:01 +01:00
vilmibm
e38c15e2c9
fix ellipsis color
2020-02-26 11:56:00 -06:00
vilmibm
6371864835
spruce up UX
2020-02-26 11:48:11 -06:00
Mislav Marohnić
b02dac8f0b
Accept more repo fields via flags to repo create
2020-02-26 18:45:21 +01:00
Toshiya Doi
5f152a349d
Print merged and closed PRs of the current branch along with an opening PR
2020-02-27 00:07:48 +09:00
Dasio
19cc79cac8
Removed explicit capacity in slice initialization
2020-02-26 15:44:52 +01:00
Toshiya Doi
8b31b283f5
Merge branch 'master' into issue-467
2020-02-26 15:37:32 +09:00