Skip to content

[GitHub] Add more options to Clone action - #13684

Merged
thomaslombart merged 12 commits into
raycast:mainfrom
JavaLangRuntimeException:ext/github
Aug 2, 2024
Merged

thomaslombart merged 12 commits into
raycast:mainfrom
JavaLangRuntimeException:ext/github

Conversation

@JavaLangRuntimeException

@JavaLangRuntimeException JavaLangRuntimeException commented Jul 26, 2024 •

Copy link
Copy Markdown
Contributor

Description

This PR integrates the enhanced repository cloning functionality from a separately developed extension (#13606) into the existing GitHub extension.

  • Branch Selection: Users can now select a specific branch when cloning a repository.
  • Custom Clone Path: Added the ability to specify a custom path when cloning a repository.

Screencast

choose an individual or organizational account
ScreenShot 2024-07-26 14 11 14
Select a repository
ScreenShot 2024-07-26 14 11 31
If you are logged in with OAuth, enter the branch.
ScreenShot 2024-07-26 14 11 46
If you are logged in with PersonalAccessToken, you can select a branch.
ScreenShot 2024-07-26 14 12 37
You can enter the path to clone or select it from the finder.
ScreenShot 2024-07-26 14 17 37

Checklist

- initial commit
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: github Issues related to the github extension labels Jul 26, 2024
@raycastbot

raycastbot commented Jul 26, 2024 •

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

@JavaLangRuntimeException JavaLangRuntimeException mentioned this pull request Jul 26, 2024
5 tasks done
@LitoMore

LitoMore commented Jul 26, 2024 •

Copy link
Copy Markdown
Contributor

Can you make this command as a new action inside of the Search Repositories command?

Today's GitHub extension is becoming very bloated, with a lot of personal requirements from different people, but most of the commands I don't use. However, when I want to search for a certain command, it always shows me a lot of irrelevant commands, which is very annoying. I know I can disable them in the settings, but if we don't restrict this extension in product design, it will become a mess.

What do you think?

@JavaLangRuntimeException

JavaLangRuntimeException commented Jul 26, 2024 •

Copy link
Copy Markdown
Contributor Author

I completely agree with your approach. And I added this functionality as an action to the "Search Repositories" command. Specifically, I modified the existing "Clone and Open" command to "Clone with Options" as an action. When users select this option, they're presented with a screen to choose both the path and branch for cloning. After inputting these details and initiating the clone process, the system automatically opens the repository in the IDE. Moreover, I implemented a smart error prevention feature: if a directory with the same name already exists, your system automatically adds a number to the end of the directory name.

@raycastbot raycastbot added the OP is author The OP of the PR is the author of the extension label Aug 1, 2024
@thomaslombart thomaslombart changed the title Update github extension [GitHub] Add more options to Clone action Aug 1, 2024
@thomaslombart

Copy link
Copy Markdown
Contributor

Hey @JavaLangRuntimeException, I noticed the code could be simplified for this feature so I went a head and did some changes. Let me know if it looks good to you.

@JavaLangRuntimeException

JavaLangRuntimeException commented Aug 1, 2024 •

Copy link
Copy Markdown
Contributor Author

I'm satisfied with the suggested changes. I approve of the modifications.

@thomaslombart
thomaslombart merged commit 0c5a028 into raycast:main Aug 2, 2024
@github-actions

github-actions Bot commented Aug 2, 2024

Copy link
Copy Markdown
Contributor

@raycastbot

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.

astrit added a commit to astrit/extensions that referenced this pull request Aug 19, 2024
- Fix weekdays and change display method
- Update CODEOWNERs
- Renamed extension calist (#14082)
- Update CODEOWNERs
- Disable Automatic Date (when & deadline), List parsing when AI is not enabled in preferences/is not available via environment (#14026)
- Docs: update for the new API release
- Update CODEOWNERs
- Add pdf-tools extension (#14065)
- Update CODEOWNERs
- [Lorem Ipsum] Add options to Paste to active app and then copy to clipboard (#13952)
- Update open-in-visual-studio-code extension (#13947)
- Update incident-io extension (#14066)
- Update CODEOWNERs
- Update urban-dictionary extension (#14073)
- Update CODEOWNERs
- Update raycast-icons extension (#14045)
- Update CODEOWNERs
- Update tabler extension (#14020)
- Update CODEOWNERs
- Add restart-system-processes extension (#13914)
- Update stablecog extension (#14008)
- [DirectAdmin Reseller] add hooks for json api + fix issue in packages command (#14018)
- Update braid extension (#14010)
- Update CODEOWNERs
- Update DevDocs extension: add configurable default "open in" action (#14038)
- add launch agents extension (#13901)
- Update github extension (#14017)
- [Jira] Fix epic autocomplete to include all epics of a selected project. (#13965)
- Update CODEOWNERs
- Update 1password extension (#14001)
- Docs: update for the new API release
- [Dub] Fixed retry for shortening failures (#13824)
- Update CODEOWNERs
- Update Update raindrop-io extension (#14013)
- Update CODEOWNERs
- [Update Extension] System Monitor - Allow items with more than 9Gb to be shown correctly (#13984)
- [Railway] rename icon so it shows in store + cache + minor refactor + update deps (#13879)
- [Aegis] Fix missing preference for fallback icon color (#13987)
- Update CODEOWNERs
- Update CODEOWNERs
- [chatgpt] Fix image width calculation: undefined (#13994)
- Update warp extension (#13809)
- [chatgpt3-prompt] Fix CSV parsing error (#13985)
- Update CODEOWNERs
- [Apple Mail] Fixes and improvements for commands (#13938)
- Docs: Update the utils docs
- Update CODEOWNERs
- Update pdfsearch extension (#13948)
- Update multi-force extension (#13950)
- [IP Geolocation] Fix Auto Close Window (#13944)
- Update CODEOWNERs
- [Vercast] Search Domains command + minor refactor (#13672)
- [minecraft-color-codes] allow customising color code prefixes (#13934)
- Update youtube downloader extension (#13939)
- Update CODEOWNERs
- [Github] Improvements to My Issues and My Pull Requests commands and Menu Bar (#13908)
- Update CODEOWNERs
- Update messages extension (#13917)
- Update chatgpt extension (#13951)
- Update olympic-games extension (#13961)
- Update CODEOWNERs
- Add Aegis extension (#13860)
- Update github extension (#13918)
- Update safari extension (#13755)
- [Screen Studio] Add new commands  (#13911)
- Update CODEOWNERs
- Add \`Rick and Morty\` extension (#13925)
- [raycastbot] Add support for closing issue as not planned (#13837)
- Update CODEOWNERs
- Update CODEOWNERs
- [MoneyLover] \`Add Transaction\` action + native hooks (#13835)
- Add olympic-games extension (#13931)
- Update passphrase-generator extension (#13578)
- [PDFsearch] Performance improvements to search (#13926)
- [NameSilo] \`Auctions\` command + metadata images + OTE support (#13924)
- [Week Number] Add new menubar icon (#13940)
- Update CODEOWNERs
- Add raycast-notification extension (#13865)
- Update CODEOWNERs
- Add backstage extension (#13617)
- Update CODEOWNERs
- Add pieces-raycast extension (#13626)
- Update CODEOWNERs
- Add lego-bricks extension (#13846)
- Update claude extension (#13527)
- [Linear] Improvements for "Search Projects" command (#13883)
- Update CODEOWNERs
- [Render] update logo + cache results (#13912)
- Update CODEOWNERs
- Update mozilla-firefox extension (#13905)
- Update howlongtobeat extension (#13888)
- Update ekstraklasa extension (#13910)
- Update workouts extension (#13892)
- Update ekstraklasa extension (#13875)
- Update CODEOWNERs
- Updating the Google Maps Extension (#13885)
- Update CODEOWNERs
- [CricketCast] Modernize + \`News\` command + cache + add TS (#13894)
- Update CODEOWNERs
- Update postman extension (#13854)
- Update CODEOWNERs
- Update scrapbook extension (#13886)
- Update google-chrome extension for Google Chrome tabs and history, bookmarks search (take 2) (#13836)
- Update CODEOWNERs
- Add anki extension (#13616)
- Reclaim smart series updates / sort time policies (#13884)
- Update workouts extension (#13890)
- Update CODEOWNERs
- Add custom-folder extension (#13791)
- Update CODEOWNERs
- Create multi-force extension (#13743)
- [Converter] Refactor code (#13862)
- Update CODEOWNERs
- Update ray-so extension (#13878)
- Update raycast-ollama extension (#13881)
- Update CODEOWNERs
- [Base64] Improvements for all commands (#13844)
- Update CODEOWNERs
- Update common-utils.ts
- Update workouts extension (#13557)
- Update
- Update CODEOWNERs
- Add modrinth-search extension (#13777)
- [Things] Preference to disable date parsing for todo classification, sending all todo(s) to inbox. (#13788)
- Update CODEOWNERs
- [Generate 2FA Code] Add secret backup option (#13521)
- [Todoist]: Fix menubar item contrast in light mode (#13845)
- Update speedcubing extension (#13563)
- Update CODEOWNERs
- [DigitalOcean] Add \`Search App Platform\` command + metadata images + EmptyViews (#13828)
- Update quick-notes extension (#13848)
- [Brand.dev] new updated logo + show brand address (#13855)
- Update pdfsearch extension (#13856)
- [Brand Icons] Apply brand color to default copying/opening SVG (#13866)
- Update CODEOWNERs
- Update snippetsurfer extension (#13707)
- Update CODEOWNERs
- Update openvpn extension (#13831)
- [1Password] Fix error message on missing 1Password CLI (#13852)
- cURL: make "copy headers" button actually copy headers (#13841)
- Revert "Revert "Revert "[Notion] Population Relation Field with all related database pages. (#13579)"""
- [toggl-track] Fix timer not stopping from main window (#13821)
- Update CODEOWNERs
- Add anna-s-archive extension (#13775)
- [perplexity-api] Added new Chat feature (#13832)
- Docs: Add warning on pagination
- Revert "Revert "[Notion] Population Relation Field with all related database pages. (#13579)""
- Update CODEOWNERs
- Add motion-preview extension (#13585)
- Update CODEOWNERs
- [Mailtrap] add pagination to emails (#13801)
- Update CODEOWNERs
- Update \`chatgpt-quick-actions extension\` with models & API as of July 2024 (#13789)
- Update CODEOWNERs
- Update json-editor extension (#13760)
- Update CODEOWNERs
- [GitHub] Add more options to Clone action (#13684)
- Update CODEOWNERs
- [LastPass Credentials Seach] increase maxBuffer size for stdout to allow bigger data volumes (#13817)
- Add cPanel extension (#13769)
- Update CODEOWNERs
- Add app-icon-generator extension (#13661)
- Update openai-translator extension (#13526)
- [Modify Hash] Remove irregular files (#13792)
- Update CODEOWNERs
- Transfer dub to org (#13820)
- Update CODEOWNERs
- [Bob]: Add new commands (#13812)
- Add balatro-compendium extension (#13730)
- Update CODEOWNERs
- Rename dub-link-shortener to dub (#13819)
- [perplexity-api] Added new models (#13804)
- Update youtube downloader extension (#13811)
- Update CODEOWNERs
- Update obs-control extension (#13711)
- Revert "[Notion] Population Relation Field with all related database pages. (#13579)" (#13815)
- Revert "[RAI-14814, RAI-14975] - raycast updates smart series / "create task" doesn\'t default to work hours" (#13799)
- GitHub: Make some commands disabled by default (#13794)
- CI: fix problems with \`Ensure Maintainer Can Modify\` failing for non-forked PRs
- CI: fix problems with \`Ensure Maintainer Can Modify\` failing for non-forked PRs
- Docs: update for the new API release
- Update CODEOWNERs
- Update github-repository-search extension (#13720)
- Update README.md (#13781)
- Update CODEOWNERs
- Add clarify extension (#13510)
- Update CODEOWNERs
- [NSIS Reference] Modernize + Add