Skip to content

Keep Http::VERSION in step with the release tags - #32

Merged
valzargaming merged 1 commit into
masterfrom
claude/project-thread-m6gvqt
Oct 11, 2026
Merged

valzargaming merged 1 commit into
masterfrom
claude/project-thread-m6gvqt

Conversation

@valzargaming

Copy link
Copy Markdown
Member

Requested by Val · project thread

Before: Http::VERSION read v10.9.4 while v10.9.5 through v10.9.8 were released. DiscordPHP logs it at startup, so reports quoted the wrong Http version.

After: it reads v10.9.8. A new Version workflow fails on a push or pull request when VERSION is older than the latest release tag, and fails on a published release when VERSION differs from that release's tag.

How: scripts/check-version.php reads the constant from src/Discord/Http.php and compares it with the newest vX.Y.Z tag, or, given a tag, requires an exact match. .github/workflows/version.yml runs it with a full-history checkout. Checked locally: on master it fails with "older than the latest release, v10.9.8", and after the bump it passes. It is the same check as the DiscordPHP companion PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Sm73Ao3BqrrSecK2rcD6Ru


Generated by Claude Code

Http::VERSION still read v10.9.4 after v10.9.5 through v10.9.8 were
released. It now reads v10.9.8, and a Version workflow fails when it
falls behind the latest release or differs from a release being
published.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sm73Ao3BqrrSecK2rcD6Ru
Copilot AI balanced review requested due to automatic review settings October 10, 2026 15:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@valzargaming valzargaming self-assigned this Oct 10, 2026
@valzargaming
valzargaming merged commit 8fcbaca into master Oct 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.

3 participants