Add capability to filter codespaces by repo owner (#7347)
* Add capability to filter codespaces by repo owner * Replace Flags with PersistentFlags * Reword flag description * Update test seed * Add mutual exclusion --------- Co-authored-by: Caleb Brose <5447118+cmbrose@users.noreply.github.com>
This commit is contained in:
parent
50e16890f8
commit
d0207a2ede
6 changed files with 146 additions and 38 deletions
|
|
@ -128,11 +128,18 @@ func (a *API) GetUser(ctx context.Context) (*User, error) {
|
|||
return &response, nil
|
||||
}
|
||||
|
||||
// RepositoryOwner represents owner of a repository
|
||||
type RepositoryOwner struct {
|
||||
Type string `json:"type"`
|
||||
Login string `json:"login"`
|
||||
}
|
||||
|
||||
// Repository represents a GitHub repository.
|
||||
type Repository struct {
|
||||
ID int `json:"id"`
|
||||
FullName string `json:"full_name"`
|
||||
DefaultBranch string `json:"default_branch"`
|
||||
ID int `json:"id"`
|
||||
FullName string `json:"full_name"`
|
||||
DefaultBranch string `json:"default_branch"`
|
||||
Owner RepositoryOwner `json:"owner"`
|
||||
}
|
||||
|
||||
// GetRepository returns the repository associated with the given owner and name.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue