model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ValidRepoRef added in v0.1.1

func ValidRepoRef(repo string) bool

ValidRepoRef reports whether repo is a GitHub repository in owner/name form.

Types

type Item

type Item struct {
	Title           string        `json:"title"`
	Project         string        `json:"project"`
	Type            Type          `json:"type"`
	Stage           Stage         `json:"stage"`
	Trashed         bool          `json:"trashed,omitempty"`
	Body            string        `json:"body"`
	CreatedAt       time.Time     `json:"created_at"`
	UpdatedAt       time.Time     `json:"updated_at"`
	RemoteUpdatedAt time.Time     `json:"remote_updated_at,omitempty"`
	IssueNumber     int           `json:"issue_number"`
	Repo            string        `json:"repo"`
	SyncedRepo      string        `json:"synced_repo,omitempty"`
	PendingSync     SyncOperation `json:"pending_sync,omitempty"`
	SyncConflict    bool          `json:"sync_conflict,omitempty"`
	SyncError       string        `json:"sync_error,omitempty"`
	State           string        `json:"state,omitempty"`
}

func (Item) HasPendingSync added in v0.1.1

func (i Item) HasPendingSync() bool

func (Item) IsDone

func (i Item) IsDone() bool

func (Item) IsLocallyPurged added in v0.1.1

func (i Item) IsLocallyPurged() bool

func (Item) IsTrashed

func (i Item) IsTrashed() bool

func (Item) Labels

func (i Item) Labels() []string

func (Item) Matches

func (i Item) Matches(query string) bool

func (Item) NormalizedType added in v0.1.1

func (i Item) NormalizedType() Type

func (Item) PendingSyncLabel added in v0.1.1

func (i Item) PendingSyncLabel() string

func (Item) RemoteRepo added in v0.1.1

func (i Item) RemoteRepo() string

type Stage

type Stage string
const (
	StageIdea    Stage = "idea"
	StagePlanned Stage = "planned"
	StageActive  Stage = "active"
	StageBlocked Stage = "blocked"
	StageDone    Stage = "done"
)

type SyncOperation added in v0.1.1

type SyncOperation string
const (
	SyncNone    SyncOperation = ""
	SyncCreate  SyncOperation = "create"
	SyncUpdate  SyncOperation = "update"
	SyncDelete  SyncOperation = "delete"
	SyncRestore SyncOperation = "restore"
	SyncPurge   SyncOperation = "purge"
)

type Type added in v0.1.1

type Type string
const (
	TypeFeature Type = "feature"
	TypeBug     Type = "bug"
	TypeChore   Type = "chore"
)

Jump to

Keyboard shortcuts

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