Skip to content

Extract merge commit body for release notes instead of PR description#67

Merged
supervoidcoder merged 3 commits intomainfrom
copilot/update-release-notes-functionality
Feb 3, 2026
Merged

Extract merge commit body for release notes instead of PR description#67
supervoidcoder merged 3 commits intomainfrom
copilot/update-release-notes-functionality

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Release notes were using PR description instead of merge commit message body. Changed to extract merge commit extended description and combine with PR commit history.

Changes

  • resolve_pr step: Fetch merge commit via merge_commit_sha and extract message body via GitHub API

    • Previous: Used $merged.body (PR description)
    • Now: Uses merge commit message body from API
  • parse_commit step: Added GitHub API call to retrieve merge commit body for PR events

    • Previous: git log -1 --pretty=format:"%b" HEAD (unreliable)
    • Now: Uses github.event.pull_request.merge_commit_sha with API fallback to git log
  • Release notes format: Merge commit body (personalized notes) appears first, followed by separator and categorized commit history

Usage

Write personalized release notes in merge commit message body:

Merge pull request #123 from feature/xyz

Custom release notes here.
Additional context for users.

The extended description (lines after first) appears at top of release, followed by automatic commit categorization.

Original prompt

This section details on the original issue you should resolve

<issue_title>clannk</issue_title>
<issue_description>in release yml the very top release note grabs the ddescription of the pr but i actually want it to grab the extended descriptionb of the actual merge commit like it used to be in very old versions of release.yml

some time ago we changed it to be a list of the commit history in the PR and that worked but I wanted to write more personalized release notes as well so i want BOTH combined

copilot: do NOT touch the main.cpp file or i will fry you into a pile of bolts /j</issue_description>

<agent_instructions>for documentation, don't make any markdown files, just put comments in the pr or the file itself</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 3, 2026 18:14
- Modified resolve_pr step to fetch merge commit message body via GitHub API
- Updated parse_commit step to get merge commit body for both workflow_dispatch and PR events
- Release notes now include BOTH personalized merge commit description AND PR commit history
- Added inline comments to document the changes

Co-authored-by: supervoidcoder <88671013+supervoidcoder@users.noreply.github.com>
- Renamed $commitBody to $commitMessageParts for clarity
- Added debug logging when git log fallback returns empty result

Co-authored-by: supervoidcoder <88671013+supervoidcoder@users.noreply.github.com>
Copilot AI changed the title [WIP] Update release notes to include extended commit descriptions Extract merge commit body for release notes instead of PR description Feb 3, 2026
Copilot AI requested a review from supervoidcoder February 3, 2026 18:16
@supervoidcoder supervoidcoder marked this pull request as ready for review February 3, 2026 18:19
@supervoidcoder supervoidcoder merged commit 1db8ac9 into main Feb 3, 2026
10 checks passed
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.

clannk

2 participants