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
12
12
private const string PrivateRepoMessage = "You choose who can see and commit to this repository" ;
13
13
private const string PublicRepoMessage = "Anyone can see this repository. You choose who can commit" ;
14
14
private const string PublishViewCreateButton = "Create" ;
15
+ private const string OwnersDefaultText = "Select a user or organization" ;
15
16
16
17
[ SerializeField ] private string username ;
17
- [ SerializeField ] private string [ ] owners = { } ;
18
+ [ SerializeField ] private string [ ] owners = { OwnersDefaultText } ;
18
19
[ SerializeField ] private int selectedOwner ;
19
20
[ SerializeField ] private string repoName = String . Empty ;
20
21
[ SerializeField ] private string repoDescription = "" ;
@@ -70,7 +71,7 @@ private void PopulateView()
70
71
return ;
71
72
}
72
73
73
- owners = new [ ] { user . Login } ;
74
+ owners = owners . Union ( new [ ] { user . Login } ) . ToArray ( ) ;
74
75
username = user . Login ;
75
76
76
77
Logger . Trace ( "GetOrganizations" ) ;
You can’t perform that action at this time.
0 commit comments