Skip to content

Conversation

@jamescrosswell
Copy link
Collaborator

@jamescrosswell jamescrosswell commented Apr 14, 2025

Add SentrySetCommitReleaseOptions to Sentry.targets that can be configured independently of SentryReleaseOptions, since it's possible for these to be conflicting.

Fixes #4108

Testing

This was tested manually with the parameters described in the issue that this PR resolves.

Add `SentrySetCommitReleaseOptions` to Sentry.targets that can be configured independently of `SentryReleaseOptions`, since it's possible for these to be conflicting.

Fixes #4108
@jamescrosswell jamescrosswell marked this pull request as ready for review April 23, 2025 01:37
<Message Importance="High" Text="Setting Sentry commits" />
<Exec
Command="$(SentryCLIBaseCommand) releases set-commits $(SentrySetCommitOptions) $(_SentryRelease) $(SentryReleaseOptions)"
Command="$(SentryCLIBaseCommand) releases set-commits $(SentrySetCommitOptions) $(_SentryRelease) $(SentrySetCommitReleaseOptions)"
Copy link
Member

@Flash0ver Flash0ver Apr 24, 2025

Choose a reason for hiding this comment

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

question: Should we prefix this new property with _?

This property is not intended to be set by consuming projects, right?
And we also don't intend to mention this property in the documentation, do we?
Should we then prefix it with _ to communicate "internal use only)?

Copy link
Collaborator Author

@jamescrosswell jamescrosswell Apr 27, 2025

Choose a reason for hiding this comment

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

No it's supposed to be exposed to SDK users, same as the SentryReleaseOptions. It basically let's users specify whatever options they want (anything documented by sentry-cli releases set-commits --help).

For example they could put --ignore-missing in here.

@jamescrosswell jamescrosswell merged commit b7bd030 into main Apr 29, 2025
32 checks passed
@jamescrosswell jamescrosswell deleted the set-commit-release-options branch April 29, 2025 06:21
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.

Cannot finalize releases with MSBuild integration

4 participants