Skip to content

Conversation

@graycreate
Copy link
Member

Problem

The Google Play whatsnew was only showing the current version's changelog instead of the past 3 versions.

Example output (broken):

唯一问题反馈渠道:https://v2er.app/help

V2er v2.3.15
• General stability and maintenance updates

Root Cause

The \s regex shorthand is not supported in POSIX ERE (used by grep -E and sed -E on Ubuntu). This caused:

  • Version extraction from CHANGELOG.md to fail silently
  • Changelog parsing to return empty strings

Fix

Replaced all \s with [[:space:]] throughout the release workflow:

  • Version extraction from config.gradle
  • Changelog validation
  • GitHub release notes generation
  • Google Play whatsnew generation

🤖 Generated with Claude Code

Replace \s with [[:space:]] in grep/sed patterns throughout the release
workflow. The \s shorthand is not supported in POSIX ERE (used by grep -E
and sed -E on Ubuntu), causing version extraction and changelog parsing
to fail silently.

This fix ensures the whatsnew generation correctly includes past 3 versions
in Google Play release notes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings December 28, 2025 06:40
@graycreate graycreate merged commit 85edc8d into main Dec 28, 2025
6 checks passed
@graycreate graycreate deleted the bugfix/workflow-regex-compatibility branch December 28, 2025 06:40
Copy link

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 PR fixes a critical bug in the Google Play whatsnew generation where only the current version's changelog was shown instead of the past 3 versions. The root cause was the use of \s regex shorthand, which is not supported in POSIX ERE (used by grep -E and sed -E on Ubuntu). All instances of \s have been replaced with the POSIX-compliant [[:space:]] character class.

  • Replaced \s with [[:space:]] in all regex patterns throughout the release workflow
  • Fixed version extraction from config.gradle
  • Fixed changelog validation and parsing
  • Fixed GitHub release notes generation
  • Fixed Google Play whatsnew generation to include past 3 versions

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