Commit graph

475 commits

Author SHA1 Message Date
Nate Smith
a51aba0d22
Merge pull request #7850 from cli/noch-prompts
update more prompts
2023-08-17 17:38:17 -05:00
Nate Smith
2ddfc3827d use new prompter in repo fork 2023-08-16 16:02:14 -05:00
Sam Coe
4a57a812f5
Upgrade to Go 1.21 (#7843) 2023-08-16 10:37:58 -07:00
Nate Smith
f5477d931b pass prompter around instead of opts 2023-08-10 17:34:17 -07:00
Nate Smith
480505511c test for forking in org 2023-08-08 17:53:21 -07:00
Nate Smith
3e2f09d970 strip more dead code 2023-08-08 17:35:35 -07:00
Nate Smith
c1296194ee port more prompts and cover with new tests 2023-08-08 17:28:06 -07:00
Nate Smith
8927040028 remove dead code 2023-08-08 15:58:16 -07:00
Nate Smith
bd12522cb2 finish porting existing tests 2023-08-08 15:37:58 -07:00
Nate Smith
aed3a67749 WIP porting repo edit to opts.Prompter 2023-08-07 17:59:56 -07:00
Nate Smith
cd65409328 switch to Prompter.MultiSelect 2023-08-07 17:12:46 -07:00
Sam Coe
8079d18efd
Use asciisanitization package from go-gh (#7745) 2023-07-24 10:50:33 -07:00
Sam Coe
5d82a9553c
Sanitize file contents before displaying them (#7694) 2023-07-18 12:49:25 -07:00
Sam Coe
ddfe476ff9
Remove old code paths and improve code comments for repo sync (#7610) 2023-06-23 11:32:48 +00:00
William Martin
fa8b514bf1 Early exit repo sync if merge-upstream requires workflow scope 2023-06-21 15:47:33 +02:00
Sam Coe
fac497108b
Set upstream remote to track all branches after initial fetch (#7542) 2023-06-12 09:23:56 +09:00
Jakub Kuczys
bd749b67f6
Allow gh repo set-default --view without repo argument (#7441) 2023-05-15 11:08:01 +12:00
vwkd
d349ba185a
fix empty default description for local repository (#7383) 2023-05-04 09:21:12 +12:00
Alexander Seiler
218f29f296
Correct some typos 2023-04-21 03:51:31 +02:00
Sam Coe
dbc2f05124
Update go-gh to v2 (#7299)
* Update go-gh

* Update code for go-gh v2
2023-04-16 15:34:23 +10:00
Kousik Mitra
7ee35e43cc
Enable owner flag to take multiple values for searching 2023-04-12 10:37:09 +05:30
Nate Smith
6e1693eaf0
Merge pull request #7241 from cli/repo-list-owner-test
repo list: add test for invalid owner error
2023-03-29 16:13:41 -07:00
Nate Smith
72f64cc634
Merge pull request #7080 from heaths/issue7055
Retry fetching repo from template
2023-03-29 16:09:51 -07:00
Benjamin Chadwick
82662685e3
Autocomplete branch flags (#6031)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-03-29 16:09:44 +00:00
Heath Stewart
d104926ce2
Resolve lint error 2023-03-29 08:18:05 -07: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
Mislav Marohnić
944df28f16
repo list: add test for invalid owner error 2023-03-29 11:32:19 +02:00
Marco Carvalho
3b23978114
repo sync: clearer error message with actionable hint (#7110)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-03-28 18:43:31 +00:00
աɨռɢӄաօռɢ
1f0e53319e
fix: throw error for non-existing org / repo with non-zero status in repo list (#7240) 2023-03-28 19:48:38 +02:00
Zhengyuan Zhang
0b9b1f710f
use Prompter for pkg/cmd/repo/archive (#7083) 2023-03-20 00:00:16 +00:00
Sam Coe
f7930a430b
Dont follow redirects on repo delete (#7106) 2023-03-14 04:38:57 +11:00
Sam Coe
cff5dec2ce
Make repo sync git fetch authenticated (#7139) 2023-03-13 13:00:37 +11:00
Nate Smith
aae4023cdc use t.Cleanup(m.Verify) 2023-03-09 16:43:48 -08:00
vilmibm
b5c3d982b1 new tooling for assertions about prompting 2023-03-09 16:40:27 -08:00
Sam Coe
35a24caed2
Standardize retry mechanism (#7027) 2023-03-02 23:06:30 +00:00
vilmibm
b85a22cc71 use new cfg.Authentication() 2023-03-01 16:12:32 -08:00
Nate Smith
0bc2f28575
Merge branch 'trunk' into unarchive 2023-03-01 17:59:50 -06:00
Hamish 'James' Coates
394b23aa9b
Include new line after existing fork error log (#7030) 2023-02-28 00:53:25 +00:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods (#7049) 2023-02-28 00:24:45 +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
zhangzhengyuan
eb8bfcfe96 use prompter for pkg/cmd/repo/unarchive 2023-02-20 16:22:51 -08:00
zhangzhengyuan
125c67b3fb add command gh repo unarchive 2023-02-20 10:35:50 -08:00
Des Preston
94fe6c7764
Fix set-default interactive not showing all remotes (#6969) 2023-02-07 23:11:38 +00:00
Sam Coe
801c38a24f
Add visibility warning to repo edit (#6980)
Add visibility warning to repo edit

---------

Co-authored-by: Lai Tuan Anh <laituananh1711@gmail.com>
2023-02-08 08:53:22 +11: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
Damien Sedgwick
bab1b00c39
Rename --confirm flag to --yes for various destructive commands (#6915) 2023-01-26 12:48:21 +01:00
Damien Sedgwick
55053df592
repo delete: change confirmation flag to --yes (#6911) 2023-01-25 17:33:53 +01:00
azu
700bda3ad8
Add gh repo edit --enable-discussions (#6903)
* Add gh repo edit --enable-discussions
* Add hasDiscussionsEnabled to JSON fields for repos

Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-01-24 18:13:05 +01:00