Documentation
¶
Index ¶
- func NormalizeDependencyKind(kind string) string
- type ArtifactPayload
- type ArtifactSummary
- type BranchStats
- type Comment
- type CommentPayload
- type CreatePayload
- type DeletePayload
- type Dependency
- type DependencyKind
- type Event
- type EventType
- type Issue
- type IssueStatus
- type MergePayload
- type UpdatePayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeDependencyKind ¶
NormalizeDependencyKind maps loose user input ("blocks", "blocked_by", "BlockedBy", "relates_to", etc.) onto canonical kind strings. Returns an empty string for unrecognized inputs.
Types ¶
type ArtifactPayload ¶
type ArtifactSummary ¶
type BranchStats ¶
type CommentPayload ¶
type CreatePayload ¶
type CreatePayload struct {
Title string `json:"title"`
Description string `json:"description,omitempty"`
Status string `json:"status,omitempty"`
ParentID string `json:"parent_id,omitempty"`
Estimate int `json:"estimate,omitempty"`
Priority int `json:"priority,omitempty"`
SortOrder string `json:"sort_order,omitempty"`
Assignee string `json:"assignee,omitempty"`
CycleID string `json:"cycle_id,omitempty"`
Dependencies []Dependency `json:"dependencies,omitempty"`
Labels []string `json:"labels,omitempty"`
}
type DeletePayload ¶
type Dependency ¶
type Dependency struct {
SourceID string `json:"source_id"`
TargetID string `json:"target_id"`
Kind DependencyKind `json:"kind"`
}
type DependencyKind ¶
type DependencyKind string
const ( DependencyDependsOn DependencyKind = "depends_on" DependencyDependencyOf DependencyKind = "dependency_of" DependencyBlockedBy DependencyKind = "blocked_by" DependencyBlocks DependencyKind = "blocks" DependencyDuplicatedBy DependencyKind = "duplicated_by" DependencyDuplicates DependencyKind = "duplicates" )
func InverseKind ¶
func InverseKind(k DependencyKind) DependencyKind
InverseKind returns the inverse dependency kind.
type Event ¶
type Event struct {
ID string `json:"id"`
Type EventType `json:"type"`
Payload interface{} `json:"payload"`
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"` // Actor: "First Last <email>" or agent identity
OnBehalfOf string `json:"on_behalf_of,omitempty"` // Principal: user the actor is working for
Source string `json:"source,omitempty"` // Origin channel: "web", "mcp", "cli"
}
type Issue ¶
type Issue struct {
ID string
Title string
Description string
Status IssueStatus
ParentID string
Estimate int
Priority int
SortOrder string
Assignee string
CycleID string
EffectiveCycleID string
InferredStatus bool
BranchStats *BranchStats
Deleted bool
Dependencies []Dependency
Labels []string
CreatedAt time.Time
CreatedBy string
UpdatedAt time.Time
Events []Event
Comments []Comment
Artifacts []ArtifactSummary
}
type IssueStatus ¶
type IssueStatus string
const ( StatusBacklog IssueStatus = "BACKLOG" StatusPlanned IssueStatus = "PLANNED" StatusDoing IssueStatus = "DOING" StatusBlocked IssueStatus = "BLOCKED" StatusDone IssueStatus = "DONE" )
type MergePayload ¶
type UpdatePayload ¶
type UpdatePayload struct {
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
Status *string `json:"status,omitempty"`
ParentID *string `json:"parent_id,omitempty"`
Estimate *int `json:"estimate,omitempty"`
Priority *int `json:"priority,omitempty"`
SortOrder *string `json:"sort_order,omitempty"`
Assignee *string `json:"assignee,omitempty"`
CycleID *string `json:"cycle_id,omitempty"`
Dependencies []Dependency `json:"dependencies,omitempty"`
Labels []string `json:"labels,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.