ticket

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

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 CANARY: REQ=ENG-3958; FEATURE="TicketDestination"; ASPECT=CLI; STATUS=TESTED; TEST=TestCANARY_ENG_3958_Sync_ApplyWithDestinationSource_NoProjectFlag,TestCANARY_ENG_3958_RemoteStatusForSources_MultiSourceMerge,TestCANARY_ENG_3958_Sync_ApplyNoProject_BlindTransitionRefused,TestCANARY_ENG_3958_Sync_ApplyWithDestinationSource_TransitionsUnaffected,TestCANARY_ENG_3958_Status_Refresh_WithCredsNoProject_PreservesExistingCache,TestCANARY_ENG_3958_Status_Refresh_ProjectWithZeroIssues_CacheSaved; UPDATED=2026-08-29

Index

Constants

View Source
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

func CreateTicketCommand() *cobra.Command

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.

Jump to

Keyboard shortcuts

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