Skip to content

Commit

Permalink
chore(website): include labels in the report-an-issue button (#5126)
Browse files Browse the repository at this point in the history
* chore(website): include labels in the report-an-issue button

I was wrong [when I originally told armano to remove these](#4916 (comment)).
It appears that GH uses the issue form config to power the initial link from the issue chooser, and then completely ignores the config after that 😢 
So without this param, the issue is filled without any tags at all!!!

* Update packages/website/src/components/lib/markdown.ts

Co-authored-by: Armano <armano2@users.noreply.github.com>

Co-authored-by: Armano <armano2@users.noreply.github.com>
  • Loading branch information
bradzacher and armano2 committed Jun 1, 2022
1 parent 316f6ba commit f0fb2e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/website/src/components/lib/markdown.ts
Expand Up @@ -50,6 +50,7 @@ export function createMarkdown(state: ConfigModel): string {

export function createMarkdownParams(state: ConfigModel): string {
const params = {
labels: 'bug,package: eslint-plugin,triage',
template: '1-bug-report-plugin.yaml',
title: 'Bug: [rule name here] <short description of the issue>',
'playground-link': document.location.toString(),
Expand Down

0 comments on commit f0fb2e5

Please sign in to comment.