@@ -53,7 +53,7 @@ filter Get-GitHubRelease
53
53
Gets all releases for the default configured owner/repository.
54
54
55
55
. EXAMPLE
56
- Get-GitHubRelease -ReleaseId 12345
56
+ Get-GitHubRelease -Release 12345
57
57
58
58
Get a specific release for the default configured owner/repository
59
59
@@ -244,7 +244,7 @@ filter New-GitHubRelease
244
244
245
245
. PARAMETER Commitish
246
246
The commitsh value that determines where the Git tag is created from.
247
- Cn be any branch or commit SHA. Unused if the Git tag already exists.
247
+ Can be any branch or commit SHA. Unused if the Git tag already exists.
248
248
Will default to the repository's default branch (usually 'master').
249
249
250
250
. PARAMETER Name
@@ -303,6 +303,7 @@ filter New-GitHubRelease
303
303
304
304
[string ] $Name ,
305
305
306
+ [Alias (' Description' )]
306
307
[string ] $Body ,
307
308
308
309
[switch ] $Draft ,
@@ -391,7 +392,7 @@ filter Set-GitHubRelease
391
392
392
393
. PARAMETER Commitish
393
394
The commitsh value that determines where the Git tag is created from.
394
- Cn be any branch or commit SHA. Unused if the Git tag already exists.
395
+ Can be any branch or commit SHA. Unused if the Git tag already exists.
395
396
Will default to the repository's default branch (usually 'master').
396
397
397
398
. PARAMETER Name
@@ -452,6 +453,7 @@ filter Set-GitHubRelease
452
453
453
454
[string ] $Name ,
454
455
456
+ [Alias (' Description' )]
455
457
[string ] $Body ,
456
458
457
459
[switch ] $Draft ,
@@ -904,7 +906,9 @@ filter New-GitHubReleaseAsset
904
906
ParameterSetName = ' UploadUrl' )]
905
907
[string ] $UploadUrl ,
906
908
907
- [Parameter (Mandatory )]
909
+ [Parameter (
910
+ Mandatory
911
+ ValueFromPipeline )]
908
912
[ValidateScript ({if (Test-Path - Path $_ - PathType Leaf) { $true } else { throw " $_ does not exist or is inaccessible." }})]
909
913
[string ] $Path ,
910
914
@@ -948,10 +952,10 @@ filter New-GitHubReleaseAsset
948
952
$Path = Resolve-UnverifiedPath - Path $Path
949
953
$file = Get-Item - Path $Path
950
954
$fileName = $file.Name
951
- $fileNameEncoded = [System.Web.HTTPUtility ]::UrlEncode ($fileName )
955
+ $fileNameEncoded = [Uri ]::EscapeDataString ($fileName )
952
956
$queryParams = @ (" name=$fileNameEncoded " )
953
957
954
- $labelEncoded = [System.Web.HTTPUtility ]::UrlEncode ($Label )
958
+ $labelEncoded = [Uri ]::EscapeDataString ($Label )
955
959
if (-not [String ]::IsNullOrWhiteSpace($Label )) { $queryParams += " label=$labelEncoded " }
956
960
957
961
$params = @ {
0 commit comments