getsentry / sentry-dotnet

Sentry SDK for .NET
https://docs.sentry.io/platforms/dotnet
MIT License
574 stars 206 forks source link

Allow uploading commits through `set-commits` #3058

Open bruno-garcia opened 5 months ago

bruno-garcia commented 5 months ago

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

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

jamescrosswell commented 6 days ago

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.