Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatExclusionReport ¶
FormatExclusionReport formats a report of excluded branches
Types ¶
type AbandonedBranchReport ¶
type AbandonedBranchReport struct { MainBranchUpdated bool MainBranchLastCommit time.Time AbandonedBranches []BranchInfo TotalBranches int }
AbandonedBranchReport holds the analysis results
type BranchFilter ¶
type BranchFilter struct {
// contains filtered or unexported fields
}
BranchFilter handles branch filtering based on exclusion patterns
func NewBranchFilter ¶
func NewBranchFilter(excludePatterns []string) (*BranchFilter, error)
NewBranchFilter creates a new branch filter from exclusion patterns
func (*BranchFilter) FilterBranches ¶
func (f *BranchFilter) FilterBranches(branches []string) []string
FilterBranches filters a list of branches, removing excluded ones
func (*BranchFilter) GetExcludedBranches ¶
func (f *BranchFilter) GetExcludedBranches(branches []string) []string
GetExcludedBranches returns a list of branches that were excluded
func (*BranchFilter) ShouldExclude ¶
func (f *BranchFilter) ShouldExclude(branchName string) bool
ShouldExclude checks if a branch should be excluded based on the patterns
type BranchInfo ¶
type BranchInfo struct { Name string LastCommit time.Time Remote string IsAbandoned bool AbandonReason string }
BranchInfo holds information about a branch
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
Syncer handles repository synchronization between organizations
func New ¶
CLAUDE: Is there a reason, we return a pointer to Syncer? New creates a new Syncer instance
func (*Syncer) GenerateAbandonedBranchSummary ¶
GenerateAbandonedBranchSummary generates a summary of all abandoned branches across repos
func (*Syncer) SetBackupEnabled ¶
SetBackupEnabled enables or disables syncing to backup locations
func (*Syncer) SyncRepository ¶
SyncRepository synchronizes a repository across all configured organizations