Skip to content

Add GitHub Release creation with auto-generated release notes#109

Merged
thoemmi merged 3 commits intomasterfrom
feature/release-notes
Feb 22, 2026
Merged

Add GitHub Release creation with auto-generated release notes#109
thoemmi merged 3 commits intomasterfrom
feature/release-notes

Conversation

@thoemmi
Copy link
Owner

@thoemmi thoemmi commented Feb 22, 2026

Summary

  • Generates release notes via the GitHub API before publishing, so the same content can be used in both places
  • Passes release notes to \Publish-Module -ReleaseNotes\ so they appear on the PowerShell Gallery
  • Creates a GitHub Release with the generated notes
  • Adds .github/release.yml\ to categorize PRs into sections (✨ New Features, 🐛 Bug Fixes, 📦 Dependencies, 🔧 Other Changes) based on labels

- Generate release notes via GitHub API before publishing
- Pass release notes to Publish-Module -ReleaseNotes for PSGallery
- Create GitHub Release with the same notes
- Add .github/release.yml to categorize PRs by label

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 22, 2026 22:13
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 pull request enhances the release workflow by automating GitHub Release creation and incorporating release notes into both GitHub and PowerShell Gallery publications. The changes integrate the GitHub API to generate release notes based on merged PRs, categorized by custom labels defined in a new configuration file.

Changes:

  • Generates auto-formatted release notes via GitHub API before publishing
  • Passes release notes to PowerShell Gallery during module publication
  • Creates GitHub Releases automatically with generated notes
  • Adds release note categorization configuration with emoji-prefixed sections

Reviewed changes

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

File Description
.github/workflows/release-publish.yml Adds three new steps: generates release notes via GitHub API, passes notes to Publish-Module, and creates GitHub Release
.github/release.yml Defines PR categorization rules for auto-generated release notes (features, bugs, dependencies, other)

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

- Add contents: write permission for creating GitHub releases
- Add ErrorActionPreference = Stop for error handling
- Validate release notes are not empty before proceeding
- Add -Encoding utf8 to Out-File for GitHub Actions compatibility

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


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

Scope contents:write permission to the release job only, so routine
pushes to master run with default read-only permissions (least-privilege).

The build job uploads the prepared module as an artifact; the release
job (tag-only) downloads it before publishing to PS Gallery and creating
the GitHub Release.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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

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


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

@thoemmi thoemmi merged commit 3a7c9b4 into master Feb 22, 2026
5 checks passed
@thoemmi thoemmi deleted the feature/release-notes branch February 22, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants