name: Bug Report
description: File a bug report
labels: [bug]
body:
  - type: checkboxes
    id: preface
    attributes:
      label: Prerequisites
      description: Thank you for taking the time to fill out this issue report! Before we begin, we highly recommend reading through the [Open Source Guides](https://opensource.guide/), which will greatly improve our mutual efficiency.
      options:
        - label: I have searched for related issues in the [issues](https://github.com/halo-dev/halo/issues) list.
          required: true
        - label: "This is an issue with the Halo project itself. If it is not an issue with the project itself(For example: Installation and deployment issues.), it is recommended to submit it in the [Discussions](https://github.com/halo-dev/halo/discussions)."
          required: true
        - label: I have tried disabling all plugins to rule out plugins as the cause of the problem.
          required: true
        - label: If it is an issue with plugins and themes, please submit it in the respective plugin and theme repositories.
          required: true
  - type: markdown
    id: environment
    attributes:
      value: "## Environment"
  - type: textarea
    id: system-information
    attributes:
      label: "System information"
      description: "Access the actuator page of the Console, click the copy button in the upper right corner, and paste the information here."
      placeholder: |
        - External url: https://demo.halo.run
        - Start time: 2024-07-21 14:50
        - Version: 2.x.x
        - Build time: 2024-07-15 18:19
        - Git Commit: 6d4bedd
        - Java: IBM Semeru Runtime Open Edition / ...
        - Database: PostgreSQL / 16.3 ...
        - Operating system: Linux / 5.15.0-88 ...
        - Activated theme: ...
        - Enabled plugins:
            - ...
    validations:
      required: true
  - type: dropdown
    id: operation-method
    validations:
      required: true
    attributes:
      label: "What is the project operation method?"
      options:
        - Docker
        - Docker Compose
        - Fat Jar
        - Source Code
  - type: markdown
    id: details
    attributes:
      value: "## Details"
  - type: textarea
    id: what-happened
    attributes:
      label: "What happened?"
      description: "For ease of management, please do not report multiple unrelated issues under the same issue."
    validations:
      required: true
  - type: textarea
    id: reproduce-steps
    attributes:
      label: "Reproduce Steps"
      description: "If it can be consistently reproduced, please provide detailed steps."
      placeholder: |
        1. Open '...'
        2. Click '...'
  - type: textarea
    id: logs
    attributes:
      label: "Relevant log output"
      description: "Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks."
      render: shell
  - type: textarea
    id: additional-information
    attributes:
      label: "Additional information"
      description: "If you have other information to note, you can fill it in here (screenshots, videos, etc.)."
