include proper tags in github issues

This commit is contained in:
Eugene Pankov 2018-09-20 12:12:45 +02:00
parent 947e0f8b66
commit 2411713501

View File

@ -25,12 +25,14 @@ export class HomeBaseService {
reportBug () {
let body = `Version: ${this.appVersion}\n`
body += `Platform: ${os.platform()} ${os.release()}\n\n`
body += `Platform: ${os.platform()} ${os.release()}\n`
let label = {
darwin: 'macOS',
windows: 'Windows',
linux: 'Linux',
darwin: 'OS: macOS',
windows: 'OS: Windows',
linux: 'OS: Linux',
}[os.platform()]
let plugins = (window as any).installedPlugins.filter(x => !x.isBuiltin).map(x => x.name)
body += `Plugins: ${plugins.join(', ')}\n\n`
this.electron.shell.openExternal(`https://github.com/eugeny/terminus/issues/new?body=${encodeURIComponent(body)}&labels=${label}`)
}