Add GitHub Release creation with auto-generated release notes#109
Add GitHub Release creation with auto-generated release notes#109
Conversation
- 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>
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
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.
Summary