Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 25, 2026

The WordPress version-check API returns versions in major.minor format (e.g., 6.9), but GitHub tags require the full semantic version including patch (e.g., 6.9.0). This causes download failures when installing the latest WordPress version.

Changes:

  • Added version padding logic to append .0 to major.minor versions before constructing GitHub tag URLs
  • Applied only in the latest version path where the version-check API is queried

Example:

# Before: API returns "6.9" → downloads from .../tags/6.9.tar.gz (404)
# After:  API returns "6.9" → appends ".0" → downloads from .../tags/6.9.0.tar.gz (success)

if [[ $LATEST_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
    LATEST_VERSION="${LATEST_VERSION}.0"
fi

Addresses feedback from #356.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot AI changed the title [WIP] Update install-wp-tests.sh to address versioning tags feedback Fix version padding for GitHub tag downloads in install-wp-tests.sh Jan 25, 2026
Copilot AI requested a review from swissspidy January 25, 2026 13:10
@swissspidy swissspidy marked this pull request as ready for review January 25, 2026 13:13
@swissspidy swissspidy requested a review from a team as a code owner January 25, 2026 13:13
@swissspidy swissspidy merged commit b8622df into try/322-refresh Jan 25, 2026
@swissspidy swissspidy deleted the copilot/sub-pr-356 branch January 25, 2026 13:13
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