⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { shellSafeOr } from "../input/shell-safe.js";
import type { ResolvedTask } from "../tasks/resolve-task.js";
export type TaskRef = {
readonly id: string;
readonly ticketId: string | null;
readonly title: string;
readonly url: string;
};
export function taskRef(resolved: ResolvedTask): TaskRef {
return {
id: resolved.task.id,
ticketId: resolved.ticketId,
title: resolved.task.title,
url: resolved.url,
};
}
export function taskLabel(task: TaskRef): string {
return task.ticketId ?? task.id.slice(0, 8);
}
export function taskArgument(task: TaskRef): string {
return shellSafeOr(task.ticketId, task.id);
}