# thanks https://github.com/Ehviewer-Overhauled/Ehviewer templates.

name: Bug 反馈 / Bug report
description: 提交一个问题报告 / Create a bug report
labels:
  - "T: Bug"
  - "S: Untriaged"
body:
  - type: markdown
    attributes:
      value: |
        提交问题报告前，还请首先完成文末的自查步骤

        Please finish verify steps which list in the end first before create bug report

  - type: textarea
    id: reproduce
    attributes:
      label: 复现步骤 / Step to reproduce
      description: |
        请在此处写下复现的方式，并携带错误日志，必要情况请带上截图/录屏

        Please write down the reproduction steps here and include the error log. If necessary, please provide screenshots or recordings.
      placeholder: |
        1. 
        2.
        3.
        [录屏] / [Screen recording]
    validations:
      required: true

  - type: textarea
    id: expected
    attributes:
      label: 预期行为 / Expected behaviour
      description: |
        在此处说明正常情况下应用的预期行为
        Describe what should happened here
      placeholder: |
        它应该XXX...
        It should be ...
    validations:
      required: true

  - type: textarea
    id: actual
    attributes:
      label: 实际行为 / Actual Behaviour
      description: |
        在此处描绘应用的实际行为，最好附上截图
        Describe what actually happened here, screenshots is better
      placeholder: |
        实际上它XXX...
        Actually it ...
        [截图] / [Screenshots]
    validations:
      required: true

  - type: textarea
    id: log
    attributes:
      label: 应用日志 / App logs
      description: |
        请确保您已移除所有敏感信息，并确保你的日记等级为 `Trace` 或 `Debug`。请参考 [FAQ - 日记目录](https://nyanpasu.elaina.moe/zh-CN/others/faq.html#_2-clash-nyanpasu-%E5%BA%94%E7%94%A8-%E6%97%A5%E8%AE%B0%E7%9B%AE%E5%BD%95%E5%9C%A8%E5%93%AA%E9%87%8C)  
        如果您可以打开主界面，可以在设置页的日记目录旁找到“收集日记”按钮，点击即可收集日记。（1.5.0 不可用）
        如果日志过长，请使用 [Gist](https://gist.github.com/) 或 [Hastebin](https://hastebin.com/) 并附上链接。
        Please make sure you have removed all sensitive information and your log level is `Trace` or `Debug`. Please refer to [FAQ - Log directory](https://nyanpasu.elaina.moe/others/faq.html#_2-where-is-the-clash-nyanpasu-application-logs-directory)
        If you can open the main interface, you can find the "Collect logs" button next to the log directory in the settings page, click to collect the logs. (Not available in 1.5.0)
        If the log is too long, please use [Gist](https://gist.github.com/) or [Hastebin](https://hastebin.com/) and provide the link.
      placeholder: should be a link, a code block or a archive file
    validations:
      required: false

  - type: textarea
    id: more
    attributes:
      label: 备注 / Addition details
      description: |
        在此处写下其他您想说的内容
        Describe addition details here
      placeholder: |
        其他有用的信息与附件
        Additional details and attachments
    validations:
      required: false
  - type: textarea
    id: env_infos
    attributes:
      label: 环境信息 / Environment information
      description: |
        请在此处提供您的环境信息，例如操作系统、Clash Nyanpasu 版本号、Clash 核心及其版本号等
        Please provide your environment information here, such as operating system, Clash Nyanpasu version number, Clash core and its version number, etc.
      placeholder: |
        此处应该由 Nyanpasu 设置页面反馈按钮自动填写的内容，如果是老版本，请手动填写。
        This should be automatically filled in by the feedback button on the Nyanpasu settings page. If it is an old version, please fill it in manually.
    validations:
      required: true
  # - type: input
  #   id: version
  #   attributes:
  #     label: Clash Nyanpasu 版本号 / Clash Nyanpasu
  #     description: 您可以在 **设置 - 关于** 或在 **托盘 - 更多** 中找到版本号 / You can find the version number in **Settings - About** or **Tray - More**
  #     placeholder: 1.5.0
  #   validations:
  #     required: true

  # - type: input
  #   id: core-version
  #   attributes:
  #     label: Clash 核心及其版本号 / Clash core and version
  #     description: 您可以在 **设置 - Clash 内核** 中找到内核及其版本号 / You can find the core and its version number in **Settings - Clash Core**
  #     placeholder: v1.18.1 Meta
  #   validations:
  #     required: true
  # - type: input
  #   id: pre-release
  #   attributes:
  #     label: 是否为 Pre-release / Is pre-release version
  #     description: 是否为 Pre-release 下载的应用，若是则填写对应的commit hash / Is this an app downloaded from Pre-release? If so, please fill in the corresponding commit hash.
  #     placeholder: 26f05a0
  #   validations:
  #     required: true

  # - type: input
  #   id: system
  #   attributes:
  #     label: 操作系统及版本 / OS version
  #     description: 操作系统 + 版本号 / OS + version code
  #     placeholder: Windows 11, macOS 14
  #   validations:
  #     required: true

  - type: checkboxes
    id: check
    attributes:
      label: 自查步骤 / Verify steps
      description: |
        请确认您已经遵守所有必选项
        Please ensure you have obtained all needed options
      options:
        - label: 如果您有足够的时间和能力，并愿意为此提交 PR ，请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
          required: false
        - label: 您已知悉如果没有提供正确的系统信息，以及日记，您的 Issue 会直接被关闭 / You have known that if you don't provide correct system information and logs, your issue will be closed directly
          required: true
        - label: 您已仔细查看并知情 [Q&A](https://nyanpasu.elaina.moe/zh-CN/others/issues.html) 和 [FAQ](https://nyanpasu.elaina.moe/zh-CN/others/faq.html) 中的内容 / You have read and understood the contents of [Q&A](https://nyanpasu.elaina.moe/others/issues.html) and [FAQ](https://nyanpasu.elaina.moe/others/faq.html).
          required: true

        - label: 您已搜索过 [Issue Tracker](https://github.com/keiko233/clash-nyanpasu/issues)，没有找到类似内容 / I have searched on [Issue Tracker](https://github.com/keiko233/clash-nyanpasu/issues), No duplicate or related open issue has been found
          required: true

        - label: 您确保这个 Issue 只提及一个问题。如果您有多个问题报告，烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
          required: true

        - label: 您确保已使用最新 Pre-release 版本测试，并且该问题在最新 Pre-release 版本中并未解决 / This bug have not solved in latest Pre-release version
          required: true
