Mislav Marohnić
db68dfa47b
config get: support getting oauth_token from keyring
...
Since we've advertised `gh config get -h HOST oauth_token` as an API for outside scripts and extensions to access the token, this should continue working even if the token was technically stored in keyring and not in the config file.
2023-03-09 16:35:07 +01:00
Mislav Marohnić
1933fc2f69
codespace ssh: fix "connection reset by peer"
2023-03-09 15:14:39 +01:00
Sam Coe
50ddb369a6
Manually get current user name rather than use api client ( #7114 )
2023-03-09 11:50:12 +11:00
JP Ungaretti
03730c2c33
Merge pull request #6848 from cli/jungaretti/fix-jupyter-spinner
...
Fix progress indicator bug with generic RunWithProgress function
2023-03-08 09:51:21 -07:00
Mislav Marohnić
32afc5d67f
pr diff: sanitize control characters for terminal output
2023-03-08 16:59:35 +01:00
Sam Coe
b74ba55e3f
Make auth refresh more convenient with secure storage ( #7098 )
2023-03-08 10:19:42 +11:00
JP Ungaretti
0673dcccb1
Fix delete tests
2023-03-07 19:29:44 +00:00
JP Ungaretti
39a1dc90af
Match return style
2023-03-07 19:05:49 +00:00
JP Ungaretti
c347737ace
Fix build errors
2023-03-07 18:47:27 +00:00
JP Ungaretti
5a7f779cf7
Merge branch 'trunk' into jungaretti/fix-jupyter-spinner
2023-03-07 18:43:34 +00:00
Sam Coe
05bf29d88e
Introduce GH_PATH environment variable ( #7025 )
2023-03-07 11:30:10 +11:00
Sam Coe
4636931b02
Use default host for auth token command if a hostname is not provided ( #7094 )
2023-03-07 10:34:54 +11:00
Caleb Brose
c9992b41a2
Always open new vscode window in gh cs code ( #7092 )
...
* Open new vscode window
* Tests
2023-03-06 22:50:43 +00: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
Nate Smith
fe78331342
Merge pull request #7038 from yanskun/feat/add-open-num-commit-hash
...
Made it possible to do open num only commit hash with Browse Command
2023-03-01 17:38:34 -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
Sam Coe
df83dc2d58
Add ability to store tokens in encrypted storage ( #7043 )
2023-02-28 00:04:53 +00:00
Sam Coe
a33e12a21d
Refactor Config interface in preperation for encrypted token storage ( #7033 )
2023-02-28 10:51:12 +11:00
Naoya Yasuda
19788459cd
feat: add open num hash to browse command
2023-02-25 23:22:39 +09:00
Caleb Brose
57c73e8239
Add --repo filter to more gh codespaces commands ( #6669 )
...
* Add --repo flag to commands
* Example of using common args
* Add -r to stop
* Add validation to the add helper
* Skip prompt for single option
* Migrate (mostly) everything to addGetOrChooseCodespaceCommandArgs
* Fix typo in logsCmd
* Use R instead of r
* Update a couple -r usages
* Refactor to codespace_selector
* Clean up selector, apply it in a couple examples
* Use apiClient instead in constructor
* Restore addDeprecatedRepoShorthand
* Finish implementing the commands
* Update existing tests to use the selector
* Add tests for selector
* linter
* Catch case where there's no conflict
* Make the flag persistent for ports
* Add support to stop
2023-02-22 17:16:36 -06: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
Sam Coe
08a1231178
Allow retrieving projectItems in JSON and allow adding/removing user owned projects ( #7007 )
2023-02-15 22:14:59 +00:00
Roshan Padaki
f797213d38
Allow adding named gpg keys ( #6993 )
2023-02-12 23:43:53 +00:00
JP Ungaretti
6a150d57e0
Adopt in delete.go
2023-02-09 23:21:41 +00:00
JP Ungaretti
a388358348
Merge branch 'trunk' into jungaretti/fix-jupyter-spinner
2023-02-09 23:18:22 +00:00
JP Ungaretti
1b88915a4d
Rename f to run
2023-02-09 23:16:12 +00:00
JP Ungaretti
a848cd1bd0
Adopt in stop.go
2023-02-09 23:13:44 +00:00
JP Ungaretti
bc789b2787
Adopt in ssh.go
2023-02-09 22:53:48 +00:00
JP Ungaretti
970088a7af
Adopt in ports.go
2023-02-09 22:52:04 +00:00
JP Ungaretti
f77eb5f932
Adopt in list.go
2023-02-09 22:48:29 +00:00
JP Ungaretti
123380ac83
Adopt in edit.go
2023-02-09 22:36:38 +00:00
JP Ungaretti
38397f11be
Adopt in delete.go
2023-02-09 22:30:57 +00:00
JP Ungaretti
d815d54bd2
Adopt in create.go
2023-02-09 22:24:09 +00:00
JP Ungaretti
43783a33a2
Move helper to iostreams
2023-02-09 22:23:58 +00:00
Owen Voke
fd0af5e3aa
feat: add --releases option to gh browse ( #6996 )
2023-02-09 10:14:00 +11: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
Robin Neatherway
78fb90956c
Teach gh cs create to use current repo as default ( #6596 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-02-07 20:05:38 +00:00
Luan Vieira
d4c9890c5a
Default to authenticated user on codespace delete ( #6944 )
...
When a username option is not provided for the `gh codespace delete`
command, we will use the authenticated user's login as the default to
avoid deleting anyone else's codespace by mistake.
Prior to this change, running `gh codespace delete --org MYORG --all`
would fetch all of the codespacese associated with the org regardless of
user and then only delete the ones associated with the authenticated
user, which would lead to 404 errors when MYORG had codespaces owned by
members other than the authenticated member.
Co-authored-by: Victoria Dye <vdye@github.com>
Co-authored-by: Lessley Dennington <ldennington@github.com>
2023-02-07 20:46:08 +01:00
Josh Soref
e6d6427704
Support Fork with Default Branch Only
2023-02-07 10:00:39 -05:00
Sam Coe
138da0f969
Fix adding/removing projects using flags for edit commands ( #6955 )
2023-02-06 08:28:38 +11:00
vilmibm
b8a6c1daa7
include readme viewing in small help
2023-02-02 13:15:10 -08:00
Nate Smith
5dea3a923f
Merge branch 'trunk' into gh-ext-browse-followup
2023-02-02 12:27:17 -08:00
vilmibm
c9590f36d9
longer small help
2023-02-02 12:18:13 -08:00