Skip to content

Add git-clone extension - #13606

Closed
JavaLangRuntimeException wants to merge 2 commits into
raycast:mainfrom
JavaLangRuntimeException:ext/git-clone
Closed

JavaLangRuntimeException wants to merge 2 commits into
raycast:mainfrom
JavaLangRuntimeException:ext/git-clone

Conversation

@JavaLangRuntimeException

@JavaLangRuntimeException JavaLangRuntimeException commented Jul 22, 2024 •

Copy link
Copy Markdown
Contributor

Description

This pull request introduces a new Raycast extension for Git clone functionality. The extension enables users to easily clone Git repositories directly from within Raycast, streamlining developer workflows. Users can specify the branch to clone and the directory to clone into. Additionally, a default directory can be set to save typing. The extension includes features such as GitHub authentication using personal access tokens and customizable default clone paths, enhancing user convenience and productivity.

For detailed instructions on how to use this extension, please refer to the README file.

Screencast

スクリーンショット 2024-07-23 0 46 35 スクリーンショット 2024-07-23 0 47 00 スクリーンショット 2024-07-23 0 47 14 スクリーンショット 2024-07-23 0 55 00

Checklist

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Jul 22, 2024
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing high demand and limited capacity. As a result, extension reviews might take longer than usual to get the initial review. Please expect an initial review within 5-10 business days.

Once the PR is approved and merged, the extension will be available on our Store.

Sorry for the inconvenience

@koinzhang

Copy link
Copy Markdown
Contributor

Hi @JavaLangRuntimeException The GitHub extension already includes this feature

@JavaLangRuntimeException

Copy link
Copy Markdown
Contributor Author

Thank you for your answer. However, the existing github extension does not have the function to git clone from GitHub in the local environment.
スクリーンショット 2024-07-23 14 33 22

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Sounds like an enhancement, let's hear what @thomaslombart thinks (and if it might be possible to add something like this)

@JavaLangRuntimeException

Copy link
Copy Markdown
Contributor Author

A key feature of this extension is its intuitive interface for selecting a clone directory and a branch, as shown in the third screenshot. Users can easily specify the target directory for cloning and choose the desired branch, making the process more user-friendly and efficient compared to traditional command-line methods.

@pernielsentikaer

Copy link
Copy Markdown
Contributor

It might be that it could be integrated if it's not too niche 🙂

@jfkisafk

Copy link
Copy Markdown
Contributor

This feature is already present in "Search Repositories" command. Right now the default clone path and IDE is set in preferences:

<Action
icon={Icon.Terminal}
title="Clone and Open"
onAction={() => cloneAndOpen(repository)}
shortcut={{ modifiers: ["cmd", "opt"], key: "c" }}
/>

But we can always extend this action itself to push a Form to provide Clone Path and Branch as your 3rd screenshot.

@JavaLangRuntimeException

JavaLangRuntimeException commented Jul 24, 2024 •

Copy link
Copy Markdown
Contributor Author

I'm OK with adding it to an existing extension or creating a new one.

@thomaslombart

Copy link
Copy Markdown
Contributor

Yeah, it’s likely worth adding this to the current extension since OAuth and repository searching are already integrated in it.

@pernielsentikaer

Copy link
Copy Markdown
Contributor

I'd like that idea better since the connection is already made 🙂

@JavaLangRuntimeException

Copy link
Copy Markdown
Contributor Author

Is there anything I can do to add more commands to an existing extension?

@pernielsentikaer

Copy link
Copy Markdown
Contributor

You can install the current GitHub extension and use the action Fork to get started 🙂

Raycast 2024-07-24 at 14 11 43

@JavaLangRuntimeException

JavaLangRuntimeException commented Jul 26, 2024 •

Copy link
Copy Markdown
Contributor Author

I applied the changes to an existing github extension.
#13684

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Awesome, closing this PR then 🙂

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

Labels

new extension Label for PRs with new extensions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants