{"modulePath":"github.com/hellofresh/github-cli","version":"v0.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Functions\n\n```go\nfunc NewContext(ctx context.Context, configFile string) (context.Context, error)\n```\nNewContext loads a configuration file into the Spec struct\n\n```go\nfunc OverrideConfig(ctx context.Context, config *Spec) context.Context\n```\nOverrideConfig writes a new context with the the new configuration\n\n## Types\n\n```go\ntype BranchProtections map[string][]string\n```\nBranchProtections represents github's branch protections\n\n```go\ntype Collaborator struct {\n\tUsername   string\n\tPermission string\n}\n```\nCollaborator represents a github collaborator\n\n```go\ntype Github struct {\n\tOrganization  string\n\tToken         string\n\tTeams         []*Team\n\tCollaborators []*Collaborator\n\tLabels        []*Label\n\tWebhooks      []*Webhook\n\tProtections   BranchProtections\n\t// RemoveDefaultLabels Remove GitHub's default labels?\n\tRemoveDefaultLabels bool\n}\n```\nGithub represents the github configurations\n\n```go\ntype Label struct {\n\tName  string\n\tColor string\n}\n```\nLabel represents a github label\n\n```go\ntype Spec struct {\n\tGithub        Github\n\tGithubTestOrg Github\n}\n```\nSpec represents the global app configuration\n\n```go\nfunc WithContext(ctx context.Context) *Spec\n```\nWithContext returns a logrus logger from the context\n\n```go\ntype Team struct {\n\tID         int\n\tPermission string\n}\n```\nTeam represents a github team\n\n```go\ntype Webhook struct {\n\tType   string\n\tConfig map[string]interface{}\n}\n```\nWebhook represents a github webhook\n\n","path":"github.com/hellofresh/github-cli/pkg/config","name":"config","synopsis":"","isRedistributable":true}
