You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply the same validation to `SENTRY_RELEASE` that we also apply to the
`--release` argument.
Fixes#2444
Fixes
[CLI-7](https://linear.app/getsentry/issue/CLI-7/validate-release-strings-locally)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Validate SENTRY_RELEASE with the same rules as --release and refactor
release validation/parsing for clap.
>
> - **Config (`src/config.rs`)**:
> - Validate `SENTRY_RELEASE` via `args::validate_release`; ignore with
warning if invalid; require release if missing.
> - **CLI Args (`src/utils/args.rs`)**:
> - Refactor release validation: expose `validate_release` returning
`anyhow::Result<()>` and add `parse_release` for clap.
> - Use `parse_release` for `--release` and `--version` value parsers.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
383ec69. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments