Skip to main content

Module ticket

Module ticket 

Source

Re-exports§

pub use ticket_fmt::*;

Modules§

ticket_fmt

Structs§

BlockingDep

Functions§

build_reverse_index
Build a reverse dependency index: for each ticket ID, collect the tickets that directly depend on it. Pass only non-terminal, non-satisfies_deps tickets so that closed work does not inflate effective priority.
check_owner
close
Close a ticket from any state. Commits the change to the ticket branch, pushes it (non-fatal if no remote), then merges into the default branch so that apm clean can detect and remove the worktree.
compute_blocking_deps
create
dep_satisfied
Returns true if a ticket in dep_state satisfies the dependency gate required by the dependent ticket. required_gate is Some("tag") when the dependent’s state has dep_requires = "tag", or None for the default (requires satisfies_deps = true or terminal = true).
effective_priority
Return the effective priority of a ticket: the max of its own priority and the priority of all direct and transitive dependents reachable via the reverse index. Uses a visited set to handle cycles safely.
list_filtered
load_all_from_git
Load all tickets by reading directly from their git branches. No filesystem cache is involved.
move_to_epic
Move a ticket into (or out of) an epic by rebasing its branch onto the new base.
pick_next
Return the highest-scoring ticket from tickets whose state is in actionable and (if startable is non-empty) also in startable, and whose depends_on deps are all satisfied.
set_field
sorted_actionable
Return all agent-actionable tickets sorted by descending score.
state_from_branch
Read a ticket’s state from a specific branch by relative path.