We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a46ee commit 11d92e7Copy full SHA for 11d92e7
lib/Github/Api/Repo.php
@@ -206,14 +206,17 @@ public function create(
206
'description' => $description,
207
'homepage' => $homepage,
208
'private' => ($visibility ?? ($public ? 'public' : 'private')) === 'private',
209
- 'visibility' => $visibility ?? ($public ? 'public' : 'private'),
210
'has_issues' => $hasIssues,
211
'has_wiki' => $hasWiki,
212
'has_downloads' => $hasDownloads,
213
'auto_init' => $autoInit,
214
'has_projects' => $hasProjects,
215
];
216
+ if ($visibility) {
217
+ $parameters['visibility'] = $visibility;
218
+ }
219
+
220
if ($organization && $teamId) {
221
$parameters['team_id'] = $teamId;
222
}
0 commit comments