diff options
author | 2022-05-23 21:32:03 +0530 | |
---|---|---|
committer | 2022-05-23 11:02:03 -0500 | |
commit | 63c26c1b24a07a313e0bcf99b35089e23f0cf7fc (patch) | |
tree | eaf9a94b9806f33d19d4e65c5be01879b0794603 /packages | |
parent | c8174a079a67b07d6dc0503ce8853303baca0f8e (diff) | |
download | astro-63c26c1b24a07a313e0bcf99b35089e23f0cf7fc.tar.gz astro-63c26c1b24a07a313e0bcf99b35089e23f0cf7fc.tar.zst astro-63c26c1b24a07a313e0bcf99b35089e23f0cf7fc.zip |
Fix GitHub Issue creation link (closes #3257) (#3421)
* Add IDs to bug report issue form
* Replace 'body' with correct input id for prefilling form
Diffstat (limited to 'packages')
-rw-r--r-- | packages/astro/src/vite-plugin-astro/index.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/packages/astro/src/vite-plugin-astro/index.ts b/packages/astro/src/vite-plugin-astro/index.ts index 4be0472cb..404e21476 100644 --- a/packages/astro/src/vite-plugin-astro/index.ts +++ b/packages/astro/src/vite-plugin-astro/index.ts @@ -251,19 +251,17 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu const search = new URLSearchParams({ labels: 'compiler', title: '🐛 BUG: `@astrojs/compiler` panic', - body: `### Describe the Bug - - \`@astrojs/compiler\` encountered an unrecoverable error when compiling the following file. - - **${id.replace(fileURLToPath(config.root), '')}** - \`\`\`astro - ${source} - \`\`\` - `, + template: '---01-bug-report.yml', + 'bug-description': `\`@astrojs/compiler\` encountered an unrecoverable error when compiling the following file. + +**${id.replace(fileURLToPath(config.root), '')}** +\`\`\`astro +${source} +\`\`\``, }); err.url = `https://github.com/withastro/astro/issues/new?${search.toString()}`; err.message = `Error: Uh oh, the Astro compiler encountered an unrecoverable error! - + Please open a GitHub issue using the link below: ${err.url}`; |