File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -206,14 +206,17 @@ public function create(
206
206
'description ' => $ description ,
207
207
'homepage ' => $ homepage ,
208
208
'private ' => ($ visibility ?? ($ public ? 'public ' : 'private ' )) === 'private ' ,
209
- 'visibility ' => $ visibility ?? ($ public ? 'public ' : 'private ' ),
210
209
'has_issues ' => $ hasIssues ,
211
210
'has_wiki ' => $ hasWiki ,
212
211
'has_downloads ' => $ hasDownloads ,
213
212
'auto_init ' => $ autoInit ,
214
213
'has_projects ' => $ hasProjects ,
215
214
];
216
215
216
+ if ($ visibility ) {
217
+ $ parameters ['visibility ' ] = $ visibility ;
218
+ }
219
+
217
220
if ($ organization && $ teamId ) {
218
221
$ parameters ['team_id ' ] = $ teamId ;
219
222
}
Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ public function shouldCreateRepositoryUsingNameOnly()
95
95
'name ' => 'l3l0Repo ' ,
96
96
'description ' => '' ,
97
97
'homepage ' => '' ,
98
- 'visibility ' => 'public ' ,
99
98
'private ' => false ,
100
99
'has_issues ' => false ,
101
100
'has_wiki ' => false ,
@@ -122,7 +121,6 @@ public function shouldCreateRepositoryForOrganization()
122
121
'name ' => 'KnpLabsRepo ' ,
123
122
'description ' => '' ,
124
123
'homepage ' => '' ,
125
- 'visibility ' => 'public ' ,
126
124
'private ' => false ,
127
125
'has_issues ' => false ,
128
126
'has_wiki ' => false ,
@@ -374,7 +372,6 @@ public function shouldCreateUsingAllParams()
374
372
'name ' => 'l3l0Repo ' ,
375
373
'description ' => 'test ' ,
376
374
'homepage ' => 'http://l3l0.eu ' ,
377
- 'visibility ' => 'private ' ,
378
375
'private ' => true ,
379
376
'has_issues ' => false ,
380
377
'has_wiki ' => false ,
You can’t perform that action at this time.
0 commit comments