Skip to content

Conversation

@MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented Jan 17, 2026

The settings action now supports three new configuration options that control how GitHub release notes are generated from pull requests.

New settings schema

The following settings are now available in the Publish.Module section of your .github/PSModule.yml:

Setting Type Default Description
UsePRTitleAsReleaseName boolean false Use pull request title as the GitHub release name
UsePRBodyAsReleaseNotes boolean true Use pull request body as the release notes content
UsePRTitleAsNotesHeading boolean true Add pull request title as H1 heading in release notes

Schema changes

The JSON schema in scripts/Settings.schema.json has been updated to include the new properties with proper type definitions and descriptions.

Default values

The scripts/main.ps1 file now outputs these settings with sensible defaults:

  • UsePRTitleAsReleaseName: false (release name uses version tag)
  • UsePRBodyAsReleaseNotes: true (PR body becomes release notes)
  • UsePRTitleAsNotesHeading: true (PR title appears as heading with PR link)

Copilot AI review requested due to automatic review settings January 17, 2026 21:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds three new configuration settings to enable PR-based release notes generation in the PSModule workflow. The settings control whether PR titles and bodies should be used in GitHub releases.

Changes:

  • Added three boolean properties to the Publish.Module schema: UsePRTitleAsReleaseName, UsePRBodyAsReleaseNotes, and UsePRTitleAsNotesHeading
  • Implemented settings processing in main.ps1 with appropriate default values

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/Settings.schema.json Added three boolean properties to Publish.Module schema defining PR-based release notes settings
scripts/main.ps1 Added processing for the three new settings with defaults matching Publish-PSModule action

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MariusStorhaug MariusStorhaug changed the title Add PR-based release notes settings to schema 🚀 [Feature]: Add PR-based release notes settings Jan 17, 2026
@MariusStorhaug MariusStorhaug marked this pull request as draft January 17, 2026 22:11
@MariusStorhaug MariusStorhaug marked this pull request as ready for review January 17, 2026 22:12
@MariusStorhaug MariusStorhaug merged commit ce4aac7 into main Jan 17, 2026
22 checks passed
@MariusStorhaug MariusStorhaug deleted the releasenotes branch January 17, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants