Commit graph

22 commits

Author SHA1 Message Date
Sam Coe
458d5cb42f
Respect interactive repo name input on create 2020-09-21 14:26:15 +02:00
vilmibm
a811e72c9d do not assume public when creating repo non-interactively 2020-09-11 11:57:40 -05:00
vilmibm
1073c97409 review feedback 2020-09-11 11:36:24 -05:00
vilmibm
c0fc31f7d5 use CanPrompt in commands 2020-09-10 12:13:48 -05:00
Colin Shum
99372f0dbc [Refactor] Add variadic argument to repoCreate to support templates 2020-08-28 15:02:08 -04:00
Colin Shum
2886dd913f [Refactor] toView -> toClone 2020-08-27 19:13:06 -04:00
Colin Shum
32e5d05328 [Fix] Warn user when --template is passed with incompatible flags 2020-08-27 15:00:57 -04:00
Colin Shum
58f62a4a15 [Feature] Create repository from template
Co-authored-by: Mislav Marohnić <mislav@github.com>
2020-08-27 14:46:16 -04:00
ShubhankarKG
7955c4f2ed doSetup wasn't getting called in cases where required.
The problem was that opts.confirmSubmit was mutated before reaching doSetup. This commit creates a copy of the initial confirmSubmit value. So the doSetup receives the initial data passed from the command, not the mutated one.
2020-08-20 14:20:55 +05:30
ShubhankarKG
00b2777a14 Change visibility strings to Sentence case 2020-08-20 14:10:18 +05:30
ShubhankarKG
130c5262b2 Refactor changes 2020-08-18 16:23:16 +05:30
ShubhankarKG
2b6535f951 Merge branch 'trunk' of https://github.com/cli/cli into newConfirmations 2020-08-18 11:25:43 +05:30
Mislav Marohnić
85f0f3aad7 Enable repo create for GHE 2020-08-14 19:02:17 +02:00
vilmibm
35f18b6c02 gh auth login 2020-08-06 12:43:35 -05:00
ShubhankarKG
43ace4dc54 Fix tests failing after merging trunk 2020-08-06 12:20:39 +05:30
ShubhankarKG
01bcdbc8a1 Merge branch 'trunk' into newConfirmations 2020-08-06 11:50:46 +05:30
ShubhankarKG
d3a44f827f Permit -y flag to create local directory as well 2020-08-06 11:47:24 +05:30
ShubhankarKG
011f30977a 1. Add three visibility tags - public, private, internal, one of which meeds to be passed.
2. Interactive repo create when no parameters are passed, i.e `repo create`.
3. Fix tests.

TODO : write a repo in the form of user/repository format when no user is supplied.
2020-08-06 11:33:04 +05:30
ShubhankarKG
4b64a46891 Add confirmation for risky step for repo create 2020-08-04 19:24:35 +05:30
Mislav Marohnić
ffe08995bb Add notes about GHE support for git_protocol 2020-07-29 22:50:53 +02:00
vilmibm
f84365ce08 use heredocs 2020-07-27 10:02:18 -05:00
vilmibm
c34054bdc8 isolate repo create command 2020-07-24 12:26:27 -05:00