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

Allow uploading commits through `set-commits`

Open bruno-garcia opened this issue 1 year ago • 1 comments

sentry-cli is bundled in the SDK adn invoked via msbuild

  • https://github.com/getsentry/sentry-dotnet/issues/2074

The ticket was resolved but 2 items were not completed:

But we don't upload any commit information. This would be helpful when doing a CI run for publishing a new version. For example:

dotnet publish -c Release /p:SentrySetCommits

Associating commits allows Sentry to link to source code at the correct commit sha. image

As well as suggest suspect commits, and other features.

If we can land this on 4.0.0 we could default to making this call when msbuild publish target is running

bruno-garcia avatar Jan 17 '24 23:01 bruno-garcia

Sentry CLI support

Source Link capabilities out of the box with .NET 8+

Source Link included in the .NET SDK for version 8.0 and later.

Prerequisites for .NET projects:

The following features are not available in projects that do not import Microsoft.NET.Sdk:

  • Automatic inclusion of commit SHA in AssemblyInformationalVersionAttribute.

jamescrosswell avatar Jul 03 '24 03:07 jamescrosswell