mergeback

package
v0.3.38 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNoop     = "noop"
	StatusMerged   = "merged"
	StatusConflict = "conflict"
	StatusError    = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Status       string   `json:"status"`
	QuestID      string   `json:"quest_id,omitempty"`
	WorkerID     string   `json:"worker_id,omitempty"`
	MasterID     string   `json:"master_id,omitempty"`
	SourceBranch string   `json:"source_branch,omitempty"`
	TargetBranch string   `json:"target_branch,omitempty"`
	MergeBase    string   `json:"merge_base,omitempty"`
	Conflicts    []string `json:"conflicts,omitempty"`
	Message      string   `json:"message,omitempty"`
}

Result is the persisted and mutation-visible outcome of a merge-back attempt.

func ForQuest

func ForQuest(ctx context.Context, store *state.Store, questID string) Result

ForQuest merges the first attached worker session's branch into its master. It never returns an error because quest status changes must not roll back.

func ForWorker

func ForWorker(ctx context.Context, store *state.Store, workerID, questID string) Result

ForWorker conservatively merges a worker branch into its master branch.

Jump to

Keyboard shortcuts

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