scripts

Copy-GitHubLabels.ps1

SYNOPSIS

Copies configured issue labels from one repo to another.

SYNTAX

Copy-GitHubLabels.ps1 [-OwnerName] <String> [-RepositoryName] <String> [-DestinationOwnerName <String>]
 -DestinationRepositoryName <String> [-Mode <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

Copy-GitHubLabels.ps1 -OwnerName brianary -RepositoryName scripts -DestinationRepositoryName webcoder

Inserts new labels from the brianary/scripts repo to the brianary/webcoder repo, and also updates attributes like description and color from matching labels in the source.

PARAMETERS

-OwnerName

The source repository’s owner name.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RepositoryName

The source repository name.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DestinationOwnerName

The destination repository’s owner name.

Type: String
Parameter Sets: (All)
Aliases: owner

Required: False
Position: Named
Default value: $OwnerName
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-DestinationRepositoryName

The destination repository name.

Type: String
Parameter Sets: (All)
Aliases: name

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Mode

Determines the copy behavior:

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: AddAndUpdate
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

An object with these properties:

* owner or DestinationOwnerName (optional)

* name or DestinationRepositoryName

OUTPUTS

NOTES

Get-GitHubLabel

New-GitHubLabel

Set-GitHubLabel

Remove-GitHubLabel