Skip to content

Conversation

@szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Nov 11, 2025

Description

Add client-side validation for SHA fields. Also, don't send these fields' values if the user overrides them with an empty string like --head-sha "".

Issues

Copy link
Member Author

szokeasaurusrex commented Nov 11, 2025

@linear
Copy link

linear bot commented Nov 11, 2025

@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/validate-shas branch from 605f074 to a8ffcd4 Compare November 11, 2025 21:58
szokeasaurusrex added a commit that referenced this pull request Nov 11, 2025
### Description
Add client-side validation for SHA fields. Also, don't send these fields' values if the user overrides them with an empty string like `--head-sha ""`.

### Issues
- Resolves #2941
- Resolves [CLI-224](https://linear.app/getsentry/issue/CLI-224/skip-serializing-certain-fields-for-build-upload)
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/validate-shas branch from a8ffcd4 to f23e55c Compare November 11, 2025 21:58
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review November 11, 2025 22:01
@szokeasaurusrex szokeasaurusrex requested review from a team as code owners November 11, 2025 22:01
Copy link
Contributor

@runningcode runningcode left a comment

Choose a reason for hiding this comment

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

This looks great as is! We also want to be able to empty the other auto-inferred params like vcs-provider, base-ref, head-ref, repo-name, and pr-number.

@szokeasaurusrex
Copy link
Member Author

This looks great as is! We also want to be able to empty the other auto-inferred params like vcs-provider, base-ref, head-ref, repo-name, and pr-number.

Aha, got it, I can probably fix that as well (should be simpler; I'll just add the clearing ability without validation for those)

szokeasaurusrex added a commit that referenced this pull request Nov 12, 2025
Add client-side validation for SHA fields. Also, don't send these fields' values if the user overrides them with an empty string like `--head-sha ""`.

- Resolves #2941
- Resolves [CLI-224](https://linear.app/getsentry/issue/CLI-224/skip-serializing-certain-fields-for-build-upload)
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/validate-shas branch from f23e55c to d26e21d Compare November 12, 2025 08:15
Base automatically changed from szokeasaurusrex/move-vcsinfo to master November 12, 2025 14:17
szokeasaurusrex added a commit that referenced this pull request Nov 12, 2025
Add client-side validation for SHA fields. Also, don't send these fields' values if the user overrides them with an empty string like `--head-sha ""`.

- Resolves #2941
- Resolves [CLI-224](https://linear.app/getsentry/issue/CLI-224/skip-serializing-certain-fields-for-build-upload)
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/validate-shas branch from d26e21d to 9760a73 Compare November 12, 2025 14:21
### Description
Add client-side validation for SHA fields. Also, don't send these fields' values if the user overrides them with an empty string like `--head-sha ""`.

### Issues
- Ref #2941
- Ref [CLI-224](https://linear.app/getsentry/issue/CLI-224/skip-serializing-certain-fields-for-build-upload)
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/validate-shas branch from 9760a73 to a2cef20 Compare November 12, 2025 14:22
@szokeasaurusrex szokeasaurusrex merged commit a2cef20 into master Nov 12, 2025
28 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/validate-shas branch November 12, 2025 14:30
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.

4 participants