Skip to content

update .toml#7

Closed
cloud9c wants to merge 5 commits intomainfrom
feat/environment-config
Closed

update .toml#7
cloud9c wants to merge 5 commits intomainfrom
feat/environment-config

Conversation

@cloud9c
Copy link

@cloud9c cloud9c commented Jan 27, 2026

Summary

  • Rename org_slugorg
  • Rename game_sluggame
  • Rename branch_slugenvironment (enum: production, demo, sandbox)
  • Add version field for semantic versioning (major.minor.patch)
  • Update API endpoints from /branches/{branch_slug}/ to /environments/{environment}/
  • Send build version to API when pushing builds

New config format

org = "my-org"
game = "my-game"
environment = "sandbox"
version = "1.0.0"
upload_dir = "./builds/webgl"

[godot]
version = "4.5-stable"

Changes

  • Added version field with regex validation (must be major.minor.patch)
  • Renamed version() to engine_version() for clarity
  • Added get_build_version() method
  • Removed legacy field aliases (org_slug, game_slug, branch_slug)
  • Removed deprecated field warnings
  • Added regex dependency for version validation

Test plan

  • cargo check passes
  • Test wvdsh build push with new config format
  • Verify version is sent to API and stored on build

Note: Requires corresponding backend changes (wavedash PR #346)

🤖 Generated with Claude Code

Update wavedash.toml config format:
- org_slug → org
- game_slug → game
- branch_slug → environment (enum: production, demo, sandbox)

Also update:
- API endpoint URLs to use /environments/ instead of /branches/
- URL param from gbrslug to genv

New config format:
```toml
org = "my-org"
game = "my-game"
environment = "production"
upload_dir = "./builds/webgl"
```

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@claude
Copy link

claude bot commented Jan 27, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

cloud9c and others added 2 commits January 27, 2026 13:20
- Warn users when org_slug, game_slug, or branch_slug are used
- Guide users to use new field names: org, game, environment

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add `version` field to wavedash.toml for semantic versioning (major.minor.patch)
- Validate version format with regex
- Send build version to API when pushing builds
- Rename version() to engine_version() for clarity
- Add get_build_version() method
- Remove legacy field aliases (org_slug, game_slug, branch_slug)
- Remove deprecated field warnings
- Add regex dependency

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@cloud9c cloud9c changed the title refactor(config): rename config fields and use environment enum feat: environment config and semantic versioning Jan 28, 2026
@cloud9c cloud9c changed the title feat: environment config and semantic versioning update .toml Jan 28, 2026
cloud9c and others added 2 commits January 28, 2026 17:03
The `version` field in wavedash.toml is now required instead of optional.
This ensures all builds have a semantic version that can be matched to
releases in the developer portal.

- Change `build_version` from `Option<String>` to `String`
- Always include version in API request body
- Update getter to return `&str` instead of `Option<&str>`

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add support for passing a build message when pushing builds, similar to
git commit -m. The message is stored with the build and can be displayed
in the developer portal.

Usage: wvdsh build push -m "Fixed player collision bug"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
pairs.append_pair(UrlParams::GAME_CLOUD_ID, &wavedash_config.org_slug);
pairs.append_pair(UrlParams::GAME_SUBDOMAIN, &wavedash_config.game);
pairs.append_pair(UrlParams::GAME_ENVIRONMENT, wavedash_config.environment.as_str());
pairs.append_pair(UrlParams::GAME_CLOUD_ID, &wavedash_config.org);
Copy link
Member

Choose a reason for hiding this comment

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

a bit confused by this -- just tried it out in the cli and it's not working. did it work for you?

Copy link
Member

Choose a reason for hiding this comment

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

@franzwarning there were some merge conflicts from changes I made try it again

It is confusing that GAME_CLOUD_ID is an org slug though, but that at least matches the previous behavior

Copy link
Member

Choose a reason for hiding this comment

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

Turns out it's unused, removed the ?gcid url param

@cloud9c cloud9c force-pushed the feat/environment-config branch from 76c2231 to bd0de1a Compare February 9, 2026 21:12
@cloud9c cloud9c closed this Feb 9, 2026
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

Comments