Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Label ¶
type Protection ¶
type Protection struct {
Branch string `yaml:"branch"`
RequiredStatusChecks *RequiredStatusChecks `yaml:"requiredStatusChecks,omitempty"`
EnforceAdmins *bool `yaml:"enforceAdmins,omitempty"`
RequiredPullRequestReviews *RequiredPullRequestReviews `yaml:"requiredPullRequestReviews,omitempty"`
Restrictions *Restrictions `yaml:"restrictions,omitempty"`
}
func (*Protection) ToState ¶
func (sp *Protection) ToState() *state.Protection
ToState returns a new state
type Protections ¶
type Protections []Protection
func LoadProtectionsSpecFromState ¶
func LoadProtectionsSpecFromState(states []state.Protection) Protections
type Repo ¶
type Repo struct {
Description *string `yaml:"description"`
Homepage *string `yaml:"homepage"`
Private *bool `yaml:"private"`
AllowMergeCommit *bool `yaml:"allowMergeCommit"`
AllowSquashMerge *bool `yaml:"allowSquashMerge"`
AllowRebaseMerge *bool `yaml:"allowRebaseMerge"`
Topics []string `yaml:"topics"`
}
func LoadRepoSpecFromState ¶
type RequiredStatusChecks ¶
type Restrictions ¶
type Spec ¶
type Spec struct {
Repo *Repo `yaml:"repo,omitempty"`
Labels Labels `yaml:"labels,omitempty"`
Protections Protections `yaml:"protections,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.