Skip to content

Commit

Permalink
New issue template
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementPasteau committed Nov 3, 2023
1 parent a3703f9 commit a15b55c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 14 deletions.
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/--automatic-crash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: ⚠️ Automatic crash report
description: Do not use this template for bug reports. This template is only for automatic crash reports.
body:
- type: textarea
id: description
attributes:
label: Describe what you were doing when the crash happened
description: Add more details to the crash report if you can.
- type: textarea
id: reproduction_steps
attributes:
label: Steps to reproduce
description: |
* Please include a link to a game if possible!
* If applicable, add screenshots to help explain your problem.
placeholder: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
- type: input
id: gdevelop_version
attributes:
label: GDevelop version
description: |
The version of GDevelop used. Leave the prefilled value.
validations:
required: true
- type: textarea
id: platform_info
attributes:
label: Platform info
description: |
The platform you are using GDevelop on. Leave the prefilled value.
- type: textarea
id: error_stack
attributes:
label: Additional component context
description: Additonal context about the problem. Leave the prefilled value.
- type: textarea
id: component_stack
attributes:
label: Additional component context
description: Additonal context about the problem. Leave the prefilled value.
18 changes: 4 additions & 14 deletions newIDE/app/src/UI/ErrorBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,12 @@ export const ErrorFallbackComponent = ({
label={<Trans>Report the issue on GitHub</Trans>}
primary
onClick={() => {
const templateFile = '--bug-report.yml';
const templateFile = '--automatic-crash.yml';
const title = 'Crash while using an editor';
const description =
const errorStack =
error && error.stack
? `${error.stack.slice(0, 600)}...`
: 'No error found';
const reproductionSteps = 'Fill me with the steps to reproduce';
const platform =
isWindows() || isMacLike()
? 'Desktop'
: isMobile() || isNativeMobileApp()
? 'Mobile'
: 'Web';
const gdevelopVersion = getIDEVersionWithHash();
const platformInfo = `System Version: ${getSystemVersion()}, Arch: ${getArch()}, User Agent: ${getUserAgent()}, Platform: ${getPlatformName()}`;
const additionalContext = componentStack
Expand All @@ -131,13 +124,10 @@ export const ErrorFallbackComponent = ({
baseUrl.searchParams.set('template', templateFile);
baseUrl.searchParams.set('title', title);
baseUrl.searchParams.set('labels', 'bug');
baseUrl.searchParams.set('searched_issues', 'true');
baseUrl.searchParams.set('description', description);
baseUrl.searchParams.set('reproduction_steps', reproductionSteps);
baseUrl.searchParams.set('platform', platform);
baseUrl.searchParams.set('gdevelop_version', gdevelopVersion);
baseUrl.searchParams.set('platform_info', platformInfo);
baseUrl.searchParams.set('additional_context', additionalContext);
baseUrl.searchParams.set('error_stack', errorStack);
baseUrl.searchParams.set('component_stack', additionalContext);

Window.openExternalURL(baseUrl.href);
}}
Expand Down

0 comments on commit a15b55c

Please sign in to comment.