Skip to content

Conversation

MariusStorhaug
Copy link
Member

@MariusStorhaug MariusStorhaug commented May 17, 2025

Summary

This update introduces a new configuration option, UsePRTitleAsNotesHeading, which uses the pull request (PR) title to be used as a heading in the generated release notes. When enabled, the PR title will appear as a first-level heading (#) in the release notes, enhancing readability and organization.

✅ Changes

  • Added UsePRTitleAsNotesHeading configuration option to control the inclusion of PR titles as headings in release notes.
  • Updated the release note generation logic to conditionally include PR titles based on the new configuration setting.

🛠 Configuration

As this feature is enabled by default, disable it by setting the UsePRTitleAsNotesHeading option to false on the action.

@Copilot Copilot AI review requested due to automatic review settings May 17, 2025 09:46
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner May 17, 2025 09:46
Copy link
Contributor

@Copilot 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 an option to prefix GitHub release notes with the pull request title as an H2 heading.

  • Introduce UsePRTitleAsNotesHeading input in action.yml
  • Support the option in scripts/main.ps1 when building release notes
  • Document the new option and default in README.md

Reviewed Changes

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

File Description
scripts/main.ps1 Implement handling of UsePRTitleAsNotesHeading flag
action.yml Add new UsePRTitleAsNotesHeading input definition
README.md Document UsePRTitleAsNotesHeading option and default
Comments suppressed due to low confidence (1)

scripts/main.ps1:50

  • New configuration flag introduces behavior that isn’t covered by existing tests; consider adding unit or integration tests to validate this code path.
$usePRTitleAsNotesHeading = ![string]::IsNullOrEmpty($configuration.UsePRTitleAsNotesHeading) ? $configuration.UsePRTitleAsNotesHeading -eq 'true' : $env:PSMODULE_AUTO_RELEASE_INPUT_UsePRTitleAsNotesHeading -eq 'true'

MariusStorhaug and others added 3 commits May 17, 2025 11:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MariusStorhaug MariusStorhaug changed the title Add option to use PR title heading in release notes 🚀[Feature]: Add option to use PR title heading in release notes May 17, 2025
@MariusStorhaug MariusStorhaug merged commit 09e7eaf into main May 17, 2025
13 checks passed
@MariusStorhaug MariusStorhaug deleted the codex/add-pr-title-as-h2-heading-in-release branch May 17, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant