refactor(desktop): use gh flows for PR discovery, creation, and checkout#1771
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis pull request refactors PR branch handling by shifting from pre-fetching PR branches to using GitHub CLI's Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Worktree Manager
participant Git Operations
participant GitHub CLI
participant Local Repo
User->>Worktree Manager: Create worktree from PR
Worktree Manager->>Git Operations: createWorktreeFromPr(prInfo)
alt Branch exists locally
Git Operations->>Local Repo: Create worktree at local branch
else Branch does not exist
Git Operations->>Local Repo: Create detached worktree
end
Git Operations->>GitHub CLI: gh pr checkout <PR#> <branch>
GitHub CLI->>Local Repo: Resolve fork/head and check out
GitHub CLI-->>Git Operations: Success
Git Operations-->>Worktree Manager: Worktree ready
Worktree Manager-->>User: Complete
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
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 |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary by CodeRabbit
Release Notes