ops

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseResult

type CloseResult struct {
	AlreadyClosed bool
}

func CloseTask

func CloseTask(taskName string, abandon bool, logger Logger) (CloseResult, error)

CloseTask closes a task and frees its workspace. If abandon is true, uncommitted changes are discarded.

type Logger

type Logger interface {
	Info(msg string)
	Warning(msg string)
	Success(msg string)
}

Logger is an optional callback sink for long-running operations. Implementations must be safe to call from the current goroutine.

type MergeResult

type MergeResult struct {
	AlreadyClosed bool
	AlreadyMerged bool
}

func MergeTask

func MergeTask(taskName, message string, logger Logger) (MergeResult, error)

MergeTask squashes task commits into the base branch and marks the task as merged (resting). message is used as the squash commit message header; commit subjects are appended.

Jump to

Keyboard shortcuts

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