This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ class PublishView : Subview
1212 private const string PrivateRepoMessage = "You choose who can see and commit to this repository" ;
1313 private const string PublicRepoMessage = "Anyone can see this repository. You choose who can commit" ;
1414 private const string PublishViewCreateButton = "Create" ;
15+ private const string OwnersDefaultText = "Select a user or organization" ;
1516
1617 [ SerializeField ] private string username ;
17- [ SerializeField ] private string [ ] owners = { } ;
18+ [ SerializeField ] private string [ ] owners = { OwnersDefaultText } ;
1819 [ SerializeField ] private int selectedOwner ;
1920 [ SerializeField ] private string repoName = String . Empty ;
2021 [ SerializeField ] private string repoDescription = "" ;
@@ -70,7 +71,7 @@ private void PopulateView()
7071 return ;
7172 }
7273
73- owners = new [ ] { user . Login } ;
74+ owners = owners . Union ( new [ ] { user . Login } ) . ToArray ( ) ;
7475 username = user . Login ;
7576
7677 Logger . Trace ( "GetOrganizations" ) ;
You can’t perform that action at this time.
0 commit comments