Skip to content

Commit

Permalink
Boolean private needed to create private repo as seen in: https://doc…
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Alexander Rüll committed Jan 24, 2022
1 parent 9906308 commit bc93867
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Github/Api/Repo.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public function create(
'name' => $name,
'description' => $description,
'homepage' => $homepage,
'private' => ($visibility ?? ($public ? 'public' : 'private')) === 'private',
'visibility' => $visibility ?? ($public ? 'public' : 'private'),
'has_issues' => $hasIssues,
'has_wiki' => $hasWiki,
Expand Down

0 comments on commit bc93867

Please sign in to comment.