add version field

This commit is contained in:
booleanmaybe 2026-04-19 22:05:00 -04:00
parent f4e425b08b
commit 8a68544ac9
6 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,4 @@
version: 0.5.0
description: | description: |
Default tiki workflow. A lightweight kanban-style flow with Default tiki workflow. A lightweight kanban-style flow with
Backlog → Ready → In Progress → Review → Done, plus Story / Bug / Spike / Epic task types. Backlog → Ready → In Progress → Review → Done, plus Story / Bug / Spike / Epic task types.

View file

@ -21,6 +21,8 @@ var lastConfigFile string
// Config holds all application configuration loaded from config.yaml // Config holds all application configuration loaded from config.yaml
type Config struct { type Config struct {
Version string `mapstructure:"version"`
// Logging configuration // Logging configuration
Logging struct { Logging struct {
Level string `mapstructure:"level"` // "debug", "info", "warn", "error" Level string `mapstructure:"level"` // "debug", "info", "warn", "error"
@ -200,6 +202,7 @@ type viewsFileData struct {
// kept in config package to avoid import cycle with plugin package. // kept in config package to avoid import cycle with plugin package.
// all top-level sections must be listed here to survive round-trip serialization. // all top-level sections must be listed here to survive round-trip serialization.
type workflowFileData struct { type workflowFileData struct {
Version string `yaml:"version,omitempty"`
Description string `yaml:"description,omitempty"` Description string `yaml:"description,omitempty"`
Statuses []map[string]interface{} `yaml:"statuses,omitempty"` Statuses []map[string]interface{} `yaml:"statuses,omitempty"`
Types []map[string]interface{} `yaml:"types,omitempty"` Types []map[string]interface{} `yaml:"types,omitempty"`

View file

@ -13,6 +13,7 @@ import (
// WorkflowFile represents the YAML structure of a workflow.yaml file // WorkflowFile represents the YAML structure of a workflow.yaml file
type WorkflowFile struct { type WorkflowFile struct {
Version string `yaml:"version,omitempty"`
Description string `yaml:"description,omitempty"` Description string `yaml:"description,omitempty"`
Views viewsSectionConfig `yaml:"views"` Views viewsSectionConfig `yaml:"views"`
} }

View file

@ -1,3 +1,4 @@
version: 0.5.0
description: | description: |
Bug tracker for triaging and resolving customer-reported issues. Bug tracker for triaging and resolving customer-reported issues.
Six statuses (Open → Triaged → In Progress → In Review → Verified, plus Won't Fix), Six statuses (Open → Triaged → In Progress → In Review → Verified, plus Won't Fix),

View file

@ -1,3 +1,4 @@
version: 0.5.0
description: | description: |
Kanban-style workflow for small-team software work. Five statuses Kanban-style workflow for small-team software work. Five statuses
(Backlog → Ready → In Progress → Review → Done) and four task types (Backlog → Ready → In Progress → Review → Done) and four task types

View file

@ -1,3 +1,4 @@
version: 0.5.0
description: | description: |
Minimal two-lane todo list. One task type, two statuses (Todo → Done). Minimal two-lane todo list. One task type, two statuses (Todo → Done).
Use when you just want a lightweight checklist and don't need prioritization, Use when you just want a lightweight checklist and don't need prioritization,