Documentation
¶
Index ¶
- func EntityName(orgOption string, repoI ghrepo.Interface) string
- func NoRulesetsFoundError(orgOption string, repoI ghrepo.Interface, includeParents bool) error
- func ParseRulesForDisplay(rules []RulesetRule) string
- func RulesetSource(rs RulesetGraphQL) string
- type RulesetGraphQL
- type RulesetList
- type RulesetREST
- type RulesetResponse
- type RulesetRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoRulesetsFoundError ¶
func ParseRulesForDisplay ¶
func ParseRulesForDisplay(rules []RulesetRule) string
func RulesetSource ¶
func RulesetSource(rs RulesetGraphQL) string
Returns the source of the ruleset in the format "owner/name (repo)" or "owner (org)"
Types ¶
type RulesetGraphQL ¶
type RulesetList ¶
type RulesetList struct { TotalCount int Rulesets []RulesetGraphQL }
func ListOrgRulesets ¶
func ListRepoRulesets ¶
type RulesetREST ¶
type RulesetREST struct { Id int Name string Target string Enforcement string CurrentUserCanBypass string `json:"current_user_can_bypass"` BypassActors []struct { ActorId int `json:"actor_id"` ActorType string `json:"actor_type"` BypassMode string `json:"bypass_mode"` } `json:"bypass_actors"` Conditions map[string]map[string]interface{} SourceType string `json:"source_type"` Source string Rules []RulesetRule Links struct { Html struct { Href string } } `json:"_links"` }
type RulesetResponse ¶
type RulesetResponse struct { Level struct { Rulesets struct { TotalCount int Nodes []RulesetGraphQL PageInfo struct { HasNextPage bool EndCursor string } } } }
Click to show internal directories.
Click to hide internal directories.