`laneDir` resolves directional lane variant ("left"/"right") from filename basename of ticket files matching ticket number, enabling owner/ticket pairing. Needs explicit sentence.
// Source: https://github.com/JIGGAI/ClawRecipes | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import path from "node:path";
import fs from "node:fs/promises";
import { fileExists } from "./fs-utils";
import { ticketStageDir, type TicketLane } from "./lanes";
export type { TicketLane };
export function laneDir(teamDir: string, lane: TicketLane) {
return ticketStageDir(teamDir, lane);
}
const LANE_SEARCH_ORDER: TicketLane[] = ["backlog", "in-progress", "testing", "done"];
export function allLaneDirs(teamDir: string) {
return LANE_SEARCH_ORDER.map((lane) => ticketStageDir(teamDir, lane));
}
/**
* Compute the next ticket number (max existing + 1) by scanning ticket lane d
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key