File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8282
8383 Set-GitHubLogGroup ' Event information - Details' {
8484 $defaultBranchName = (gh repo view -- json defaultBranchRef | ConvertFrom-Json | Select-Object - ExpandProperty defaultBranchRef).name
85- $isPullRequest = $githubEvent.PSObject.Properties.Name -Contains ' pull_request'
85+ $isPullRequest = $githubEvent.PSObject.Properties.Name -contains ' pull_request'
8686 if (-not ($isPullRequest -or $whatIf )) {
8787 Write-Warning ' ⚠️ A release should not be created in this context. Exiting.'
8888 exit
119119 Set-GitHubLogGroup ' Calculate release type' {
120120 $createRelease = $isMerged -and $targetIsDefaultBranch
121121 $closedPullRequest = $prIsClosed -and -not $isMerged
122- $createPrerelease = $labels -Contains ' prerelease' -and -not $createRelease -and -not $closedPullRequest
122+ $createPrerelease = $labels -contains ' prerelease' -and -not $createRelease -and -not $closedPullRequest
123123 $prereleaseName = $prHeadRef -replace ' [^a-zA-Z0-9]'
124124
125125 $ignoreRelease = ($labels | Where-Object { $ignoreLabels -contains $_ }).Count -gt 0
376376 }
377377
378378 # Add notes parameter
379- if ($usePRTitleAsNotesHeading -and $pull_request.title -and $pull_request.body ) {
379+ if ($usePRTitleAsNotesHeading -and $usePRBodyAsReleaseNotes -and $ pull_request.title -and $pull_request.body ) {
380380 $prTitle = $pull_request.title
381381 $prNumber = $pull_request.number
382382 $prBody = $pull_request.body
You can’t perform that action at this time.
0 commit comments