Merge branch 'trunk' of github.com:cli/cli into jg/choose-codespace-prompt

This commit is contained in:
Jose Garcia 2021-10-06 09:57:39 -04:00
commit 017632d63d
12 changed files with 72 additions and 245 deletions

View file

@ -6,6 +6,7 @@ type Codespace struct {
Name string `json:"name"`
CreatedAt string `json:"created_at"`
LastUsedAt string `json:"last_used_at"`
State string `json:"state"`
GUID string `json:"guid"`
Branch string `json:"branch"`
RepositoryName string `json:"repository_name"`
@ -14,6 +15,8 @@ type Codespace struct {
Environment Environment `json:"environment"`
}
const StateProvisioned = "provisioned"
// DisplayName returns the repository nwo and branch.
// If includeName is true, the name of the codespace is included.
// If includeGitStatus is true, the branch will include a star if