analyze

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL