diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 0000000000..6e19818e17 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,66 @@ +name: 🐞 Bug report +description: Create a report to help us improve +labels: ["bug", "triage"] +body: + - type: checkboxes + id: existing + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched the existing issues + required: true + - type: textarea + id: description + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is, make sure to paste any exceptions and tracebacks using markdown code-block syntax to make it easier to read. + validations: + required: true + - type: textarea + id: code + attributes: + label: Code snippet + description: Relevant source code, make sure to remove what is not necessary. + validations: + required: false + - type: textarea + id: expected + attributes: + label: Expected Behavior + description: A concise description of what you expected to happen. + validations: + required: false + - type: dropdown + id: running + attributes: + label: How do you run Sanic? + options: + - Sanic CLI + - As a module + - As a script (`app.run` or `Sanic.serve`) + - ASGI + validations: + required: true + - type: input + id: os + attributes: + label: Operating System + description: What OS? + validations: + required: true + - type: input + id: version + attributes: + label: Sanic Version + description: Check startup logs or try `sanic --version` + validations: + required: true + - type: textarea + id: additional + attributes: + label: Additional context + description: Add any other context about the problem here. + validations: + required: false + diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 0f83ee8d59..0000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -labels: ["bug"] - ---- - -**Describe the bug** - - - -**Code snippet** - - - -**Expected behavior** - - - -**Environment (please complete the following information):** - - - OS: - - Sanic Version: - - -**Additional context** - diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 61c8ec4083..1d9046ab37 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -blank_issues_enabled: true +blank_issues_enabled: false contact_links: - name: Questions and Help url: https://community.sanicframework.org/c/questions-and-help diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 0000000000..cba61458de --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,34 @@ +name: 🌟 Feature request +description: Suggest an enhancement for Sanic +labels: ["feature request"] +body: + - type: checkboxes + id: existing + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the enhancement you are proposing. + options: + - label: I have searched the existing issues + required: true + - type: textarea + id: description + attributes: + label: Is your feature request related to a problem? Please describe. + description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + validations: + required: false + - type: textarea + id: code + attributes: + label: Describe the solution you'd like + description: A clear and concise description of what you want to happen. + validations: + required: true + - type: textarea + id: additional + attributes: + label: Additional context + description: Add any other context about the problem here. + validations: + required: false + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 71970e0196..0000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for Sanic -labels: ["feature request"] - ---- - -**Is your feature request related to a problem? Please describe.** - - - -**Describe the solution you'd like** - - - -**Additional context** - diff --git a/setup.py b/setup.py index c7d2c0e267..69adc63d86 100644 --- a/setup.py +++ b/setup.py @@ -95,7 +95,7 @@ def open_local(paths, mode="r", encoding="utf8"): tests_require = [ "sanic-testing>=22.9.0b2", - "pytest", + "pytest==7.1.*", "coverage", "beautifulsoup4", "pytest-sanic",