Documentation
¶
Overview ¶
Package analyze contains the logic for analyzing Git branches based on configuration and merge status.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Branches ¶ added in v0.2.0
func Branches( ctx context.Context, branches []types.BranchInfo, mergedStatus map[string]bool, cfg config.Config, currentBranchName string, ) ([]types.AnalyzedBranch, error)
Branches categorizes branches based on merge status, age, and protection rules. It takes raw branch info, a map indicating which branches are merged into the primary main branch, the application configuration, and the name of the currently checked-out branch. It now also performs a 'git cherry -v' check for non-merged, non-protected branches.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.