Skip to content

Commit

Permalink
Fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mruell committed Apr 13, 2022
1 parent 74a46ee commit 11d92e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Github/Api/Repo.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,17 @@ public function create(
'description' => $description,
'homepage' => $homepage,
'private' => ($visibility ?? ($public ? 'public' : 'private')) === 'private',
'visibility' => $visibility ?? ($public ? 'public' : 'private'),
'has_issues' => $hasIssues,
'has_wiki' => $hasWiki,
'has_downloads' => $hasDownloads,
'auto_init' => $autoInit,
'has_projects' => $hasProjects,
];

if ($visibility) {
$parameters['visibility'] = $visibility;
}

if ($organization && $teamId) {
$parameters['team_id'] = $teamId;
}
Expand Down

0 comments on commit 11d92e7

Please sign in to comment.