cli/pkg
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
..
cmd Default to authenticated user on codespace delete (#6944) 2023-02-07 20:46:08 +01:00
cmdutil Split issue commands into "General" vs. "Targeted" 2022-12-20 17:56:51 +01:00
extensions Go 1.19: fix comment formatting for moq-generated mocks 2022-12-12 16:58:25 +01:00
findsh go fmt 2021-12-02 16:12:24 +01:00
githubtemplate Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
httpmock show token scopes on auth status (#6546) 2023-01-25 16:25:00 +01:00
iostreams Fix commands that use iostreams RefreshScreen (#6607) 2022-11-14 16:08:00 +01:00
jsoncolor api: avoid HTML-escaping JSON output 2022-07-25 13:10:44 +02:00
liveshare Linter and comment 2023-01-19 20:44:38 -06:00
markdown Change markdown wrap limit match terminal width (#6016) 2022-09-01 07:36:25 +00:00
prompt fix linting 2022-07-27 14:15:27 -05:00
search Add search commits command (#6817) 2023-01-17 19:35:09 +00:00
set Add GH_HOST to hosts list if it has corresponding auth token (#5087) 2022-01-29 07:37:24 +00:00
ssh Even better config support 2022-07-22 11:03:14 -05:00
surveyext feat: Fallback to notepad on Windows 2022-08-18 17:05:14 -04:00