Create branch without GitHub connection (#35983)

* allow creating branching without git

* update branching modals

* add account connections

* edit branch

* copy

* update copy

* enable branch modal changes

* add gitless branching flag

* update account connections

* update pull requests empty state

* Clean up

* refinements to gitless branching

* nit

* nit

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
This commit is contained in:
Saxon Fletcher
2025-06-09 11:04:10 +10:00
committed by GitHub
parent 6d5f7f25b2
commit daf8b3c3fd
14 changed files with 1091 additions and 428 deletions

View File

@@ -154,18 +154,10 @@ const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationConnectio
onCancel={onCancel}
onConfirm={onConfirm}
loading={isDeleting}
alert={
type === 'GitHub' && isBranchingEnabled
? {
title: 'Branching will be disabled for this project',
description: ` Deleting this GitHub connection will remove all preview branches on this project,
and also disable branching for ${project.name}`,
}
: undefined
}
>
<p className="text-sm text-foreground-light">
This action cannot be undone. Are you sure you want to delete this {type} connection?
Deleting this GitHub connection will stop automatic creation and merging of preview
branches. Existing preview branches will remain unchanged.
</p>
</ConfirmationModal>
</>