tracker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package tracker is ynf's port to where work items live (ADR-003): GitHub Issues, JIRA and others. It is separate from the forge, where code lives, even when one system is both.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("tracker: not found")

ErrNotFound means the tracker has no such item.

Functions

This section is empty.

Types

type Ref

type Ref struct {
	Host string `json:"host"`
	Key  string `json:"key"`
}

Ref names a ticket: the tracker instance's host and the tracker's own key, such as {github.com, eyelock/ynh#77} or {example.atlassian.net, PLAT-881} (ADR-002).

func (Ref) String

func (r Ref) String() string

String is the reference people and event subjects use: github.com/eyelock/ynh#77.

type Text

type Text struct {
	Title string
	Body  string
	URL   string
}

Text is a ticket's free text. It reaches the agent as quoted data and nothing else (NFR-5).

type Tracker

type Tracker interface {
	// Get reads the ticket: its structured facts, and its text for the agent.
	Get(ctx context.Context, key string) (facts.Ticket, Text, error)
	// Comment posts body unless a comment containing marker exists: side effects are
	// idempotent per step (ADR-005).
	Comment(ctx context.Context, key, marker, body string) error
	// Label adds and removes labels; adding one present or removing one absent is not an error.
	Label(ctx context.Context, key string, add, remove []string) error
}

Tracker is the port. Keys are the tracker's own, without the host.

Directories

Path Synopsis
Package mcptracker is the mcp tracker provider (ADR-003): a tracker whose system has an MCP server, such as JIRA Cloud or Data Center, read and written by calling the server's tools directly.
Package mcptracker is the mcp tracker provider (ADR-003): a tracker whose system has an MCP server, such as JIRA Cloud or Data Center, read and written by calling the server's tools directly.

Jump to

Keyboard shortcuts

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