Files
task-master/internal/ticket/store.go
T
skrueckenandCursor 98d2253f44
CI / test-and-build (push) Failing after 1m19s
CI / demo (push) Skipped
Add YouTrack pull/push sync with project settings and time tracking.
Wire manual Y menu and CLI sync for issues and work items, persist
per-project credentials, and keep local edits until an explicit push.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 00:17:51 +02:00

16 lines
519 B
Go

package ticket
// Store is the persistence interface for tickets.
// Implementations must be safe for concurrent use.
type Store interface {
List(projectID string) ([]Ticket, error)
Get(id string) (Ticket, error)
Create(t Ticket) (Ticket, error)
Update(t Ticket) error
// MarkSynced sets SyncedAt to the ticket's current UpdatedAt without
// bumping UpdatedAt (so NeedsPush becomes false after a remote sync).
MarkSynced(id string) error
Move(id, toProjectID string) (Ticket, error)
Delete(id string) error
}