File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/PSGitHubRestApi/Public Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33[ badge-version-github-tag-img ] : https://img.shields.io/github/v/tag/theohbrothers/PSGitHubRestApi?style=flat-square
44[ badge-version-github-tag-src ] : https://github.com/theohbrothers/PSGitHubRestApi/releases
55
6- A powershell module for [ GitHub REST API] ( https://developer.github.com/v3/ ) .
6+ A PowerShell module for [ GitHub REST API] ( https://developer.github.com/v3/ ) .
77
88## Usage
99
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ function Edit-GitHubRepositoryRelease {
5757 if ($TargetCommitish ) { $_body [' target_commitish' ] = $TargetCommitish }
5858 if ($Name ) { $_body [' name' ] = $Name }
5959 if ($Body ) { $_body [' body' ] = $Body }
60- if ($null -ne $Draft ) { $_body [' draft' ] = $Draft.ToString ().ToLower() }
61- if ($null -ne $Prerelease ) { $_body [' prerelease' ] = $Prerelease.ToString ().ToLower() }
60+ if ($null -ne $Draft ) { $_body [' draft' ] = $Draft }
61+ if ($null -ne $Prerelease ) { $_body [' prerelease' ] = $Prerelease }
6262 $_bodyJson = $_body | ConvertTo-Json - Depth 100
6363 " Uri: '$_uri '" | Write-Verbose
6464 " Headers:" | Write-Verbose
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ function New-GitHubRepositoryRelease {
5353 if ($TargetCommitish ) { $_body [' target_commitish' ] = $TargetCommitish }
5454 if ($Name ) { $_body [' name' ] = $Name }
5555 if ($Body ) { $_body [' body' ] = $Body }
56- if ($null -ne $Draft ) { $_body [' draft' ] = $Draft.ToString ().ToLower() }
57- if ($null -ne $Prerelease ) { $_body [' prerelease' ] = $Prerelease.ToString ().ToLower() }
56+ if ($null -ne $Draft ) { $_body [' draft' ] = $Draft }
57+ if ($null -ne $Prerelease ) { $_body [' prerelease' ] = $Prerelease }
5858 $_bodyJson = $_body | ConvertTo-Json - Depth 100
5959 " Uri: '$_uri '" | Write-Verbose
6060 " Headers:" | Write-Verbose
You can’t perform that action at this time.
0 commit comments