diff --git a/cmd/ghcs/delete.go b/cmd/ghcs/delete.go index d79bcc448..c357171d1 100644 --- a/cmd/ghcs/delete.go +++ b/cmd/ghcs/delete.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "strings" "github.com/github/ghcs/api" "github.com/github/ghcs/cmd/ghcs/output" @@ -124,7 +125,7 @@ func DeleteByRepo(repo string) error { var deleted bool for _, c := range codespaces { - if c.RepositoryNWO != repo { + if !strings.EqualFold(c.RepositoryNWO, repo) { continue } deleted = true