Commit graph

35 commits

Author SHA1 Message Date
Mislav Marohnić
d323783a0f
Merge pull request #629 from sibis/verify-view-repo
Verify repository before viewing in the browser #598
2020-03-11 20:21:40 +01:00
sibis
0fc9dfac37 refactor: code cleanup incorporating the PR suggestions and removed blank lines 2020-03-12 00:44:07 +05:30
sibis
0cef66dc67 Verify repo before viewing in the browser 2020-03-11 01:11:39 +05:30
Mislav Marohnić
f9c32654e9 Fix setting homepage URL in repo create 2020-03-09 12:53:41 +01:00
Billy Griffin
f2262cfcae
Consistent punctuation in usage 2020-03-04 10:22:46 -07: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
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ć
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
vilmibm
ce8f3418eb remove short versions of repo/clone to reduce usage clutter 2020-03-02 14:41:51 -06:00
vilmibm
6a57f04285 allow continuing if already forked 2020-03-02 14:37:08 -06: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
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ć
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
vilmibm
8a3337ca66 switch default to Y 2020-02-25 16:26:51 -06:00
vilmibm
4f25d06c1e add repo fork tests 2020-02-25 16:26:51 -06:00
vilmibm
6eaab2562f add repo fork command 2020-02-25 16:26:51 -06:00
Mislav Marohnić
9175fc06d4 Add preliminary repo create command 2020-02-25 18:04:55 +01:00
Mislav Marohnić
d25ec726ad Add repo clone <repo> command 2020-02-25 16:47:42 +01:00
vilmibm
1bf8beb96d fix baseRepo type 2020-02-24 13:22:43 -06:00
Mislav Marohnić
e87467d21f Allow repo view OWNER/REPO format for owners starting with "http" 2020-02-24 17:17:14 +01:00
Mislav Marohnić
398a5defb8 Use displayURL helper for consistency 2020-02-24 17:17:00 +01:00
Mislav Marohnić
20fc0dfcb7 Avoid API requests in repo view when repo argument is given 2020-02-24 17:14:46 +01:00
Scott Penrose
7c76fb645a
Add repo view command
```
$ gh repo
Work with GitHub repositories.

A repository can be supplied as an argument in any of the following formats:
- by owner/repo, e.g. "cli/cli"
- by URL, e.g. "https://github.com/cli/cli"

Usage:
  gh repo [command]

Available Commands:
  view        View a repository in the browser
```
2020-02-18 21:25:31 -05:00