Victor Lee
b8c4ea1e7c
added URL for newly created repo ( #8574 )
2024-01-19 12:16:15 +01:00
Jun Nishimura
7d6fba0d7d
Create repositories from templates in interactive mode ( #7769 )
2023-10-12 17:53:05 +02:00
Shion Ichikawa
a5400effd8
🐛 (repo create)execute clone when readme option is enabled ( #7837 )
...
* 🐛 (repo create)execute clone when readme option is enabled
* ✅ (repo/create)noninteractive clone with readme
* 🔥 (repo/create)remove printing statement
2023-08-28 14:09:02 +00:00
Heath Stewart
3085c39a73
Specify branch to force exit code
2023-03-29 07:44:17 -07:00
Heath Stewart
36436cb8b8
Retry fetching repo from template
...
Fixes #7055
2023-03-29 07:44:16 -07:00
Skip Baney
06360429de
Prompt for owner when interactively creating repos ( #6578 )
2022-12-08 08:52:36 +02:00
Sam Coe
98ab1f2587
Authenticate network git commands ( #6541 )
2022-11-15 13:14:37 +02:00
Sam Coe
f96b2fce57
Refactor git client and add tests ( #6525 )
2022-11-03 11:58:38 +01:00
Sam Coe
4294ee14a1
revert revert 57fbe4f317 ( #6474 )
2022-10-20 12:17:20 +00:00
Sam Coe
2cefb9fa59
Fix pr create regression ( #6472 )
...
* Revert "Refactor to use new git client (#6447 )"
This reverts commit 57fbe4f317 .
* Fix pr create regression
2022-10-20 12:46:23 +03:00
Sam Coe
57fbe4f317
Refactor to use new git client ( #6447 )
2022-10-19 21:11:36 +03:00
Sam Coe
2944f7c3ab
Create git client ( #6354 )
2022-10-14 07:47:03 +00:00
Mislav Marohnić
113acf9245
Add the option to generate a README for the created repository ( #6264 )
2022-09-21 16:08:26 +02:00
Mislav Marohnić
5656296ade
repo fork: directly fork under the desired name
...
A new GitHub feature landed where the API client can specify the desired
name of the new fork. This avoids the necessity of subsequently having
to rename the forked repo after the fork operation has created one.
For backwards compatibility, the renaming logic is still here, but
activates only if the resulting repo name is not the desired name.
2022-07-11 13:54:58 +02:00
ffalor
2918c538b3
add include-all-branches flag to repo create ( #5537 )
2022-05-23 10:11:55 +02:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Mislav Marohnić
44775f87c8
Add nolint directives to allow-list current lint violations
2022-01-14 19:52:52 +01:00
Mislav Marohnić
649e30ce2a
Fix ask stubs in repo create tests
2022-01-13 11:17:42 +01:00
Mislav Marohnić
c90fc18b0c
Avoid creating repo when cancelling from interactive mode
2021-12-14 18:18:08 +01:00
Mislav Marohnić
21e6d95982
Fix repo create printing created URL in no-TTY mode
2021-12-14 17:49:43 +01:00
Benjamin Chadwick
6cc7712583
Confirm name change before creating a repo with special characters ( #4562 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-11-18 13:24:48 +00:00
Meijke
0a0a358168
rewrite gh repo create ( #4578 )
...
Co-authored-by: Parth Patel <ppatil91099@gmail.com>
2021-11-17 20:16:37 +01:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Mislav Marohnić
5c21c949a0
Merge remote-tracking branch 'origin' into fix/private-repo-create
2021-07-15 12:58:00 +02:00
Mislav Marohnić
0ad153f696
Separate payload structs for REST vs GraphQL repo create
...
This enforces strict separation between serialization structs used for
repository creation payload with respect to whether GraphQL or REST was
used. Before, a field added to a GraphQL payload would leak to REST
payload (and vice versa).
2021-07-15 12:56:14 +02:00
Des Preston
17b58bf0b2
fix repo create --confirm
...
Respect the --confirm flag when deciding whether to prompt for gitignore
and license creation during `repo create`
Fixes #3989
2021-07-14 09:59:04 -04:00
vilmibm
589b695bcf
test for org + license/ignore
2021-06-30 17:41:39 -05:00
Gowtham Munukutla
137053399e
tweak tests and add extra validations
2021-06-17 10:17:26 +05:30
Gowtham Munukutla
3c8e163e8b
resolve PR comments. Tests WIP
2021-06-16 12:50:05 +05:30
Gowtham Munukutla
c4beed8276
complete tests
2021-05-30 13:42:39 +05:30
Gowtham Munukutla
9b87b13b80
add test cases WIP
2021-05-29 19:27:30 +05:30
Mislav Marohnić
9e63199a65
Add tests for checking out repository after creating from template
2021-03-01 14:12:56 +01:00
Devon Romanko
2964895a77
fix test behavior changes from migration to run.Stub
2021-01-27 18:46:29 -05:00
Devon Romanko
696cbfc8d1
use Stub instead of SetPrepareCmd in 'repo create' tests
2021-01-27 07:59:32 -05:00
Mislav Marohnić
c308f1cd91
Prevent further use of SetPrepareCmd and InitCmdStubber
2021-01-18 22:44:53 +01:00
xhqr
8b5c5896f2
[repo/create] Create local repo dir with non tty. ( #2671 )
...
This addresses issue #2587 .
2021-01-05 14:40:52 -08:00
Sam Coe
458d5cb42f
Respect interactive repo name input on create
2020-09-21 14:26:15 +02:00
Mislav Marohnić
f9239661f2
Reuse the StubRepoInfoReponse test helper
2020-09-16 15:01:13 +02: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
263e3a6a35
Update create_test.go
2020-08-27 17:57:55 -04:00
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
vilmibm
a6c7a88e39
use dummy io streams for cobra
2020-07-27 10:14:02 -05:00
vilmibm
4c57566cdc
sigh
2020-07-24 15:40:59 -05:00
vilmibm
2dc8cad7c5
remove stray debugs
2020-07-24 15:26:25 -05:00
vilmibm
551c3661cb
linter appeasement
2020-07-24 12:29:06 -05:00
vilmibm
c34054bdc8
isolate repo create command
2020-07-24 12:26:27 -05:00