Versions in this module Expand all Collapse all v0 v0.0.3 Feb 1, 2026 Changes in this version + func CreateLabel(repoFullName string, label LabelConfig) error + func CreateWebhook(repoFullName string, name string, config WebhookConfig) error + func DisableDependabotSecurityUpdates(repoFullName string) error + func EditLabel(repoFullName string, label LabelConfig) error + func EnableDependabotAlerts(repoFullName string) error + func EnableDependabotSecurityUpdates(repoFullName string) error + func FindGitHubConfig(registryDir, specifiedPath string) (string, error) + func SetBranchProtection(repoFullName, branch string, config BranchProtectionConfig) error + func UpdateSecurityAndAnalysis(repoFullName string, secretScanning, pushProtection bool) error + func UpdateWebhook(repoFullName string, hookID int, config WebhookConfig) error + type Aggregate struct + Sets []*ChangeSet + func NewAggregate() *Aggregate + func (a *Aggregate) Add(cs *ChangeSet) + func (a *Aggregate) PrintSummary() + func (a *Aggregate) ReposWithChanges() int + func (a *Aggregate) TotalChanges() (creates, updates, deletes, skips int) + type AllowDeletions struct + Enabled bool + type AllowForcePushes struct + Enabled bool + type BranchProtectionConfig struct + AllowDeletions bool + AllowForcePushes bool + Branch string + DismissStale bool + EnforceAdmins bool + RequireCodeOwnerReviews bool + RequireConversationResolution bool + RequireLinearHistory bool + RequiredReviews int + RequiredStatusChecks []string + type Change struct + Category ChangeCategory + Description string + Details map[string]string + Name string + Type ChangeType + type ChangeCategory string + const CategoryLabel + const CategoryProtection + const CategorySecurity + const CategoryWebhook + type ChangeSet struct + Changes []Change + Repo string + func NewChangeSet(repo string) *ChangeSet + func SyncBranchProtection(repoFullName string, config *GitHubConfig, dryRun bool) (*ChangeSet, error) + func SyncLabels(repoFullName string, config *GitHubConfig, dryRun bool) (*ChangeSet, error) + func SyncSecuritySettings(repoFullName string, config *GitHubConfig, dryRun bool) (*ChangeSet, error) + func SyncWebhooks(repoFullName string, config *GitHubConfig, dryRun bool) (*ChangeSet, error) + func (cs *ChangeSet) Add(category ChangeCategory, changeType ChangeType, name, description string) + func (cs *ChangeSet) AddWithDetails(category ChangeCategory, changeType ChangeType, name, description string, ...) + func (cs *ChangeSet) Count() (creates, updates, deletes, skips int) + func (cs *ChangeSet) CountByCategory() map[ChangeCategory]int + func (cs *ChangeSet) HasChanges() bool + func (cs *ChangeSet) Print(verbose bool) + type ChangeType string + const ChangeCreate + const ChangeDelete + const ChangeSkip + const ChangeUpdate + type EnforceAdmins struct + Enabled bool + type GitHubBranchProtection struct + AllowDeletions *AllowDeletions + AllowForcePushes *AllowForcePushes + EnforceAdmins *EnforceAdmins + RequiredConversationResolution *RequiredConversationResolution + RequiredLinearHistory *RequiredLinearHistory + RequiredPullRequestReviews *RequiredPullRequestReviews + RequiredStatusChecks *RequiredStatusChecks + func GetBranchProtection(repoFullName, branch string) (*GitHubBranchProtection, error) + type GitHubConfig struct + BranchProtection []BranchProtectionConfig + Labels []LabelConfig + Security SecurityConfig + Version int + Webhooks map[string]WebhookConfig + func LoadGitHubConfig(path string) (*GitHubConfig, error) + func (c *GitHubConfig) Validate() error + type GitHubLabel struct + Color string + Description string + Name string + func ListLabels(repoFullName string) ([]GitHubLabel, error) + type GitHubRepoResponse struct + SecurityAndAnalysis *SecurityAndAnalysis + type GitHubSecurityStatus struct + DependabotAlerts bool + DependabotSecurityUpdates bool + SecretScanning bool + SecretScanningPushProtection bool + func GetSecuritySettings(repoFullName string) (*GitHubSecurityStatus, error) + type GitHubWebhook struct + Active bool + Config GitHubWebhookConfig + Events []string + ID int + Name string + func ListWebhooks(repoFullName string) ([]GitHubWebhook, error) + type GitHubWebhookConfig struct + ContentType string + InsecureSSL string + URL string + type LabelConfig struct + Color string + Description string + Name string + type RequiredConversationResolution struct + Enabled bool + type RequiredLinearHistory struct + Enabled bool + type RequiredPullRequestReviews struct + DismissStaleReviews bool + RequireCodeOwnerReviews bool + RequiredApprovingReviewCount int + type RequiredStatusChecks struct + Contexts []string + Strict bool + type SecurityAndAnalysis struct + DependabotSecurityUpdates *SecurityFeature + SecretScanning *SecurityFeature + SecretScanningPushProtection *SecurityFeature + type SecurityConfig struct + DependabotAlerts bool + DependabotSecurityUpdates bool + SecretScanning bool + SecretScanningPushProtection bool + type SecurityFeature struct + Status string + type WebhookConfig struct + Active *bool + ContentType string + Events []string + Secret string + URL string v0.0.2 Jan 31, 2026 Changes in this version + func AddSetupCommand(root *cobra.Command) + func AddSetupCommands(root *cobra.Command)