Commit graph

39 commits

Author SHA1 Message Date
vilmibm
15a6225f05 totally inelegant approach to hopefully stopping flakey tests 2020-04-29 14:17:16 -05:00
vilmibm
97e3a57244 fix tests 2020-04-22 16:16:14 -05:00
vilmibm
bec58ede98 respect ssh
this adds recognition of the git_protocol setting when:

- creating a repo
- cloning a repo
- forking a repo
- forking/pushing during pr create
- checking out a PR

additionally, it:

- consolidates remote adding to use AddRemote; this introduces a fetch
where there previously hadn't been one
- changes repo clone to accept an ssh url
- changes repo fork to accept an ssh url

i just added basic unit tests; adding new test cases for all of the
above scenarios seemed like diminishing returns.
2020-04-22 14:21:01 -05:00
vilmibm
a325db3051 new config infrastructure
- adds config get and config set commands
- supports arbitrary k/v strings set at top and host level
- supports writing an updated config, preserving comments
- supports mostly lazy evaluation of yaml
2020-04-17 15:17:44 -05:00
Mislav Marohnić
e878cdf060
Merge pull request #752 from lumaxis/feature/fetch-upstream-after-adding
Fetch upstream remote after adding it

Fixes #731
2020-04-06 19:48:14 +02:00
Lukas Spieß
7e1ed5f9a3
Fetch upstream remote after adding it 2020-04-05 20:54:29 +02:00
Mislav Marohnić
43b28f769b
Merge pull request #727 from thefotios/respect-clone-target
Respect clone target

Closes #721
2020-04-03 19:18:05 +02:00
Mislav Marohnić
734497a8d8
Code fixes informed by golangci-lint failures (#738) 2020-04-03 16:33:34 +02:00
Fotios Lindiakos
6428e3da10
Rename parseExtraArgs 2020-04-03 10:10:46 -04:00
Fotios Lindiakos
59f239bddc
Parse args to find an explicit directory name 2020-04-01 16:43:27 -04:00
Mislav Marohnić
fa3d65b2b6 Add "upstream" remote after repo fork 2020-03-31 18:36:41 +02:00
Mislav Marohnić
8460609181 repo clone: automatically set up "upstream" remote for forks 2020-03-31 15:32:52 +02:00
vilmibm
44acdd4ec3 Merge branch 'master' into pr-status-no-commits 2020-03-30 12:04:02 -05:00
Mislav Marohnić
265db26b78 Merge remote-tracking branch 'origin/master' into detect-existing-fork 2020-03-30 12:02:33 +02:00
Mislav Marohnić
965f2704f3 repo fork: reuse existing git remote
Avoid adding a new git remote for a fork if an existing remote is found
that points to the exact forked repo.
2020-03-27 13:30:25 +01:00
Mislav Marohnić
a6335396cf repo fork: simplify printing the name of an existing forked repo 2020-03-27 13:30:25 +01:00
vilmibm
f4b8851011 Merge remote-tracking branch 'origin/master' into pr-status-no-commits 2020-03-25 12:00:58 -05:00
vilmibm
5187ad4431 move preparecmd and Runnable to its own package 2020-03-23 16:32:29 -05:00
vilmibm
3459dfab95 add viewing repo in terminal 2020-03-20 16:26:49 -05:00
vilmibm
ff96f48479 add ExpectLines helper 2020-03-20 16:26:49 -05:00
vilmibm
ed8aaa83e3 add CmdStubber 2020-03-13 15:12:09 -05: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ć
52cc04e300 Merge remote-tracking branch 'origin/master' into repo-create 2020-03-03 22:55:49 +01:00
Mislav Marohnić
be09717918 Add ability to repo create within an org 2020-03-03 21:49:47 +01: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
vilmibm
5d44d9f483 tweak flag settings 2020-02-27 16:55:31 -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
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
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
4f25d06c1e add repo fork tests 2020-02-25 16:26:51 -06:00
Mislav Marohnić
d25ec726ad Add repo clone <repo> command 2020-02-25 16:47:42 +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