Skip to content

Update github extension - #22384

Merged
raycastbot merged 5 commits into
raycast:mainfrom
MartinGonzalez:ext/github
Oct 30, 2025
Merged

raycastbot merged 5 commits into
raycast:mainfrom
MartinGonzalez:ext/github

Conversation

@MartinGonzalez

@MartinGonzalez MartinGonzalez commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

Description

Adds a "Check out PR" action to the My Pull Requests command, allowing developers to quickly clone and checkout pull request branches locally.

When selecting a PR and pressing the actions shortcut/button, users can choose a directory to clone the repository. If the repository already exists, it will fetch the PR branch, reset hard, and switch to it. After checkout, the folder is revealed in Finder for immediate access.

Screencast

Screen.Recording.2025-10-24.at.11.55.12.mov

Checklist

- style: standardize capitalization in UI text
- Add checkout functionality for pull requests
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: github Issues related to the github extension AI Extension platform: macOS platform: Windows labels Oct 24, 2025
@raycastbot

ghost commented Oct 24, 2025 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @thomaslombart @unnamedd @tonka3000 @khasbilegt @pernielsentikaer @loxygenK @oilbeater @LunaticMuch @aeorge @daquinoaldo @peppy @aeither @marcotf @qeude @nesl247 @xilopaint @antonengelhardt @bangerang @wottpal @LitoMore @d-mitrofanov-v @j3lte @jfkisafk @vlasischar @JavaLangRuntimeException @shyakadavis @sushichan044 @luarmr @nicolas-marien @ionTea @ridemountainpig @kud you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

You can expect an initial review within five business days.

Martin Gonzalez added 2 commits October 24, 2025 11:49
- improve: close window after opening PR directory
- Improve pull request checkout sequence for better reliability
@MartinGonzalez

ghost commented Oct 24, 2025

Copy link
Copy Markdown
Contributor Author

Is the CHANGELOG something I need to manually update?

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

Adds a "Check out PR" action to the GitHub extension's My Pull Requests command, enabling developers to clone repositories and checkout PR branches locally with a single action. The feature handles both new clones and existing repositories.

  • Integrates new checkout action into PR actions panel with Cmd+Shift+O shortcut
  • Uses existing buildCloneCommand helper from repository utilities for consistent clone behavior
  • Implements directory picker with persistent storage for user convenience

The implementation has a critical issue with hardcoded remote name assumptions that will cause failures for repositories with non-standard remote configurations or pull requests from forks.

Confidence Score: 2/5

  • This PR has a critical logic bug that will cause failures in common scenarios
  • The hardcoded 'origin' remote name assumption will fail for repositories with different remote names or PRs from forks. This is a common scenario that needs to be addressed before merging.
  • Pay close attention to CheckoutPullRequestForm.tsx - the git remote handling needs to be fixed

Important Files Changed

File Analysis

Filename Score Overview
extensions/github/src/components/CheckoutPullRequestForm.tsx 2/5 Adds PR checkout form with git operations; hardcoded remote name will fail for repos with non-standard remotes or forks
extensions/github/src/components/PullRequestActions.tsx 5/5 Integrates checkout action into PR actions panel with appropriate shortcut and icon
extensions/github/package.json 5/5 Adds contributor to package.json

3 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@ridemountainpig

ghost commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

Is the CHANGELOG something I need to manually update?

Yes.

- Merge branch \'contributions/merge-1761312862570\' into feat/checkout-pr-branch
- Pull contributions
- add checkout PR action to my pull requests view

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 238052e into raycast:main Oct 30, 2025
@github-actions

ghost commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Oct 30, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Couldn't load reviewers.

Assignees

Couldn't load assignees.