Skip to content

Fix: Release drafter uses auto-calculated next version instead of package.json#198

Merged
wallstop merged 3 commits intomainfrom
copilot/fix-version-auto-tagging
Feb 7, 2026
Merged

Fix: Release drafter uses auto-calculated next version instead of package.json#198
wallstop merged 3 commits intomainfrom
copilot/fix-version-auto-tagging

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 7, 2026

Description

Release drafter was creating drafts tagged with the current package.json version (3.1.8) instead of calculating the next version from PR labels. Workflow explicitly overrode release-drafter's version resolution by passing version and tag parameters from package.json.

Changes:

  • Reordered steps: release-drafter now runs before changelog extraction
  • Removed explicit version and tag parameters to enable automatic version calculation
  • Changelog extraction now uses release_drafter.outputs.tag_name instead of package.json
  • Added fallback to extract [Unreleased] section when calculated version not yet in CHANGELOG
  • Enhanced AWK script for case-insensitive "Unreleased" matching

Before: Draft release tagged as 3.1.8 (current version)
After: Draft release tagged as 3.1.9 (next version, calculated from git tags + PR labels)

Net change: -5 lines

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactor (code change that neither fixes a bug nor adds a feature)

Checklist

  • I have added tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have updated the CHANGELOG
  • My changes do not introduce breaking changes, or breaking changes are documented
Original prompt

This section details on the original issue you should resolve

<issue_title>[Bug]: Version Releaser Doesn't Auto-Tag</issue_title>
<issue_description>### Description

The tag for the version drafter is some hash, it's not the next version or latest unreleased version in the CHANGELOG

Steps to Reproduce

  1. Go to Version Auto-Draft

Expected Behavior

Tag is latest unreleased version

Actual Behavior

Tag is some hash

Unity Version

2021.3 LTS

Package Version

3.1.7

Platform

  • Editor
  • Windows
  • macOS
  • Linux
  • iOS
  • Android
  • WebGL
  • Other

Additional Context

No response</issue_description>

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


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 7, 2026 21:08
Co-authored-by: wallstop <1045249+wallstop@users.noreply.github.com>
…e trailing whitespace

Co-authored-by: wallstop <1045249+wallstop@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix version tag not updating to latest unreleased version Fix: Release drafter uses auto-calculated next version instead of package.json Feb 7, 2026
Copilot AI requested a review from wallstop February 7, 2026 21:11
@wallstop wallstop marked this pull request as ready for review February 7, 2026 21:19
@wallstop wallstop merged commit 4688f74 into main Feb 7, 2026
12 checks passed
@wallstop wallstop deleted the copilot/fix-version-auto-tagging branch February 7, 2026 21:19
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.

[Bug]: Version Releaser Doesn't Auto-Tag

2 participants