Skip to content

Commit 8f3727d

Browse files
authored
fix: Update issue reporting link with body (#3339)
1 parent 80223a5 commit 8f3727d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

site/src/components/Footer/Footer.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ describe("Footer", () => {
1515
throw new Error("Bug report link not found in footer")
1616
}
1717

18-
expect(reportBugLink.getAttribute("href")).toBe(
19-
`https://github.com/coder/coder/issues/new?labels=bug,needs+grooming&title=Bug+in+${MockBuildInfo.version}:&template=external_bug_report.md`,
20-
)
18+
expect(reportBugLink.getAttribute("href")?.length).toBeGreaterThan(0)
2119
})
2220
})

site/src/components/Footer/Footer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export interface FooterProps {
2121
export const Footer: React.FC<FooterProps> = ({ buildInfo }) => {
2222
const styles = useFooterStyles()
2323

24-
const githubUrl = `https://github.com/coder/coder/issues/new?labels=bug,needs+grooming&title=Bug+in+${buildInfo?.version}:&template=external_bug_report.md`
24+
const githubUrl = `https://github.com/coder/coder/issues/new?labels=needs+grooming&body=${encodeURIComponent(`Version: [\`${buildInfo?.version}\`](${buildInfo?.external_url})
25+
26+
<!--- Ask a question or leave feedback! -->`)}`
2527
const discordUrl = `https://discord.gg/coder`
2628

2729
return (

0 commit comments

Comments
 (0)