From 6354ddb2564fedb4a255038cad77cf682487c79d Mon Sep 17 00:00:00 2001 From: OCram85 Date: Mon, 9 Sep 2024 13:47:09 +0200 Subject: [PATCH] update pr and issue template to new yml based syntx --- .gitea/ISSUE_TEMPLATE.md | 10 ---- .gitea/ISSUE_TEMPLATE.yml | 17 +++++++ .gitea/ISSUE_TEMPLATE/Bug.md | 48 ------------------- .gitea/ISSUE_TEMPLATE/Bug.yml | 70 ++++++++++++++++++++++++++++ .gitea/ISSUE_TEMPLATE/Enhancement.md | 16 ------- .gitea/ISSUE_TEMPLATE/Feature.yml | 47 +++++++++++++++++++ .gitea/ISSUE_TEMPLATE/Question.yml | 19 ++++++++ .gitea/PULL_REQUEST_TEMPLATE.md | 19 -------- .gitea/PULL_REQUEST_TEMPLATE.yml | 42 +++++++++++++++++ 9 files changed, 195 insertions(+), 93 deletions(-) delete mode 100644 .gitea/ISSUE_TEMPLATE.md create mode 100644 .gitea/ISSUE_TEMPLATE.yml delete mode 100644 .gitea/ISSUE_TEMPLATE/Bug.md create mode 100644 .gitea/ISSUE_TEMPLATE/Bug.yml delete mode 100644 .gitea/ISSUE_TEMPLATE/Enhancement.md create mode 100644 .gitea/ISSUE_TEMPLATE/Feature.yml create mode 100644 .gitea/ISSUE_TEMPLATE/Question.yml delete mode 100644 .gitea/PULL_REQUEST_TEMPLATE.md create mode 100644 .gitea/PULL_REQUEST_TEMPLATE.yml diff --git a/.gitea/ISSUE_TEMPLATE.md b/.gitea/ISSUE_TEMPLATE.md deleted file mode 100644 index ec3134a..0000000 --- a/.gitea/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: 'Default' -about: 'Use this template if nothing seems to work.' -title: ':question: ' -labels: - - question ---- -#### :grey_question: Simply ask your question here: :grey_question: - - diff --git a/.gitea/ISSUE_TEMPLATE.yml b/.gitea/ISSUE_TEMPLATE.yml new file mode 100644 index 0000000..e66ae28 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE.yml @@ -0,0 +1,17 @@ +name: Default +about: Use this template if nothing seems to work. +title: '' +body: + - type: markdown + attributes: + value: | + > [!NOTE] + > Thanks for taking the time to fill out this bug report! + - type: textarea + id: content + attributes: + label: ❔ What happened + description: Simply ask your question here. + placeholder: Tell us what you want to know... + validations: + required: true diff --git a/.gitea/ISSUE_TEMPLATE/Bug.md b/.gitea/ISSUE_TEMPLATE/Bug.md deleted file mode 100644 index e3c896d..0000000 --- a/.gitea/ISSUE_TEMPLATE/Bug.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -name: 'Bug' -about: 'This template is used to report bugs!' -title: ':lady_beetle: ' -labels: - - bug ---- - - -#### :bomb: Steps to reproduce - -```bash - -``` - -#### :rocket: Expected behavior - -```bash - -``` - -#### :boom: Actual behavior - -```bash - -``` - -#### :notebook: Environment data - - - -```bash - -``` - -#### :framed_picture: Screenshots - - - -#### :bookmark: Refs - - diff --git a/.gitea/ISSUE_TEMPLATE/Bug.yml b/.gitea/ISSUE_TEMPLATE/Bug.yml new file mode 100644 index 0000000..253f676 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/Bug.yml @@ -0,0 +1,70 @@ +name: 🐞 Bug Report +about: This template is used to report bugs! +title: '' +labels: + - bug +body: + - type: markdown + attributes: + value: | + > [!NOTE] + > This bug report is only for content provided in this repository! + > + > - Make sure you're able to reproduce the error in the lastest version of this package. + > - Search of already existing issues. + > - Refer to the known issues and FAQ section. + - type: textarea + id: reproduce + attributes: + label: 💣 Steps to reproduce + description: Describe ho to reproduce the error. + value: | + ```bash + + ``` + validations: + required: true + - type: textarea + id: expected + attributes: + label: 🚀 Expected behavior + description: Describe what should happen. + value: | + ```bash + + ``` + validations: + required: true + - type: textarea + id: actual + attributes: + label: 💥 Actual behavior + description: Describe what actually happens. + value: | + ```bash + + ``` + validations: + required: true + - type: textarea + id: env + attributes: + label: 📓 Environment data + description: You can add additional environment data here. + placeholder: | + ```bash + + ``` + - type: textarea + id: img + attributes: + label: 🖼️ Screenshots + description: Paste your screenshots here. + placeholder: Copy-Paste or Drag-and-Drop your images... + - type: textarea + id: refs + attributes: + label: 🔖 Refs + description: A place for additional references to other issues and PRs. + placeholder: | + - reopens #999 diff --git a/.gitea/ISSUE_TEMPLATE/Enhancement.md b/.gitea/ISSUE_TEMPLATE/Enhancement.md deleted file mode 100644 index 286eb82..0000000 --- a/.gitea/ISSUE_TEMPLATE/Enhancement.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -name: 'Enhancement' -about: 'Wite about new features.' -title: ':flying_saucer: ' -labels: - - issue/enhancement ---- - - -#### :satellite: Suggestion - -#### :artificial_satellite: Implementation ideas - -#### :framed_picture: Mock-up Images - -#### :bookmark: Refs. diff --git a/.gitea/ISSUE_TEMPLATE/Feature.yml b/.gitea/ISSUE_TEMPLATE/Feature.yml new file mode 100644 index 0000000..3c61ed1 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/Feature.yml @@ -0,0 +1,47 @@ +name: 🛸 Feature Request +about: Wite about new features. +title: '' +labels: + - feature + - enhancement +body: + - type: markdown + attributes: + value: | + > [!NOTE] + > This bug report is only for content provided in this repository! + > + > This issue template is used to describe new features or enhancements. + - type: textarea + id: idea + attributes: + label: 📡 Suggestion + description: Describe ho to reproduce the error. + value: | + ```bash + + ``` + validations: + required: true + - type: textarea + id: impl + attributes: + label: 🛰️ Implementation ideas + description: Describe your initial implementation ideas. + validations: + required: true + - type: textarea + id: mockup + attributes: + label: 🖼️ Mock-up + description: Alternatively add your mockups here. + placeholder: Copy-Paste or Drag-and-Drop your images... + validations: + required: true + - type: textarea + id: refs + attributes: + label: 🔖 Refs + description: A place for additional references to other issues and PRs. + placeholder: | + - reopens #999 diff --git a/.gitea/ISSUE_TEMPLATE/Question.yml b/.gitea/ISSUE_TEMPLATE/Question.yml new file mode 100644 index 0000000..af7b537 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/Question.yml @@ -0,0 +1,19 @@ +name: ❓ Question +about: Use this template if nothing seems to work. +title: '' +labels: + - question +body: + - type: markdown + attributes: + value: | + > [!NOTE] + > Thanks for taking the time to fill out this bug report! + - type: textarea + id: content + attributes: + label: ❔ What happened + description: Simply ask your question here. + placeholder: Tell us what you want to know... + validations: + required: true diff --git a/.gitea/PULL_REQUEST_TEMPLATE.md b/.gitea/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index a6e9ffb..0000000 --- a/.gitea/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,19 +0,0 @@ -#### :book: Summary - - - -#### :bookmark_tabs: Test Plan - -> :bulb: Select your test plan for the code changes. - -- [x] CI pipeline tests -- [ ] Custom test -- [ ] No test plan - -##### Details / Justification - - - -#### :books: Additional Notes - - diff --git a/.gitea/PULL_REQUEST_TEMPLATE.yml b/.gitea/PULL_REQUEST_TEMPLATE.yml new file mode 100644 index 0000000..3ab312b --- /dev/null +++ b/.gitea/PULL_REQUEST_TEMPLATE.yml @@ -0,0 +1,42 @@ +name: Pull Request +about: General pull request +title: "" +body: + - type: markdown + attributes: + value: | + > [!NOTE] + > Thanks for contributing to this project with your pull request! + + - type: textarea + id: summary + attributes: + label: 📖 Summary + description: Provide a summary of your changes. Also describe the why... + placeholder: Tell us about your code changes. + + validations: + required: true + - type: dropdown + id: testplan + attributes: + label: 📑 Test Plan + description: How did you test your code changes? + options: + - ✅ CI pipeline tests (Default) + - 🤔 Custom test + - 💣 No test Plan + validations: + required: true + - type: textarea + id: details + attributes: + label: 💬 Details + description: Add your custom test details or justification for missing tests here. + placeholder: First, solve the problem. Then, write the code. + - type: textarea + id: notes + attributes: + label: 📚 Additional Notes + description: A place for additional notes or linking references. + placeholder: Software and cathedrals are much the same - First we build them, then we pray.