merger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package merger implements the core logic for discovering, evaluating, and merging pull requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Merger

type Merger struct {
	// contains filtered or unexported fields
}

Merger handles the discovery, evaluation, and merging of pull requests.

func New

func New(client gh.Client, cfg *config.Config, console *output.Console) *Merger

New creates a new Merger with the given client and configuration.

func (*Merger) Run

func (m *Merger) Run(ctx context.Context) (*output.RunResult, error)

Run executes the merger logic and returns the result. Processing is strictly sequential: one repository at a time, one PR at a time.

func (*Merger) RunReport added in v0.3.0

func (m *Merger) RunReport(ctx context.Context) (*output.ReportResult, error)

RunReport executes the report mode: discovers open PRs across repositories, groups them by exact source branch name, filters and sorts the results.

func (*Merger) RunWithActions

func (m *Merger) RunWithActions(ctx context.Context, scanResult *output.RunResult) (*output.RunResult, error)

RunWithActions executes actions on a previously scanned result (used with --confirm).

func (*Merger) ScanDisplayLines added in v0.2.0

func (m *Merger) ScanDisplayLines() int

ScanDisplayLines returns the number of scan-time terminal lines written for live verbose output.

Jump to

Keyboard shortcuts

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