Skip to content

feat(Git Sync): Introduce the option to select a branch when cloning a repository#8883

Merged
gatzjames merged 10 commits into
Kong:developfrom
gatzjames:feat/INS-811-allow-users-to-select-branch-on-clone
Jul 24, 2025
Merged

feat(Git Sync): Introduce the option to select a branch when cloning a repository#8883
gatzjames merged 10 commits into
Kong:developfrom
gatzjames:feat/INS-811-allow-users-to-select-branch-on-clone

Conversation

@gatzjames

@gatzjames gatzjames commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

Overview

When cloning a remote repository we always default to cloning the remote HEAD ref as the default branch.
This PR introduces the (optional) ability to select the branch to clone in the repository clone modal.

TODO

  • Use a Combobox Picker to select the desired branch
  • Ensure this works with all providers (github/gitlab/custom)
  • Decide if users should be able to move forward and clone the repo on the default branch or have to wait for the branches to load
  • Cleanup repository info Form and update to loader/actions for async work

@gatzjames gatzjames self-assigned this Jul 17, 2025
@gatzjames gatzjames requested a review from a team July 17, 2025 15:43
@gatzjames gatzjames force-pushed the feat/INS-811-allow-users-to-select-branch-on-clone branch 2 times, most recently from d6768da to 0bbc923 Compare July 23, 2025 15:19
@gatzjames gatzjames marked this pull request as ready for review July 23, 2025 15:19
@gatzjames gatzjames force-pushed the feat/INS-811-allow-users-to-select-branch-on-clone branch from 1095ac1 to 927eccc Compare July 24, 2025 07:11

@pavkout pavkout 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.

LGTM

@gatzjames gatzjames force-pushed the feat/INS-811-allow-users-to-select-branch-on-clone branch from 8a84a45 to abb5a8d Compare July 24, 2025 09:09
@gatzjames gatzjames enabled auto-merge (squash) July 24, 2025 09:09
@gatzjames gatzjames merged commit 2dae9ef into Kong:develop Jul 24, 2025
9 of 10 checks passed
@gatzjames gatzjames deleted the feat/INS-811-allow-users-to-select-branch-on-clone branch July 24, 2025 09:23
RoamingLost pushed a commit to RoamingLost/insomnia that referenced this pull request Aug 6, 2025
…a repository (Kong#8883)

* Allow users to pick a branch when cloning a repo

* save

* cleanup

* add ref option to git clone action

* cleanup UI

* fix ts in credentials

* fix ts issues from rebase

* fix lint issue

* add ref option to git actions and update credentials handling in UI components

* fix: include credentials in dependency array for useEffect in GitRemoteBranchSelect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants