Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #496 from ebuckle/3101
Browse files Browse the repository at this point in the history
Add authentication field to repository list
  • Loading branch information
hhellyer authored Jun 15, 2020
2 parents 9fb96a2 + a973488 commit 50b3309
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pkg/utils/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ import "fmt"
type (
// TemplateRepo represents a template repository.
TemplateRepo struct {
Description string `json:"description"`
URL string `json:"url"`
Name string `json:"name"`
ID string `json:"id"`
Enabled bool `json:"enabled"`
Protected bool `json:"protected"`
ProjectStyles []string `json:"projectStyles"`
Description string `json:"description"`
URL string `json:"url"`
Name string `json:"name"`
ID string `json:"id"`
Enabled bool `json:"enabled"`
Protected bool `json:"protected"`
ProjectStyles []string `json:"projectStyles"`
Authentication Authentication `json:"authentication,omitempty"`
}
// Authentication represents a template respository's authentication.
Authentication struct {
Username string `json:"username,omitempty"`
}
)

Expand Down

0 comments on commit 50b3309

Please sign in to comment.