Sentry: add Soapbox context

This commit is contained in:
Alex Gleason
2023-10-12 21:51:06 -05:00
parent a158b4dcf5
commit e2b8a74e91
2 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,7 @@ const tryGit = (cmd: string): string | undefined => {
}
};
const version = (pkg: Record<string, any>) => {
const version = (pkg: { version: string }): string => {
// Try to discern from GitLab CI first
if (CI_COMMIT_TAG === `v${pkg.version}` || CI_COMMIT_REF_NAME === 'stable') {
return pkg.version;