sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Error when not using full SHA in set-commits

Open elramen opened this issue 1 year ago • 1 comments

When using set-commits as follows: sentry-cli releases set-commits "2.0" --commit "[email protected]", it looks like everything is working (no error or warning). However, because the provided commit SHAs aren't the full ones, it doesn't actually work. Hence, it would be great to output an error when the provided commit SHAs aren't the full ones.

Note: the docs mention that the full SHA is needed, but that's easy to miss.

elramen avatar May 15 '24 16:05 elramen

It looks like we are parsing the commit hashes locally, so we could probably do this. Although, we should probably also improve error detection server side, since if the provided commits don't exist on the server, there is no error message

szokeasaurusrex avatar Dec 11 '24 10:12 szokeasaurusrex