Skip to content

Commit f18b7a9

Browse files
committed
fix: Update issue reporting link with body
The "Bug ..." title prefix didn't seem very useful. We have labels to report a bug, and the version is rarely at play, since we don't want to play a game of regression whack-a-mole. This updates it to be mostly empty, which seems fine until we have a problem.
1 parent 00c5116 commit f18b7a9

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
@@ -19,7 +19,9 @@ export interface FooterProps {
1919
export const Footer: React.FC<FooterProps> = ({ buildInfo }) => {
2020
const styles = useFooterStyles()
2121

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

2426
return (
2527
<div className={styles.root}>

0 commit comments

Comments
 (0)