merger

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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. Repositories use bounded workers; PRs within a repository remain sequential.

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