Skip to content

New Function Proposal: New-GitHubRepositoryFromTemplate #220

Closed
@X-Guardian

Description

@X-Guardian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn issue or pull request introducing new functionality to the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions