Skip to content

Commit bc93867

Browse files
author
Marvin Alexander Rüll
committed
Boolean private needed to create private repo as seen in: https://docs.github.com/en/rest/reference/repos#create-an-organization-repository
1 parent 9906308 commit bc93867

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Github/Api/Repo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)