From 5dd96d713e6dcc1b2ab8b6d529e02424872a39c8 Mon Sep 17 00:00:00 2001 From: Hugues Tavernier Date: Fri, 3 Nov 2023 09:27:04 +0100 Subject: [PATCH] add github issue templates --- .github/ISSUE_TEMPLATE/config.yaml | 6 +++ package-lock.json | 4 +- package.json | 2 +- split.sh | 12 ++++- .../.github/ISSUE_TEMPLATE/bug_report.yaml | 54 +++++++++++++++++++ .../.github/ISSUE_TEMPLATE/config.yaml | 1 + .../ISSUE_TEMPLATE/feature_request.yaml | 17 ++++++ .../.github/ISSUE_TEMPLATE/bug_report.yaml | 54 +++++++++++++++++++ .../.github/ISSUE_TEMPLATE/config.yaml | 1 + .../ISSUE_TEMPLATE/feature_request.yaml | 17 ++++++ 10 files changed, 163 insertions(+), 5 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/config.yaml create mode 100644 src/vite-bundle/.github/ISSUE_TEMPLATE/bug_report.yaml create mode 100644 src/vite-bundle/.github/ISSUE_TEMPLATE/config.yaml create mode 100644 src/vite-bundle/.github/ISSUE_TEMPLATE/feature_request.yaml create mode 100644 src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/bug_report.yaml create mode 100644 src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/config.yaml create mode 100644 src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/feature_request.yaml diff --git a/.github/ISSUE_TEMPLATE/config.yaml b/.github/ISSUE_TEMPLATE/config.yaml new file mode 100644 index 00000000..ca4e5c73 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yaml @@ -0,0 +1,6 @@ +blank_issues_enabled: true +contact_links: + - name: vite-bundle Issue/Feature request. + url: https://github.com/lhapaipai/vite-bundle/issues + - name: vite-plugin-symfony Issue/Feature request. + url: https://github.com/lhapaipai/vite-plugin-symfony/issues diff --git a/package-lock.json b/package-lock.json index c06aa628..39d92504 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "vite-bundle-example", + "name": "symfony-vite-dev", "version": "1.0.0", "lockfileVersion": 2, "requires": true, @@ -9576,4 +9576,4 @@ "dev": true } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index b3b4f7aa..09020e8e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "vite-bundle-example", + "name": "symfony-vite-dev", "version": "1.0.0", "description": "", "main": "vite.config.js", diff --git a/split.sh b/split.sh index f2966819..67b88973 100755 --- a/split.sh +++ b/split.sh @@ -2,5 +2,13 @@ set -e -git subtree push --prefix=src/vite-bundle git@github.com:lhapaipai/vite-bundle.git main -git subtree push --prefix=src/vite-plugin-symfony git@github.com:lhapaipai/vite-plugin-symfony.git main +# Make sure the working directory is clear. +if [[ ! -z "$(git status --porcelain)" ]] +then + echo "Your working directory is dirty. Did you forget to commit your changes?" + + exit 1 +fi + +git subtree push --prefix=src/vite-bundle git@github.com:lhapaipai/vite-bundle.git feature/tests +git subtree push --prefix=src/vite-plugin-symfony git@github.com:lhapaipai/vite-plugin-symfony.git feature/v6 diff --git a/src/vite-bundle/.github/ISSUE_TEMPLATE/bug_report.yaml b/src/vite-bundle/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 00000000..906b1cb2 --- /dev/null +++ b/src/vite-bundle/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,54 @@ +name: 🐛 Bug report +description: Create a report to help us improve +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thanks for using this bundle and taking the time to fill out this bug report ! + - type: input + id: vite-bundle-version + attributes: + label: vite-bundle version + description: composer show pentatrion/vite-bundle | grep versions + placeholder: x.y.z + validations: + required: true + - type: input + id: vite-plugin-symfony-version + attributes: + label: vite-plugin-symfony version + description: npm list vite-plugin-symfony + placeholder: x.y.z + validations: + required: true + - type: input + id: context + attributes: + label: Symfony version, PHP version, your OS (node version ?) + placeholder: "symfony 7.3, PHP 8.2, node 20.5, OS Linux" + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the problem + validations: + required: true + - type: textarea + id: how-to-reproduce + attributes: + label: How to reproduce + description: | + ⚠️ This is the most important part of the report ⚠️ + Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix. + Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily. + validations: + required: true + - type: textarea + id: possible-solution + attributes: + label: Possible Solution + description: | + Optional: only if you have suggestions on a fix/reason for the bug + Don't hesitate to create a pull request with your solution, it helps get faster feedback. You should open a pull request on the main symfony-vite-dev monorepo : https://github.com/lhapaipai/symfony-vite-dev. + This repository is a "subtree split": a read-only subset of that main repository. diff --git a/src/vite-bundle/.github/ISSUE_TEMPLATE/config.yaml b/src/vite-bundle/.github/ISSUE_TEMPLATE/config.yaml new file mode 100644 index 00000000..a49eab2f --- /dev/null +++ b/src/vite-bundle/.github/ISSUE_TEMPLATE/config.yaml @@ -0,0 +1 @@ +blank_issues_enabled: true \ No newline at end of file diff --git a/src/vite-bundle/.github/ISSUE_TEMPLATE/feature_request.yaml b/src/vite-bundle/.github/ISSUE_TEMPLATE/feature_request.yaml new file mode 100644 index 00000000..52b3de79 --- /dev/null +++ b/src/vite-bundle/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -0,0 +1,17 @@ +name: 🚀 Feature Request +description: RFC and ideas for new features and improvements +body: + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the new feature + validations: + required: true + - type: textarea + id: example + attributes: + label: Example + description: | + A simple example of the new feature in action (include PHP code, YAML config, etc.) + If the new feature changes an existing feature, include a simple before/after comparison. diff --git a/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/bug_report.yaml b/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 00000000..3ded6adb --- /dev/null +++ b/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,54 @@ +name: 🐛 Bug report +description: Create a report to help us improve +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thanks for using this bundle and taking the time to fill out this bug report ! + - type: input + id: vite-plugin-symfony-version + attributes: + label: vite-plugin-symfony version + description: npm list vite-plugin-symfony + placeholder: x.y.z + validations: + required: true + - type: input + id: vite-bundle-version + attributes: + label: vite-bundle version + description: composer show pentatrion/vite-bundle | grep versions + placeholder: x.y.z + validations: + required: true + - type: input + id: context + attributes: + label: node version, your OS (Symfony version, PHP version) + placeholder: "node 20.5, OS Linux, symfony 7.3, PHP 8.2" + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the problem + validations: + required: true + - type: textarea + id: how-to-reproduce + attributes: + label: How to reproduce + description: | + ⚠️ This is the most important part of the report ⚠️ + Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix. + Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily. + validations: + required: true + - type: textarea + id: possible-solution + attributes: + label: Possible Solution + description: | + Optional: only if you have suggestions on a fix/reason for the bug + Don't hesitate to create a pull request with your solution, it helps get faster feedback. You should open a pull request on the main symfony-vite-dev monorepo : https://github.com/lhapaipai/symfony-vite-dev. + This repository is a "subtree split": a read-only subset of that main repository. diff --git a/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/config.yaml b/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/config.yaml new file mode 100644 index 00000000..a49eab2f --- /dev/null +++ b/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/config.yaml @@ -0,0 +1 @@ +blank_issues_enabled: true \ No newline at end of file diff --git a/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/feature_request.yaml b/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/feature_request.yaml new file mode 100644 index 00000000..52b3de79 --- /dev/null +++ b/src/vite-plugin-symfony/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -0,0 +1,17 @@ +name: 🚀 Feature Request +description: RFC and ideas for new features and improvements +body: + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the new feature + validations: + required: true + - type: textarea + id: example + attributes: + label: Example + description: | + A simple example of the new feature in action (include PHP code, YAML config, etc.) + If the new feature changes an existing feature, include a simple before/after comparison.