Documentation
¶
Overview ¶
Package ticket wires pkg/ticket into `canary ticket sync`: computing a codified ticket-source synchronization plan from indexed tokens and the configured `sources:` registry, and — only when JIRA credentials are present and --apply is set — applying it via the JIRA REST client and writing a completed plan plus a remap map for `canary upgrade --map`. CANARY: REQ=CP-279; FEATURE="TicketSync"; ASPECT=CLI; STATUS=TESTED; TEST=TestCANARY_CBIN_306_Sync_NoCredsPlanOnly,TestCANARY_CBIN_306_Sync_NoCredsApplyDegradesGracefully,TestCANARY_CBIN_306_Sync_ApplyWithCreds_EndToEnd,TestCANARY_CBIN_306_Sync_ApplyNoCreds_ProjectRequired,TestCANARY_CBIN_306_Sync_PartialProgress,TestCANARY_CBIN_306_PrintActions_Bounded; UPDATED=2026-08-29
Index ¶
Constants ¶
const DefaultPlanLimit = 20
DefaultPlanLimit bounds the printed action table by default; agents raise it with --limit when they need more (the full plan is always in the JSON file at --plan).
Variables ¶
This section is empty.
Functions ¶
func CreateTicketCommand ¶
CreateTicketCommand returns the `canary ticket` parent command with its subcommands attached (mirrors CreateDriftCommand / CreateViewCommand: a fresh command tree per call, so both the CLI entry point and tests get isolated flag state).
Types ¶
This section is empty.