name: "🕷️ Bug report"
description: Report errors or unexpected behavior
title: "[Bug] "
labels:
  - bug
body:
  - type: checkboxes
    attributes:
      label: Self Checks
      description: "To make sure we get to you in time, please check the following :)"
      options:
        - label: This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/ai-shifu/ai-shifu/discussions/categories/general).
          required: true
        - label: I have searched for existing issues [search for existing issues](https://github.com/ai-shifu/ai-shifu/issues), including closed ones.
          required: true
        - label: I confirm that I am using English to submit this report.
          required: true
        - label: "[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢！:)"
          required: true
        - label: "Please do not modify this template :) and fill in all the required fields."
          required: true

  - type: dropdown
    attributes:
      label: AI-Shifu platform or self-hosted
      description: How / Where was AI-Shifu installed from?
      multiple: true
      options:
        - AI-Shifu platform
        - self-hosted (Docker)
        - self-hosted (Source)
    validations:
      required: true
  - type: dropdown
    attributes:
      label: AI-Shifu product
      description: Please select the product you are experiencing the bug with
      options:
        - AI-Shifu web
        - AI-Shifu cook
  - type: input
    attributes:
      label: AI-Shifu version
      description: input the git commit hash or the version number of the AI-Shifu
    validations:
      required: true

  - type: textarea
    attributes:
      label: Steps to reproduce
      description: We highly suggest including screenshots and a bug report log. Please use the right markdown syntax for code blocks.
      placeholder: Having detailed steps helps us reproduce the bug.
    validations:
      required: true

  - type: textarea
    attributes:
      label: ✔️ Expected Behavior
      placeholder: What were you expecting?
    validations:
      required: true

  - type: textarea
    attributes:
      label: ❌ Actual Behavior
      placeholder: What happened instead?
    validations:
      required: true
