mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
* Link Jira issues from workspace create dialog Add Jira issue linking to workspace creation, matching existing GitHub and Linear workflows. Users can paste Jira issue URLs in the smart name field to auto-populate workspace names and link the issue to the created workspace/worktree. Linked Jira issues appear on workspace cards via the new 'jira-issue' card property. Implements cancellable searches and summary reads to prevent stalled requests from blocking the shared Jira pool. Persists paired issue + source context metadata with validation of provider/site identity. Fixes git-username rate-limit handling to reject malformed JSON responses so garbage never becomes branch prefixes. * feat(jira): link issues during workspace creation - Display linked Jira issues on worktree cards - Fetch issue summaries and timestamps via Jira API - Gate Jira linking behind runtime capability check - Preserve user-typed names during async lookups * Enforce git check-ref-format rules in login validation Extend isBranchSafeHostedLogin to reject usernames that git rejects as invalid branch components: trailing dots, consecutive dots, and .lock suffix. Prevents invalid branch names from login usernames. * Enforce filesystem filename cap for branch-safe logins Loose refs store logins as single filenames, so the real constraint is the 255-byte filesystem cap, not git check-ref-format rules. This allows longer provider-agnostic logins while staying platform-safe.
12 lines
425 B
TypeScript
12 lines
425 B
TypeScript
import { z } from 'zod'
|
|
import { normalizeStoredTaskSourceContext, type TaskSourceContext } from './task-source-context'
|
|
|
|
export const TaskSourceContextSchema = z.unknown().transform((value, ctx): TaskSourceContext => {
|
|
const normalized = normalizeStoredTaskSourceContext(value)
|
|
if (!normalized) {
|
|
ctx.addIssue({ code: 'custom', message: 'Invalid task source context' })
|
|
return z.NEVER
|
|
}
|
|
return normalized
|
|
})
|