File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ public function create(
205205 'name ' => $ name ,
206206 'description ' => $ description ,
207207 'homepage ' => $ homepage ,
208+ 'private ' => ($ visibility ?? ($ public ? 'public ' : 'private ' )) === 'private ' ,
208209 'visibility ' => $ visibility ?? ($ public ? 'public ' : 'private ' ),
209210 'has_issues ' => $ hasIssues ,
210211 'has_wiki ' => $ hasWiki ,
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ public function shouldCreateRepositoryUsingNameOnly()
9696 'description ' => '' ,
9797 'homepage ' => '' ,
9898 'visibility ' => 'public ' ,
99+ 'private ' => false ,
99100 'has_issues ' => false ,
100101 'has_wiki ' => false ,
101102 'has_downloads ' => false ,
@@ -122,6 +123,7 @@ public function shouldCreateRepositoryForOrganization()
122123 'description ' => '' ,
123124 'homepage ' => '' ,
124125 'visibility ' => 'public ' ,
126+ 'private ' => false ,
125127 'has_issues ' => false ,
126128 'has_wiki ' => false ,
127129 'has_downloads ' => false ,
@@ -153,6 +155,7 @@ public function shouldCreateRepositoryWithInternalVisibility()
153155 'auto_init ' => false ,
154156 'has_projects ' => true ,
155157 'visibility ' => 'internal ' ,
158+ 'private ' => false ,
156159 ])
157160 ->will ($ this ->returnValue ($ expectedArray ));
158161
@@ -372,6 +375,7 @@ public function shouldCreateUsingAllParams()
372375 'description ' => 'test ' ,
373376 'homepage ' => 'http://l3l0.eu ' ,
374377 'visibility ' => 'private ' ,
378+ 'private ' => true ,
375379 'has_issues ' => false ,
376380 'has_wiki ' => false ,
377381 'has_downloads ' => false ,
You can’t perform that action at this time.
0 commit comments