Commit graph

283 commits

Author SHA1 Message Date
Greggory Rothmeier
4b36dc031f
Add flag to list codespaces under an organization (#5807)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-21 13:57:40 +00:00
Greggory Rothmeier
9b86fe41c0
Simplify codespace picker (#5826)
This doesn't change anything about how it's formatted, but extracts a
new function formatCodespacesForSelect so we can test and see how it
treats the different combinations of codespaces.

Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-06-21 15:47:11 +02:00
Gabe D
95b7533a5f Uncomment retention period flag from create cmd 2022-06-20 18:40:56 +00:00
Jake Shorty
df3b40999e Flip conditional 2022-06-20 17:13:42 +00:00
Jake Shorty
832f35e000 PreFlight => BillableOwner for less confusion 2022-06-20 17:12:07 +00:00
Jake Shorty
2b9f9bb92a Add test for individual case 2022-06-19 18:38:38 +00:00
Jake Shorty
454b3489aa Add test for billable owner in stdout 2022-06-17 22:45:04 +00:00
Jake Shorty
e8bde879b2 Always show org billable owner in stdout 2022-06-17 22:44:43 +00:00
Jake Shorty
b3d2cc6e37 Handle 404s smoothly during create on codespaces pre-flight 2022-06-17 21:09:38 +00:00
Jake Shorty
09f926c475 Generate test mocks for new API func 2022-06-17 20:15:53 +00:00
Jake Shorty
1c8b26c5d8 Remove unused test function 2022-06-17 19:59:29 +00:00
Jake Shorty
08446c8fcd Add new API client function to tests 2022-06-17 19:52:37 +00:00
Jake Shorty
7e4ec074f5 Use expanded copy for org billable owner 2022-06-17 18:42:31 +00:00
Jake Shorty
cad9a050be Get basics working with codespaces pre-flight during creation 2022-06-16 15:42:29 +00:00
Jake Shorty
edf83af07a Add Codespaces pre-flight request to API client 2022-06-15 21:17:04 +00:00
Caleb Brose
83153fe9e5 Cleanups from PR comments 2022-06-14 14:33:41 +00:00
Caleb Brose
9f6e1c774b Check for key already exists 2022-06-13 19:31:44 +00:00
Caleb Brose
919dcebc45 Rename Context 2022-06-13 19:16:16 +00:00
Caleb Brose
b5580f9503 Refactor inferfaces from PR comments 2022-06-13 19:04:29 +00:00
cmbrose
ec58990715 Typo 2022-06-10 12:38:10 -05:00
cmbrose
eebef06c67 Merge main and use func options again 2022-06-07 12:27:29 -05:00
cmbrose
9095556372 Merge remote-tracking branch 'upstream/trunk' into jungaretti/no-ssh-keys 2022-06-07 12:07:03 -05:00
cmbrose
60032db5eb Use function options pattern 2022-06-07 11:04:08 -05:00
Greggory Rothmeier
f15a8ca335
Extract LiveshareSession interface (#5725)
This will make it possible to inject a mock liveshare session for testing
2022-06-06 15:52:52 +02:00
cmbrose
8e8632ddab Prepend flag for scp support 2022-06-03 14:24:15 -05:00
cmbrose
2209a84c9d More cleanup 2022-06-03 14:07:41 -05:00
cmbrose
f67ca53c07 Refactor ssh_keys to a more common location 2022-06-03 13:39:52 -05:00
Jeff Hubbard
866eccc202
Merge pull request #5705 from 8Gitbrix/users/ajeyaseelan/fix-edit-cmd
codespace edit: interactively choose a codespace
2022-06-03 10:04:31 -07:00
Fengyi Li
04ed77ddf0
Update prebuild availability status display at codespace creation (#5737) 2022-06-02 17:20:12 +00:00
Mislav Marohnić
afb69d2d31 cs edit: 💅 implementation and tests 2022-06-01 17:18:17 +02:00
JP Ungaretti
a1629c70c0 Generate codespaces key 2022-05-31 17:19:16 -07:00
cmbrose
ac630880c6 Refactor to WithOptions 2022-05-31 15:52:16 -05:00
JP Ungaretti
83a9b87397 Fix errors 2022-05-26 21:49:59 +00:00
JP Ungaretti
76090a2ea7 Add key to RPC call 2022-05-26 21:45:20 +00:00
Ashwin Jeyaseelan
61553e5e8a Added nit, removed last test due to survey.ask call wanting a terminal 2022-05-26 17:01:30 +00:00
Greggory Rothmeier
77507cd94c
Bugfix: Retention period is being sent to the API as 0 (#5706)
Co-authored-by: Jose Garcia <josebalius@github.com>
2022-05-25 17:36:27 +02:00
Ashwin Jeyaseelan
c2c4afdf6d Updated edit.go 2022-05-24 16:39:57 +00:00
Mark Phelps
669b0fa981 dont need assignment 2022-05-17 13:36:15 +00:00
Mark Phelps
48bb894277 filter out internal ports from gh cs ports list 2022-05-16 12:40:24 -07:00
Greggory Rothmeier
a0a9099037
Hide retention-period flag (#5607)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-05-10 19:49:55 +02:00
Greggory Rothmeier
06153770a9
Merge pull request #5504 from greggroth/gregg/retention-period
Add support for setting codespace retention-period
2022-05-10 18:21:55 +02:00
Thomas Horstmeyer
d9d3d7ba8e Fix nil pointer exception in codespace selection 2022-05-10 16:27:25 +01:00
Jose Garcia
cd6386cf64 Update order 2022-05-05 15:07:29 -04:00
Jose Garcia
ea7d9288e3 Handle star in display name 2022-05-05 08:21:12 -04:00
Jose Garcia
801cd3b282
Merge pull request #5571 from cli/jg/add-display-name
codespaces: add Display Name to the list command
2022-05-04 09:38:27 -04:00
Jose Garcia
7191960694 Add Display Name to the list command 2022-05-03 16:17:53 -04:00
JP Ungaretti
2dd81671a9
Remove empty return 2022-05-03 09:40:07 -07:00
Caleb Brose
55bce59ab7
Add command to open codespaces in JupyterLab
Add command to open codespaces in JupyterLab
2022-04-28 16:11:14 -05:00
JP Ungaretti
3526d25a1e Remove mention of function 2022-04-28 20:55:43 +00:00
JP Ungaretti
8aa132e6c6 Use named return values 2022-04-28 18:42:05 +00:00