From 5c062e0e073a6131a9d72b8cbb04d889f0225c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Thu, 19 Oct 2023 10:20:49 +0800 Subject: [PATCH] docs: update issue template --- .github/ISSUE_TEMPLATE/bug-report.yml | 6 ++++ .github/ISSUE_TEMPLATE/change.yml | 52 --------------------------- .github/ISSUE_TEMPLATE/new-rule.yml | 1 - 3 files changed, 6 insertions(+), 53 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/change.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index caa89d96..be32349d 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -20,6 +20,12 @@ body: Operating System: validations: required: true +- type: input + attributes: + label: What rule do you want to report? + description: Please provide the name of the rule you're having problems with. + validations: + required: true - type: input attributes: label: Link to Minimal Reproducible Example diff --git a/.github/ISSUE_TEMPLATE/change.yml b/.github/ISSUE_TEMPLATE/change.yml deleted file mode 100644 index 34e924b6..00000000 --- a/.github/ISSUE_TEMPLATE/change.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: "\U0001F41E Report a problem" -description: "Report an issue with eslint-plugin-n" -title: "Bug: (fill in)" -labels: - - bug -body: -- type: markdown - attributes: - value: By opening an issue, you agree to abide by the [Open JS Foundation Code of Conduct](https://eslint.org/conduct). -- type: textarea - attributes: - label: Environment - description: | - Please tell us about how you're running ESLint. - value: | - Node version: - npm version: - ESLint version: - eslint-plugin-n version: - Operating System: - validations: - required: true -- type: input - attributes: - label: What rule do you want to report - description: Please provide the name of the rule you're having problems with. - validations: - required: true -- type: input - attributes: - label: Link to Minimal Reproducible Example - description: 'Link to a [playground](https://eslint-online-playground.netlify.app/), [StackBlitz](https://stackblitz.com), or GitHub repo with a minimal reproduction of the problem. **A minimal reproduction is required** so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed.' - placeholder: 'https://eslint-online-playground.netlify.app/#' - validations: - required: true -- type: textarea - attributes: - label: What did you expect to happen? - description: | - You can use Markdown in this field. - validations: - required: true -- type: checkboxes - attributes: - label: Participation - options: - - label: I am willing to submit a pull request for this issue. - required: false -- type: textarea - attributes: - label: Additional comments - description: Is there anything else that's important for the team to know? diff --git a/.github/ISSUE_TEMPLATE/new-rule.yml b/.github/ISSUE_TEMPLATE/new-rule.yml index dd5667ae..878bb5af 100644 --- a/.github/ISSUE_TEMPLATE/new-rule.yml +++ b/.github/ISSUE_TEMPLATE/new-rule.yml @@ -20,7 +20,6 @@ body: options: - Warns about a potential problem - Suggests an alternate way of doing something - - Enforces a formatting/stylistic preference validations: required: true - type: textarea