mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Update issue reporting link with body (#3339)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user