Yukai Chou
ba585149c3
Leftovers
2023-11-23 07:12:47 +08:00
Yukai Chou
07a87ca8a4
Wrap special values and placeholders like - and $1
2023-11-23 07:09:29 +08:00
Sam Coe
7924878315
Fix git protocol and refactor Config interface ( #8246 )
2023-10-27 15:42:05 +02:00
Keith Bailey
363dacbbed
Set default repository for repo clone and repo fork ( #7768 )
2023-10-11 13:41:00 +00:00
Nate Smith
2ddfc3827d
use new prompter in repo fork
2023-08-16 16:02:14 -05:00
Sam Coe
35a24caed2
Standardize retry mechanism ( #7027 )
2023-03-02 23:06:30 +00:00
Hamish 'James' Coates
394b23aa9b
Include new line after existing fork error log ( #7030 )
2023-02-28 00:53:25 +00:00
Josh Soref
7541ee6aec
Retry git clone on git clone failure in gh repo fork --clone ( #6962 )
2023-02-21 04:10:50 +00:00
Mislav Marohnić
14eb873b9e
Avoid implicitly fetching when adding a new git remote ( #6990 )
2023-02-07 21:22:02 +00:00
Josh Soref
e6d6427704
Support Fork with Default Branch Only
2023-02-07 10:00:39 -05: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
Sam Coe
e7102f9d84
Migrate to go-gh text package ( #6236 )
2022-09-14 09:23:55 +04:00
vilmibm
41385477c3
fix linting
2022-07-27 14:15:27 -05: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
Sam Coe
cacff4ad6d
Use go-gh config package ( #5771 )
2022-06-23 11:50:04 +00:00
Ahmed Adan
31bee2e639
Add --upstream-remote-name flag to gh replo clone ( #5619 )
2022-05-24 13:12:01 +02:00
Mislav Marohnić
512208ca96
repo fork: tweak docs
2022-02-18 18:38:34 +01:00
Nate Smith
e17964cf03
Merge pull request #5092 from cli/repo-fork-proto
...
prefer configured git protocol when forking
2022-01-26 11:33:47 -06:00
nate smith
667671f048
fix race condition, increase clarity
2022-01-25 15:36:41 -06:00
nate smith
bd6e50a08a
Merge remote-tracking branch 'origin/trunk' into feature/target-repo-fork-name
2022-01-25 14:08:27 -06:00
nate smith
170a50fcc8
prefer configured git protocol when forking
2022-01-24 16:54:01 -06:00
nate smith
562f1b3d0d
add GetOrDefault functionality to config
2022-01-11 14:56:58 -06:00
Gowtham Munukutla
54d92facbf
add flag to set fork-name during repo fork. Tests WIP
2021-12-10 22:59:35 +05:30
Alan Donovan
f4491c7a80
Add FlagErrorf; encapsulate FlagError.error
2021-10-21 11:40:20 -04:00
Alan Donovan
7215522123
use FlagError
2021-10-21 10:06:11 -04:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
camille folch
568f4e4ee0
Minor refactoring for readability in NewCmdFork's runE
2021-06-11 23:28:41 -03:00
camille folch
54b86c7093
repo fork: check that --org is not the empty string
...
As it is already being done for --remote-name, except in this case
the default is the empty string.
2021-06-11 23:28:41 -03:00
Nate Smith
f31a31e2ed
stop stubbing out a Since function
2021-06-10 21:46:02 +00:00
vilmibm
4a7ec7f4f6
cleaning up fork tests
2021-06-10 21:45:54 +00:00
vilmibm
14de70a011
add defaultRemoteName
2021-06-10 21:44:49 +00:00
Mislav Marohnić
3cbd5b4934
Add repo fork --org functionality ( #3611 )
...
Co-authored-by: Gowtham Munukutla <gowtham.m81197@gmail.com>
2021-05-10 17:09:03 +02:00
Gowtham Munukutla
745b3fec17
fix premature return while forking repo non interactively
2021-03-31 20:20:07 +05:30
Nate Smith
e91b97b4c5
fully restore fork remote renaming behavior ( #2982 )
...
* fully restore fork remote renaming behavior
* catch blank remote name and error + arg tests
* hard wrap fork usage
* do not rename if remote-name supplied
* tweak error text
2021-02-17 12:33:22 -06:00
Nate Smith
6152d8a419
Merge pull request #2825 from cli/rename-fork
...
restore fork rename behavior for nontty case
2021-01-25 11:29:52 -08:00
vilmibm
26f6761481
add note about future behavior
2021-01-25 11:29:26 -08:00
Mislav Marohnić
f46bab256c
Rename to SuccessIconWithColor
2021-01-25 14:56:39 +01:00
vilmibm
1fa3047b59
restore renaming behavior for nontty case
2021-01-22 16:12:25 -08:00
Mislav Marohnić
96fa6e7830
Merge remote-tracking branch 'origin' into success-icon-consistency
2021-01-22 23:56:54 +01:00
Mislav Marohnić
23d68705bc
Match color of the success icon with the end state of the record
2021-01-22 23:55:33 +01:00
Nate Smith
29805a4003
Merge pull request #2588 from cdce8p/gh-clone-fetch
...
Only fetch default branch when adding upstream remote
2021-01-21 12:57:10 -08:00
vilmibm
a27a94f8b5
Merge remote-tracking branch 'origin/trunk' into repo-fork-gitflags
2021-01-21 11:58:20 -08:00
Mislav Marohnić
4158209d50
Merge pull request #2811 from cli/utils-spinner-buh-bye
...
Retire utils.Spinner in favor of IOStreams.StartProgressIndicator
2021-01-21 17:34:39 +01:00
vilmibm
99c312e8ce
accept a remote name instead of doing magic remote naming in repo fork
2021-01-20 15:32:19 -08:00
vilmibm
03f99a0140
Merge remote-tracking branch 'origin/trunk' into remote-renaming-847
2021-01-20 15:10:20 -08:00
Mislav Marohnić
aa0de5f636
Stop using utils.Spinner in repo fork
2021-01-20 14:46:45 +01:00
cdce8p
f536901bc1
Only fetch DefaultBranchRef when adding upstream remote during gh repo clone
2020-12-09 20:15:21 +01:00