Support Internal
repos for GH Enterprise Cloud/Server
#373
Labels
enhancement
An issue or pull request introducing new functionality to the project.
triage needed
An issue that needs to be reviewed by a member of the team.
Feature Idea Summary
Support Visibility body parameter: https://docs.github.com/en/rest/repos/repos#create-an-organization-repository
Feature Idea Additional Details
Requested Assignment
However, I have tested the change for
New-GithubRepository
File: GitHubRepository.ps1
.PARAMETER Internal
By default, this repository will be created Public. Specify this to create
an internal repository (GH Enterprise Cloud/Server 2.20+ only).
[switch] $Internal,
if ($PSBoundParameters.ContainsKey('Internal')) { $hashBody['visibility'] = "internal" }
It works, but I know the above would have to be added to many other functions. I also don't know enough about Pester to submit a PR.
Operating System
PowerShell Version
Module Version
Please note: I have bumped the version number in my testing.
Thanks.
The text was updated successfully, but these errors were encountered: