Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New issue template #4

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading