chore: Add error-report issue template

The `error-report` label was not being added to error reports
submitted by panics in the web player, despite the `labels` query
parameter in the URL. Users do not have triage/write access to the
repo, which is required by GitHub to add a label to an issue.

Add an issue template for error reports with the `error-report`
label. This template is now added to the issue URL, which
automatically adds the tag regardless of access level.
This commit is contained in:
Mike Welsh 2021-12-30 22:09:30 -08:00
parent ab88f9a23e
commit 3010c505aa
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
---
name: Error report
title: "Error"
about:
labels: ["error-report"]
assignees: ""
---

View File

@ -1127,7 +1127,7 @@ export class RufflePlayer extends HTMLElement {
const issueTitle = `Error on ${pageUrl}`;
let issueLink = `https://github.com/ruffle-rs/ruffle/issues/new?title=${encodeURIComponent(
issueTitle
)}&labels=error-report&body=`;
)}&template=error_report.md&labels=error-report&body=`;
let issueBody = encodeURIComponent(errorText);
if (
errorArray.stackIndex > -1 &&