From 9a08ad5fc76e3074532253233595abf5b8c855f2 Mon Sep 17 00:00:00 2001 From: "v.razuvaev" Date: Sun, 2 Aug 2026 12:21:14 +0300 Subject: [PATCH] Add GitHub issue templates --- .github/ISSUE_TEMPLATE/bug_report.yml | 55 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/feature_request.yml | 41 ++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..9c5a18f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,55 @@ +name: Bug report +description: Something doesn't work the way the docs say it should +labels: ["bug"] +body: + - type: input + id: package-version + attributes: + label: Package version + description: The exact version (or commit) you installed, e.g. `2.1.0` or `dev-master@abc1234` + placeholder: "2.1.0" + validations: + required: true + + - type: input + id: php-version + attributes: + label: PHP version + placeholder: "8.3.12" + validations: + required: true + + - type: textarea + id: expected + attributes: + label: What you expected to happen + validations: + required: true + + - type: textarea + id: actual + attributes: + label: What actually happened + description: Full error message / stack trace if there is one + validations: + required: true + + - type: textarea + id: repro + attributes: + label: Minimal reproduction + description: > + A short script or code snippet that reproduces the problem from a + clean install. Issues without a reproduction are much harder to act + on and may be closed if one can't be worked out together. + render: php + validations: + required: true + + - type: textarea + id: context + attributes: + label: Anything else + description: Relevant config, related packages and their versions, etc. + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..2bca4ff --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,41 @@ +name: Feature request +description: Something you need this package to do that it doesn't yet +labels: ["enhancement"] +body: + - type: textarea + id: problem + attributes: + label: What are you trying to do + description: > + Describe the task, not the API you imagine solving it. The concrete + problem is what makes a good design possible. + validations: + required: true + + - type: textarea + id: current + attributes: + label: Why the current API doesn't cover it + description: What you tried, and where it fell short or forced a workaround. + validations: + required: true + + - type: textarea + id: proposal + attributes: + label: Proposed API (optional) + description: A sketch of the method/class signature you'd expect, if you have one. + render: php + validations: + required: false + + - type: dropdown + id: pr + attributes: + label: Would you be willing to open a PR for this? + options: + - "Yes" + - "No" + - "Maybe, with some guidance" + validations: + required: true