Repository navigation
feat(cli): resolve Jira keys in workspace references - #28619
Merged
Merged
Conversation
nwparker
force-pushed
the
nwparker/jira-reference-keys
branch
from
October 14, 2026 10:01
e23b741 to
71bafb4
Compare
Adapted-code-from: #11659 at cdb3a34 Co-authored-by: Eugenio Valeiras <[email protected]>
nwparker
force-pushed
the
nwparker/jira-reference-keys
branch
from
October 14, 2026 10:17
71bafb4 to
881dc4c
Compare
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
A Jira key such as
ENG-123can now attach its ticket to an existing workspace or a new worktree. Orca finds the ticket's title and full URL on the chosen Jira site before saving the link.What Changed
Before,
reference addandworktree create --referenceaccepted only full URLs. Both now also accept Jira keys, including lowercase keys, and--reference-site <id>selects the site when needed. Full URLs retain their existing behavior for Jira, GitHub, GitLab and Linear.All inputs are parsed before requests, and Jira keys are resolved and checked for the requested key, exact site/context path, canonical URL and title before any workspace write or creation. The existing Jira CLI resolver pins one execution-host site for the whole request. Links use
linkedItemsand the host's existing merge of added and removed references; duplicate links preserve stored metadata and selection. Existing URL and opaque-key removal remains independent of Jira availability. The unchanged repository selector for worktree creation moves into the existing project-target module to keep the handler within its file-size limit.Why
This completes the CLI workspace-linking proposal from #11659 through Orca's current reference commands. Reusing the resolver from #28592 and the existing generic reference storage avoids a competing single-ticket field or a new legacy
worktree set --jiraalias. Other providers continue to require full URLs because a bare key here deliberately identifies Jira.Linked Issue
Refs #11982 and #10905. Implements the CLI linking follow-up proposed in #11659; #10905 remains open for its Create Worktree composer requirements.
Prerequisite completed: #28592 is merged. This PR now targets
mainand contains only the Jira reference feature. The current main clock fix and regression coverage are already present.Visual Proof
N/A — CLI reference input and existing storage behavior only; no renderer layout or interaction changed. A compiled-CLI demonstration used a temporary synthetic runtime socket, with no real Jira account contacted:
The demonstration also verified ambiguity, wrong-site summaries, invalid mixed inputs and old-host refusal without workspace writes.
Testing
On macOS, 200 focused tests in eight suites passed on the refreshed head with at most two test workers. Coverage includes lowercase keys, explicit and ambiguous sites, Server context paths, missing/mismatched summaries and titles, strict lookup errors, mixed-provider URLs, duplicate metadata, folder updates, paired-host routing, old hosts, creation ordering, required create flags, concurrent reference updates and failure of a later key preventing all writes. The Jira-key regression failed on the original base before implementation.
The remaining feature commit was rebased onto current main without conflicts;
git range-diffconfirms the feature patch is unchanged. All seven changed-code quality scans passed against main with zero new findings across ten code files. Bundled-guide verification andgit diff --checkpassed. The original reference head passedpnpm tc:cli; the coordinator will run the exact refreshed head through the serialized compiler lane. The earlier compiled CLI fixture demonstration passed and remains applicable to the unchanged feature. Native build and full repository CI are reported separately. Live Jira, Linux, Windows and a real SSH host were not exercised; Server and remote routing use fixtures.Review
Reworks the linking behavior proposed in #11659 by Eugenio Valeiras (@EugeValeiras), at head
cdb3a34a2a79644694ea83e4f159f7eea18a1c2c. The original author is credited in the commit trailer. The source PR remains open and unchanged.Agent skill upstream boundary
Notes
Merge risk: Low, pending the exact-head CLI compiler check. This is additive CLI input handling, with an optional flag-name parameter on the existing resolver; normal
orca jira --sitebehavior is unchanged. Existing host RPCs and attachment fields are reused, and capability checks refuse unsupported hosts before key resolution or writes. No wire fields or stream opcodes change.Jira credentials and lookup stay on the selected execution host. Worktree and folder mutations retain their existing merge policy. There are no new shell commands, platform paths, git assumptions, mobile APIs or provider-specific review changes. Full Jira URLs continue to work without a saved connection, and other providers retain full-URL linking.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred) — focused tests and quality checks passed on the refreshed head; the exact-head compiler and full/native CI are reported separately.