Skip to content

Commit 11d92e7

Browse files
committed
Fix issue
1 parent 74a46ee commit 11d92e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Github/Api/Repo.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,17 @@ public function create(
206206
'description' => $description,
207207
'homepage' => $homepage,
208208
'private' => ($visibility ?? ($public ? 'public' : 'private')) === 'private',
209-
'visibility' => $visibility ?? ($public ? 'public' : 'private'),
210209
'has_issues' => $hasIssues,
211210
'has_wiki' => $hasWiki,
212211
'has_downloads' => $hasDownloads,
213212
'auto_init' => $autoInit,
214213
'has_projects' => $hasProjects,
215214
];
216215

216+
if ($visibility) {
217+
$parameters['visibility'] = $visibility;
218+
}
219+
217220
if ($organization && $teamId) {
218221
$parameters['team_id'] = $teamId;
219222
}

0 commit comments

Comments
 (0)