Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Function Proposal: New-GitHubRepositoryFromTemplate #220

Closed
X-Guardian opened this issue Jun 3, 2020 · 0 comments · Fixed by #221
Closed

New Function Proposal: New-GitHubRepositoryFromTemplate #220

X-Guardian opened this issue Jun 3, 2020 · 0 comments · Fixed by #221
Labels
enhancement An issue or pull request introducing new functionality to the project.

Comments

@X-Guardian
Copy link
Contributor

X-Guardian commented Jun 3, 2020

Feature Idea Summary

With the Baptiste preview, GitHub have introduced an API to Create a new repository from a template.

I propose a new function New-GitHubRepositoryFromTemplate to leverage this new API.

A new IsTemplate parameter has already been added to the New-GitHubRepository and Update-GitHubRepository functions as part of PR #192 which allows repositories to be marked as templates.

Feature Idea Additional Details

Proposed parameters:

Name Type Description
RepositoryName Mandatory String Name of the repository to be created.
OwnerName Mandatory String Owner of the repository to be created. If not specified, the DefaultOwnerName configuration property value will be used.
TemplateOwnerName Mandatory String Owner of the template repository.
TemplateRepositoryName Mandatory String Name of the template repository.
Description String A short description of the repository.
Private Switch By default, this repository will be created Public. Specify this to create a private repository.
AccessToken String If provided, this will be used as the AccessToken for authentication with the REST Api. Otherwise, will attempt to use the configured value or will run unauthenticated.
NoStatus Switch If this switch is specified, long-running commands will run on the main thread with no commandline status update. When not specified, those commands run in the background, enabling the command prompt to provide status information. If not supplied here, the DefaultNoStatus configuration property value will be used.

Requested Assignment

  • If possible, I would like to implement this.
@X-Guardian X-Guardian added 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. labels Jun 3, 2020
HowardWolosky pushed a commit that referenced this issue Jun 26, 2020
Adds a new function `New-GitHubRepositoryFromTemplate`.  This function creates a new GitHub repository from a specified template repository.

Fixes #220
@HowardWolosky HowardWolosky removed the triage needed An issue that needs to be reviewed by a member of the team. label Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An issue or pull request introducing new functionality to the project.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants