cli/pkg/cmd
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
..
actions gh: list help topics in help output 2022-02-18 18:39:30 +01:00
alias Change alias list output format to YAML (#6603) 2022-12-13 22:49:04 +01:00
api Warn against Windows absolute path when using gh api (#6895) 2023-01-24 17:40:15 +01:00
auth show token scopes on auth status (#6546) 2023-01-25 16:25:00 +01:00
browse Migrate to the new Cobra command grouping feature 2022-11-09 16:42:13 +01:00
codespace Default to authenticated user on codespace delete (#6944) 2023-02-07 20:46:08 +01:00
completion Bump github.com/spf13/cobra from v1.4.0 to v1.5.0 (#6196) 2022-09-06 09:43:40 +04:00
config Use go-gh config package (#5771) 2022-06-23 11:50:04 +00:00
extension include readme viewing in small help 2023-02-02 13:15:10 -08:00
factory select base repo correctly when only one remote 2023-01-03 11:58:48 -08:00
gist Merge remote-tracking branch 'origin' into cobra-update 2022-12-20 17:15:25 +01:00
gpg-key Rename --confirm flag to --yes for various destructive commands (#6915) 2023-01-26 12:48:21 +01:00
issue Fix adding/removing projects using flags for edit commands (#6955) 2023-02-06 08:28:38 +11:00
label Rename --confirm flag to --yes for various destructive commands (#6915) 2023-01-26 12:48:21 +01:00
pr Support Fork with Default Branch Only 2023-02-07 10:00:39 -05:00
release Add search commits command (#6817) 2023-01-17 19:35:09 +00:00
repo Support Fork with Default Branch Only 2023-02-07 10:00:39 -05:00
root Remove the feedback section from gh help 2022-11-09 16:43:18 +01:00
run Change uint8 to uint64 to hold job with more than 255 run attempts (#6935) 2023-01-31 08:55:41 +11:00
search Migrate search commands to new table printer and add headers (#6869) 2023-01-18 09:40:10 -08:00
secret Special case setting dependabot org secrets (#6941) 2023-02-02 07:12:22 +11:00
ssh-key Rename --confirm flag to --yes for various destructive commands (#6915) 2023-01-26 12:48:21 +01:00
status Linter fixes (#6722) 2022-12-12 15:27:32 +00:00
version Fix --version flag printing to stdout 2022-05-24 16:21:13 +02:00
workflow Merge remote-tracking branch 'origin' into cobra-update 2022-12-20 17:15:25 +01:00