Skip to content

Conversation

@jorben
Copy link
Collaborator

@jorben jorben commented Feb 11, 2026

Summary

  • Add previous stable tag detection to draft-release.yml using the same logic as changelog.yml
  • Use fromTag/toTag instead of tag in changelog-action to explicitly specify the diff range
  • Enable fetch-depth: 0 on checkout to access all tags

This ensures the draft release changelog generates correctly even when the current tag is a pre-release name (e.g. beta-xxx), by always comparing against the last stable X.Y.Z tag.

Test Plan

  • Push a pre-release tag (e.g. beta-1.0.0) and verify draft release is created with correct changelog
  • Push a stable tag (e.g. 1.0.0) and verify changelog still works as expected
  • Verify prev_tag output is logged correctly in workflow run

🤖 Generated with Claude Code

Add previous stable tag detection to draft-release workflow so
changelog-action generates correct diff range even when the
current tag is a pre-release (e.g. beta-xxx). Aligns with the
same approach used in changelog.yml.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jorben jorben merged commit aea285f into master Feb 11, 2026
2 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.

1 participant