Add support for forking single branch (#25821)

Fixes #25117

Add UI for choosing branch to fork

Change default branch on single-branch forks


![image](28505f69-a9a2-43a8-8b19-a0cdac3ddc5a)

---------

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Dmitry Sharshakov 2023-09-29 04:48:39 +03:00 committed by GitHub
parent e8840e7e2b
commit 5e02e3b7ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 57 additions and 9 deletions

View file

@ -51,6 +51,8 @@ type CreateRepoForm struct {
Labels bool
ProtectedBranch bool
TrustModel string
ForkSingleBranch string
}
// Validate validates the fields