01-bug-report.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. # yaml-language-server: $schema=https://json.schemastore.org/github-issue-forms.json
  2. name: 🐛 遇到问题了
  3. description: 程序运行不正常或出现错误
  4. title: "[问题] "
  5. labels: ["bug"]
  6. body:
  7. - type: markdown
  8. attributes:
  9. value: |
  10. **详细清楚的问题描述能帮助项目作者更快理解和解决你遇到的困扰**。强烈建议上传截图,图文并茂会让问题更容易被理解和定位。
  11. ---
  12. ### 📋 提交问题前,请先检查以下事项
  13. #### 1️⃣ **建议先查看文档** 📖
  14. 大部分常见问题在文档中都有详细说明,建议先查看相关章节:
  15. - [📝 配置教程](https://github.com/sansan0/TrendRadar#-快速开始)
  16. - [❓ 常见问题](https://github.com/sansan0/TrendRadar#问题答疑与1元点赞)
  17. - [🐳 Docker部署](https://github.com/sansan0/TrendRadar#-docker-部署)
  18. #### 2️⃣ **测试推送功能的注意事项** ⚠️
  19. 测试消息推送时,请确保以下配置正确:
  20. **必须检查的配置项:**
  21. - ✅ `report.mode` 设置为 `daily` 或 `current`(请勿使用 `incremental`,该模式仅在有新内容时才推送)
  22. - ✅ `notification.push_window.enabled` 设置为 `false`(关闭推送时间窗口控制)
  23. - ✅ `notification.enable_notification` 设置为 `true`(确保通知功能已启用)
  24. **说明:**
  25. - 推送时间窗口控制(`push_window`)是可选功能,如果开启会限制推送时间范围
  26. - 测试时建议关闭此功能,避免因不在推送时间窗口而收不到消息
  27. #### 3️⃣ **检查配置细节** 🔍
  28. 部分问题可能是配置细节导致,建议检查:
  29. - 配置文件的缩进格式是否正确(YAML 格式要求严格,必须使用空格而非 Tab)
  30. - Webhook 地址是否完整复制(注意不要有多余或缺失的字符)
  31. - 环境变量是否正确设置
  32. - 文件路径是否正确
  33. #### 4️⃣ **遇到困难时的建议** 💡
  34. - 如果尝试 30 分钟以上仍无进展,可以考虑换个思路
  35. - 建议重新从头阅读相关文档章节
  36. - 或尝试其他部署方式(如从 Docker 切换到 GitHub Actions)
  37. #### 5️⃣ **根据部署方式提供完整信息** 📦
  38. **如果是 GitHub Actions 部署:**
  39. 1. **必须提供** Actions 工作流链接(如:`https://github.com/你的用户名/TrendRadar/actions/workflows/crawler.yml`)
  40. 2. **查看执行日志的步骤:**
  41. - 打开你的仓库页面
  42. - 点击顶部的 **Actions** 标签
  43. - 点击左侧的 **Crawler** 工作流
  44. - 点击最近一次运行记录
  45. - 点击 **Run crawler** 查看详细日志
  46. - **截图完整的日志内容**(特别是错误部分)
  47. 3. 提供 `config.yaml` 配置内容(隐藏敏感信息)
  48. **如果是 Docker 部署:**
  49. 1. 提供项目目录结构截图(运行 `ls -la` 或打开文件管理器)
  50. 2. 提供 Docker 容器日志(运行 `docker logs 容器名`)
  51. 3. 提供容器状态(运行 `docker ps -a`)
  52. 4. 提供 `.env` 文件内容(隐藏敏感信息)
  53. **如果是本地运行:**
  54. 1. 提供完整的错误日志截图
  55. 2. 提供 `config.yaml` 配置内容
  56. 3. 提供 Python 版本(运行 `python --version`)
  57. - type: dropdown
  58. id: bug-category
  59. attributes:
  60. label: 🏷️ 遇到了什么问题
  61. options:
  62. - 数据获取问题(获取不到新闻、请求失败等)
  63. - 关键词筛选问题(关键词不生效、匹配异常等)
  64. - 通知推送问题(收不到消息、推送失败等)
  65. - 配置设置问题(配置文件错误、参数不生效等)
  66. - 部署运行问题(Docker、GitHub Actions等)
  67. - 性能问题(运行慢、卡顿等)
  68. - 其他问题
  69. validations:
  70. required: true
  71. - type: dropdown
  72. id: environment
  73. attributes:
  74. label: 🖥️ 使用环境
  75. options:
  76. - 本地运行(直接在电脑上运行)
  77. - Docker 容器运行
  78. - GitHub Actions 自动运行
  79. - 其他方式
  80. validations:
  81. required: true
  82. - type: textarea
  83. id: bug-description
  84. attributes:
  85. label: 📝 详细描述问题
  86. description: 请详细说明遇到的问题(建议配合截图说明)
  87. placeholder: |
  88. 请清楚地描述:
  89. - 具体发生了什么问题
  90. - 问题出现时的情况
  91. - 这个问题影响了什么功能
  92. 💡 提示:上传问题截图能提供更多信息。
  93. validations:
  94. required: true
  95. - type: dropdown
  96. id: system-info
  97. attributes:
  98. label: 💻 系统信息
  99. description: 你的电脑系统
  100. options:
  101. - Windows 10
  102. - Windows 11
  103. - macOS
  104. - Ubuntu/Linux
  105. - 其他系统
  106. - 不确定
  107. validations:
  108. required: false
  109. - type: textarea
  110. id: reproduction-steps
  111. attributes:
  112. label: 🔄 怎么重现这个问题
  113. description: 如何让这个问题重新出现?(可选,但建议填写)
  114. placeholder: |
  115. 请按步骤描述(建议每个步骤都配截图):
  116. 1. 我点击了...
  117. 2. 然后设置了...
  118. 3. 接着出现了...
  119. 💡 操作过程的截图特别有用!
  120. validations:
  121. required: false
  122. - type: textarea
  123. id: expected-behavior
  124. attributes:
  125. label: ✅ 期望的正常情况
  126. description: 正常情况下应该是什么样的?(可选)
  127. placeholder: |
  128. 描述你期望看到的正常结果...
  129. 如果有参考图片就更好了!
  130. validations:
  131. required: false
  132. - type: textarea
  133. id: error-logs
  134. attributes:
  135. label: 📋 错误信息
  136. description: 程序显示的错误信息或日志(如果有的话)
  137. placeholder: |
  138. 如果程序显示了错误信息,请完整复制到这里:
  139. ```
  140. 错误信息内容...
  141. ```
  142. validations:
  143. required: false
  144. - type: textarea
  145. id: config-info
  146. attributes:
  147. label: ⚙️ 相关配置
  148. description: 与问题相关的配置内容(请隐藏敏感信息如 webhook 地址)
  149. placeholder: |
  150. 相关的配置内容(记得隐藏敏感信息):
  151. ```yaml
  152. notification:
  153. enable_notification: true
  154. webhooks:
  155. feishu_url: "***隐藏***"
  156. ```
  157. - type: textarea
  158. id: screenshots
  159. attributes:
  160. label: 📷 截图补充
  161. description: 上传相关截图(强烈推荐!)
  162. placeholder: |
  163. 请拖拽截图到这里,建议包含:
  164. - 错误界面截图
  165. - 配置设置截图
  166. - 操作步骤截图
  167. 💡 截图是最直观的问题说明方式!
  168. - type: textarea
  169. id: additional-context
  170. attributes:
  171. label: 📎 其他补充信息
  172. description: 其他可能有用的信息
  173. placeholder: |
  174. - 网络环境特殊情况
  175. - 之前是否正常工作过
  176. - 最近有没有改动什么设置
  177. - 其他你觉得可能相关的信息