fix: Update issue reporting link with body (#3339)

This commit is contained in:
Kyle Carberry
2022-08-01 17:03:02 +00:00
committed by GitHub
parent 80223a5e41
commit 8f3727d05d
2 changed files with 4 additions and 4 deletions
+1 -3
View File
@@ -15,8 +15,6 @@ describe("Footer", () => {
throw new Error("Bug report link not found in footer")
}
expect(reportBugLink.getAttribute("href")).toBe(
`https://github.com/coder/coder/issues/new?labels=bug,needs+grooming&title=Bug+in+${MockBuildInfo.version}:&template=external_bug_report.md`,
)
expect(reportBugLink.getAttribute("href")?.length).toBeGreaterThan(0)
})
})
+3 -1
View File
@@ -21,7 +21,9 @@ export interface FooterProps {
export const Footer: React.FC<FooterProps> = ({ buildInfo }) => {
const styles = useFooterStyles()
const githubUrl = `https://github.com/coder/coder/issues/new?labels=bug,needs+grooming&title=Bug+in+${buildInfo?.version}:&template=external_bug_report.md`
const githubUrl = `https://github.com/coder/coder/issues/new?labels=needs+grooming&body=${encodeURIComponent(`Version: [\`${buildInfo?.version}\`](${buildInfo?.external_url})
<!--- Ask a question or leave feedback! -->`)}`
const discordUrl = `https://discord.gg/coder`
return (