const TASK_STATUS_BY_KIND = {
    pending: 'pending',
    running: 'running',
    completed: 'completed',
    failed: 'failed',
    exceeded: 'exceeded',
    pr_failed: 'pr-failed',
};
export function formatTaskStatusLabel(task) {
    let status = `[${TASK_STATUS_BY_KIND[task.kind]}] ${task.name}`;
    if (task.issueNumber !== undefined) {
        status += ` #${task.issueNumber}`;
    }
    if (task.branch) {
        return `${status} (${task.branch})`;
    }
    return status;
}
export function formatShortDate(isoString) {
    const date = new Date(isoString);
    const month = String(date.getUTCMonth() + 1).padStart(2, '0');
    const day = String(date.getUTCDate()).padStart(2, '0');
    const hours = String(date.getUTCHours()).padStart(2, '0');
    const minutes = String(date.getUTCMinutes()).padStart(2, '0');
    return `${month}/${day} ${hours}:${minutes}`;
}
//# sourceMappingURL=taskStatusLabel.js.map