From 1b50ce3ada959be82353662d175f4b1e1745203e Mon Sep 17 00:00:00 2001 From: Vanessa Yuen <6842965+vanessayuenn@users.noreply.github.com> Date: Fri, 17 May 2024 16:03:21 +0200 Subject: [PATCH] tweak the bug report template if too much text is allowed in the "repro" section, the regex for the `nissuer` bot doesn't work properly. --- .github/ISSUE_TEMPLATE/bug_report.yml | 22 ++++++++++++++++------ .github/workflows/triage.yml | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 4efdb336bd66..a31684580dca 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -14,16 +14,26 @@ body: description: A clear and concise description of what the bug is validations: required: true - - type: textarea - id: reproduce + - type: input + id: repro-link attributes: - label: To Reproduce + label: Reproduction link description: >- - Due to the high volume of reports we receive, we can only prioritize bug reports that include a clear reproduction of the problem. Please use [storybook.new](https://storybook.new) to create one, and consult our [documentation](https://storybook.js.org/docs/react/contribute/how-to-reproduce) for guidance. Thank you for your understanding! - placeholder: >- - Please provide a link to your reproduction. Accepted hosts are GitHub, CodeSandbox, and StackBlitz. Note, if the URL is invalid (eg.: 404, or a private repository), we may close the issue. + Please provide a link to a reproduction of the issue. We accept reproductions hosted on GitHub, CodeSandbox, and StackBlitz. Due to the high volume of reports, we prioritize those with clear reproductions. The easiest way to create a reproduction is to use [storybook.new](https://storybook.new). For detailed guidance, please refer to our [documentation](https://storybook.js.org/docs/react/contribute/how-to-reproduce). + + Important: If the provided URL is invalid (e.g., 404 error or private repository), we may close the issue. Thank you for your understanding! validations: required: true + - type: textarea + id: repro-steps + attributes: + label: Reproduction steps + description: >- + Include the steps to reproduce the issue using the provided link. Additionally, provide a clear and concise description of what you expected to happen. + placeholder: >- + 1. Go to above link + 2. Click on '....' + 3. ... - type: textarea id: system attributes: diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index a4a75e69efdb..adf6ad3b9bfc 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -25,6 +25,6 @@ jobs: } reproduction-comment: ".github/comments/invalid-link.md" reproduction-hosts: "github.com,codesandbox.io,stackblitz.com" - reproduction-link-section: "### To Reproduce(.*)### System" + reproduction-link-section: "### Reproduction link(.*)### Reproduction steps" reproduction-invalid-label: "needs reproduction" reproduction-issue-labels: "bug,needs triage"