Copies configured issue labels from one repo to another.
Copy-GitHubLabels.ps1 [-OwnerName] <String> [-RepositoryName] <String> [-DestinationOwnerName <String>]
-DestinationRepositoryName <String> [-Mode <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
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.
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
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
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
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
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
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.