config

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveProject

func SaveProject(pmPath string, project *Project) error

Types

type AutoSync

type AutoSync struct {
	PullOnList   bool `yaml:"pull_on_list,omitempty"`
	PushOnChange bool `yaml:"push_on_change,omitempty"`
}

type Project

type Project struct {
	Prefix         string   `yaml:"prefix"`
	AssigneeDomain string   `yaml:"assignee_domain,omitempty"`
	Members        []string `yaml:"members,omitempty"`
	Sync           Sync     `yaml:"sync,omitempty"`
}

func LoadProject

func LoadProject(pmPath string) (*Project, error)

type Sync

type Sync struct {
	Branch           string   `yaml:"branch,omitempty"`
	AutoSync         AutoSync `yaml:"auto_sync,omitempty"`
	ConflictStrategy string   `yaml:"conflict_strategy,omitempty"`
}

type Workflow

type Workflow struct {
	States       []string            `yaml:"states"`
	InitialState string              `yaml:"initial_state"`
	StateGroups  map[string][]string `yaml:"state_groups"`
}

func LoadWorkflow

func LoadWorkflow(path string) (*Workflow, error)

func (*Workflow) GetCompletedStates

func (w *Workflow) GetCompletedStates() []string

GetCompletedStates returns the list of states in the "completed" state group Returns nil if no completed group is defined

func (*Workflow) GetStateGroup

func (w *Workflow) GetStateGroup(groupName string) []string

GetStateGroup returns the states in a named state group Returns nil if the group doesn't exist

func (*Workflow) IsCompleted

func (w *Workflow) IsCompleted(status string) bool

IsCompleted checks if a given status is in the "completed" state group

func (*Workflow) IsValidState

func (w *Workflow) IsValidState(state string) bool

Jump to

Keyboard shortcuts

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