Commit graph

65 commits

Author SHA1 Message Date
vilmibm
15a6225f05 totally inelegant approach to hopefully stopping flakey tests 2020-04-29 14:17:16 -05:00
vilmibm
03e60758d0 missed a thing 2020-04-22 16:08:47 -05:00
vilmibm
f1bee0c9b9 use more clear name 2020-04-22 15:49:16 -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
Mislav Marohnić
d14b5d3e2c
Merge pull request #764 from cli/pr-view-docs
Improve `issue/pr/repo view` documentation
2020-04-09 19:12:34 +02:00
Mislav Marohnić
d1754b2bb0 Improve issue/pr/repo view documentation
- Short-form docs for `pr/repo view` no longer say "in browser"

- Long-form docs for all these commands now list more information about
  what will be displayed in the terminal, plus stressing out the
  alternate behavior with the `--web` flag.

- `--web` flag docs: add English articles
2020-04-08 12:04:39 +02:00
Tiernan L
1aba837589
update text to long-form
Change from "repo" to "repository".  Run "gh repo clone -h` to see the usage text I am referring to.

We use the word "repository" here:

Usage:
  gh repo fork [<repository>] [flags]

Usage:
  gh repo view [<repository>] [flags]
2020-04-06 11:27:17 -10: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
Fotios Lindiakos
6428e3da10
Rename parseExtraArgs 2020-04-03 10:10:46 -04:00
Fotios Lindiakos
199021d55d
Cleanup clone description 2020-04-03 10:10:32 -04:00
Fotios Lindiakos
59f239bddc
Parse args to find an explicit directory name 2020-04-01 16:43:27 -04:00
Fotios Lindiakos
ed62b7bbd5
Consolidate 'git clone' commands 2020-04-01 15:05:18 -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ć
da2116f8ee Merge remote-tracking branch 'origin/master' into pr-create-push-default 2020-03-30 13:32:37 +02: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ć
0f98d56649 Rename underscored variable to camelcase 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
Nate Smith
26022bc684
Merge pull request #690 from cli/repo-view-terminal
Add ability to view repo in terminal and do it by default
2020-03-25 11:32:26 -05:00
vilmibm
a8a57595dc explicitly ignore readme fetching error 2020-03-25 11:26:58 -05:00
Mislav Marohnić
5b2e1847b7 Merge remote-tracking branch 'origin/master' into pr-create-push-default 2020-03-25 08:16:04 +01:00
vilmibm
379ecdab54 move readme fetching to api package 2020-03-24 15:21:18 -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
Mislav Marohnić
488b47bded Enable tests to capture spinner output
Explicitly assign the writer stream for the progress spinner so that
tests may override it.

The default when not in testing stays the same: the output stream is the
colorable stdout.
2020-03-20 18:18:27 +01:00
Mislav Marohnić
e3653672a8 Simplify git.AddRemote implementation
The 2nd argument now unused since we've determined that, in practice, we
can safely fetch git objects from a freshly created fork on GitHub and
that we don't need the remote URL-swapping workaround.
2020-03-20 13:08:33 +01:00
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