Skip to content

Commit 5fb16b3

Browse files
committed
Update build crash report to only log commit sha
1 parent f8919bf commit 5fb16b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/app/src/app/pages/common/ErrorBoundary/CodeSadbox/buildCrashReport.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export const buildCrashReport = ({
1515
);
1616
const { name, version, os } = browser();
1717

18+
// Only put commit sha inside the body, GitHub can parse this back to a link to commit.
19+
const commitSha = VERSION.split('-')[2];
20+
1821
url.searchParams.set(
1922
`body`,
2023
`<h1>💥 Crash Report</h1>
@@ -32,7 +35,7 @@ export const buildCrashReport = ({
3235
3336
| Browser | Version | Operating System | CodeSandbox Version |
3437
| ------- | --------- | ---------------- | ------------------- |
35-
| ${name} | ${version} | ${os} | ${VERSION} |
38+
| ${name} | ${version} | ${os} | ${commitSha} |
3639
3740
**Route:**
3841
${window.location.href}

0 commit comments

Comments
 (0)