Skip to content

Set-GitHubRepository

SYNOPSIS

Creates or updates a repository.

SYNTAX

Set a repository for the authenticated user (Default)

Set-GitHubRepository -Name <string> [-AddReadme] [-Gitignore <string>] [-License <string>]
 [-Visibility <string>] [-Description <string>] [-Homepage <uri>] [-IsArchived <bool>]
 [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>] [-DefaultBranch <string>] [-HasWiki <bool>]
 [-HasIssues <bool>] [-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
 [-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
 [-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
 [-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
 [-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
 [-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Set a repository from a template to an organization

Set-GitHubRepository -Organization <string> -Name <string> -TemplateOwner <string>
 -TemplateRepository <string> [-IncludeAllBranches] [-Visibility <string>] [-Description <string>]
 [-Homepage <uri>] [-IsArchived <bool>] [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>]
 [-DefaultBranch <string>] [-HasWiki <bool>] [-HasIssues <bool>] [-AllowForking <bool>]
 [-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
 [-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
 [-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
 [-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
 [-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
 [-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Set a forked repository in an organization

Set-GitHubRepository -Organization <string> -ForkOwner <string> -ForkRepository <string>
 [-Name <string>] [-IncludeAllBranches] [-Description <string>] [-Homepage <uri>]
 [-IsArchived <bool>] [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>]
 [-DefaultBranch <string>] [-HasWiki <bool>] [-HasIssues <bool>] [-AllowForking <bool>]
 [-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
 [-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
 [-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
 [-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
 [-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
 [-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Set a repository in an organization

Set-GitHubRepository -Organization <string> -Name <string> [-AddReadme] [-Gitignore <string>]
 [-License <string>] [-Visibility <string>] [-Description <string>] [-Homepage <uri>]
 [-IsArchived <bool>] [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>]
 [-DefaultBranch <string>] [-HasWiki <bool>] [-HasIssues <bool>] [-AllowForking <bool>]
 [-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
 [-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
 [-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
 [-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
 [-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
 [-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Set a forked repository for a user

Set-GitHubRepository -ForkOwner <string> -ForkRepository <string> [-Name <string>]
 [-IncludeAllBranches] [-Description <string>] [-Homepage <uri>] [-IsArchived <bool>]
 [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>] [-DefaultBranch <string>] [-HasWiki <bool>]
 [-HasIssues <bool>] [-HasSponsorships <bool>] [-HasDiscussions <bool>] [-HasProjects <bool>]
 [-AllowMergeCommitWith <string>] [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>]
 [-SuggestUpdateBranch <bool>] [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>]
 [-EnableAdvancedSecurity <bool>] [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
 [-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
 [-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Set a repository from a template to a user

Set-GitHubRepository -Name <string> -TemplateOwner <string> -TemplateRepository <string>
 [-IncludeAllBranches] [-Visibility <string>] [-Description <string>] [-Homepage <uri>]
 [-IsArchived <bool>] [-IsTemplate <bool>] [-WebCommitSignoffRequired <bool>]
 [-DefaultBranch <string>] [-HasWiki <bool>] [-HasIssues <bool>] [-HasSponsorships <bool>]
 [-HasDiscussions <bool>] [-HasProjects <bool>] [-AllowMergeCommitWith <string>]
 [-AllowSquashMergingWith <string>] [-AllowRebaseMerging <bool>] [-SuggestUpdateBranch <bool>]
 [-AllowAutoMerge <bool>] [-DeleteBranchOnMerge <bool>] [-EnableAdvancedSecurity <bool>]
 [-EnableCodeSecurity <bool>] [-EnableSecretScanning <bool>]
 [-EnableSecretScanningPushProtection <bool>] [-EnableSecretScanningAIDetection <bool>]
 [-EnableSecretScanningNonProviderPatterns <bool>] [-Context <Object>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Checks if the specified repository exists. If it does, the repository is updated using the provided parameters. If it does not exist, a new repository is created with the provided parameters. The updated or newly created repository is returned.

EXAMPLES

EXAMPLE 1

Set-GitHubRepository -Name 'Hello-World' -Description 'My repo'

Sets the repository Hello-World for the authenticated user if it does not exist, or updates it if it already exists. The repository uses GitHub's default settings.

EXAMPLE 2

$params = @{
    Owner                  = 'octocat'
    Name                   = 'Hello-World'
    AllowSquashMergingWith = 'Pull request title and description'
    HasIssues              = $true
    SuggestUpdateBranch    = $true
    AllowAutoMerge         = $true
    DeleteBranchOnMerge    = $true
}
Set-GitHubRepository @params

Sets a repository using splatting for the configuration.

PARAMETERS

-AddReadme

Pass true to Set an initial commit with empty README.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a repository in an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository for the authenticated user
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-AllowAutoMerge

Whether to allow Auto-merge to be used on pull requests.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-AllowForking

Either true to allow private forks, or false to prevent private forks.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a repository in an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a forked repository in an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-AllowMergeCommitWith

Allow merge commits for pull requests with the specified setting.

Type: System.String
DefaultValue: Default message
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-AllowRebaseMerging

Whether to allow rebase merges for pull requests.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-AllowSquashMergingWith

Allow squash merges for pull requests with the specified setting.

Type: System.String
DefaultValue: Default message
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Context

The context to run the command in. Used to get the details for the API call. Can be either a string or a GitHubContext object.

Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-DefaultBranch

Updates the default branch for this repository.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-DeleteBranchOnMerge

Whether to delete head branches when pull requests are merged

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Description

A short description of the new repository.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-EnableAdvancedSecurity

Whether to enable GitHub Advanced Security for this repository.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-EnableCodeSecurity

Whether to enable code security for this repository.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-EnableSecretScanning

Whether to enable secret scanning for this repository.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-EnableSecretScanningAIDetection

Whether to enable secret scanning AI detection for this repository.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-EnableSecretScanningNonProviderPatterns

Whether to enable secret scanning non-provider patterns for this repository.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-EnableSecretScanningPushProtection

Whether to enable secret scanning push protection for this repository.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ForkOwner

The account owner of the repository. The name is not case sensitive.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a forked repository in an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a forked repository for a user
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ForkRepository

The name of the repository without the .git extension. The name is not case sensitive.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a forked repository in an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a forked repository for a user
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Gitignore

The desired language or platform to apply to the .gitignore.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a repository in an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository for the authenticated user
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-HasDiscussions

Whether discussions are enabled.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-HasIssues

Whether issues are enabled.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-HasProjects

Whether projects are enabled.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-HasSponsorships

Whether sponsorships are enabled.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-HasWiki

Whether the wiki is enabled.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Homepage

A URL with more information about the repository.

Type: System.Uri
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-IncludeAllBranches

Include all branches from the source repository.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a forked repository in an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a forked repository for a user
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to a user
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-IsArchived

Whether the repository is archived.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-IsTemplate

Whether this repository acts as a template that can be used to generate new repositories.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-License

The license keyword of the open source license for this repository.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a repository in an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository for the authenticated user
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Name

The name of the repository.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a forked repository in an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a forked repository for a user
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository in an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository for the authenticated user
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to a user
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Organization

The account owner of the repository. The name is not case sensitive.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Owner
ParameterSets:
- Name: Set a repository from a template to an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a forked repository in an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository in an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-SuggestUpdateBranch

Whether to always suggest to update a head branch that is behind its base branch during a pull request.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-TemplateOwner

The account owner of the template repository. The name is not case sensitive.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a repository from a template to an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to a user
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-TemplateRepository

The name of the template repository without the .git extension. The name is not case sensitive.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a repository from a template to an organization
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to a user
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Visibility

The visibility of the repository.

Type: System.String
DefaultValue: Public
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Set a repository in an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository for the authenticated user
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to an organization
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Set a repository from a template to a user
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-WebCommitSignoffRequired

Whether to require contributors to sign off on web-based commits.

Type: System.Nullable`1[System.Boolean]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-WhatIf

Runs the command in a mode that only reports what would happen without performing the actions.

Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

GitHubRepository

{{ Fill in the Description }}

NOTES