update report issue template

This commit is contained in:
Labhansh Agrawal 2020-03-21 03:14:00 +05:30 committed by Benjamin Staneck
parent f6cee0520e
commit 7e27c5a6e3

View file

@ -15,22 +15,20 @@ export default (commands: Record<string, string>, showAbout: () => void): MenuIt
{ {
label: 'Report Issue', label: 'Report Issue',
click() { click() {
const body = ` const body = `<!--
<!--
Hi there! Thank you for discovering and submitting an issue. Hi there! Thank you for discovering and submitting an issue.
Before you submit this; let's make sure of a few things. Before you submit this; let's make sure of a few things.
Please make sure the following boxes are if they are correct. Please make sure the following boxes are if they are correct.
If not, please try and fulfil these first. If not, please try and fulfil these first.
--> -->
<!-- 👉 Checked checkbox should look like this: [x] --> <!-- 👉 Checked checkbox should look like this: [x] -->
- [ ] Your Hyper.app version is **${version}**. Please verify your using the [latest](https://github.com/zeit/hyper/releases/latest) Hyper.app version - [ ] Your Hyper.app version is **${version}**. Please verify your using the [latest](https://github.com/zeit/hyper/releases/latest) Hyper.app version
- [ ] I have searched the [issues](https://github.com/zeit/hyper/issues) of this repo and believe that this is not a duplicate - [ ] I have searched the [issues](https://github.com/zeit/hyper/issues) of this repo and believe that this is not a duplicate
---
--- - **Any relevant information from devtools?** _(CMD+OPTION+I on macOS, CTRL+SHIFT+I elsewhere)_:
- **Any relevant information from devtools?** _(CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere)_:
<!-- 👉 Replace with info if applicable, or N/A --> <!-- 👉 Replace with info if applicable, or N/A -->
- **Is the issue reproducible in vanilla Hyper.app?** - **Is the issue reproducible in vanilla Hyper.app?**
<!-- 👉 Replace with info if applicable, or Is Vanilla. (Vanilla means Hyper.app without any add-ons or extras. Straight out of the box.) --> <!-- 👉 Replace with info if applicable, or Is Vanilla. (Vanilla means Hyper.app without any add-ons or extras. Straight out of the box.) -->
## Issue ## Issue
@ -40,24 +38,24 @@ export default (commands: Record<string, string>, showAbout: () => void): MenuIt
---
<!-- ~/.hyper.js config --> <!-- ~/.hyper.js config -->
- **${app.name} version**: ${env.TERM_PROGRAM_VERSION} "${app.getVersion()}" - **${app.name} version**: ${env.TERM_PROGRAM_VERSION} "${app.getVersion()}"
- **OS ARCH VERSION:** ${platform} ${arch} ${release()}
- **Electron:** ${versions.electron} **LANG:** ${env.LANG}
- **SHELL:** ${env.SHELL} **TERM:** ${env.TERM}
<details><summary><strong>.hyper.js contents</strong></summary>
- **OS ARCH VERSION:** ${platform} ${arch} ${release()} \`\`\`json
- **Electron:** ${versions.electron} **LANG:** ${env.LANG} ${JSON.stringify(getConfig(), null, 2)}
- **SHELL:** ${env.SHELL} **TERM:** ${env.TERM} \`\`\`
</details>
<details><summary><strong>plugins</strong></summary>
<details> \`\`\`json
<summary><strong> ~/.hyper.js contents</strong></summary> ${JSON.stringify(getPlugins(), null, 2)}
<pre> \`\`\`
<code> </details>`;
${JSON.stringify(getConfig(), null, 2)}
${JSON.stringify(getPlugins(), null, 2)}
</code>
</pre>
</details>`;
shell.openExternal(`https://github.com/zeit/hyper/issues/new?body=${encodeURIComponent(body)}`); shell.openExternal(`https://github.com/zeit/hyper/issues/new?body=${encodeURIComponent(body)}`);
} }