github issue模版

Last updated on September 15, 2024 pm

🧙 Questions

在github中添加一个issue模版

☄️ Ideas

一定要注意自己的yml格式
文件名称一定要使用英文

vim .github/ISSUE_TEMPLATE/sparkles.yml
name: 需求创建
description: 欢迎提交一个需求
title: ":sparkles: "
labels: ["需求"]
body:
  - type: markdown
    attributes:
      value: |
        欢迎提交一个需求
  - type: input
    id: org
    attributes:
      label: 所属组织
      description: 来自哪个组织?
      placeholder: 至轻云创新团队
    validations:
      required: false
  - type: textarea
    id: describe-content
    attributes:
      label: 需求描述
      description: 简单描述一下需求。
      placeholder: 请填写需求内容...
      value: "标题即是需求内容"
    validations:
      required: true
  - type: dropdown
    id: version
    attributes:
      label: 紧急状态
      description: 需求紧急的状态。
      options:
        - 紧急
        - 普通
        - 不急
    validations:
      required: true
  - type: dropdown
    id: browsers
    attributes:
      label: 相关场景
      multiple: true
      options:
        - 用户体验差
        - 未完成的功能
        - 缺失的功能
  - type: checkboxes
    id: terms
    attributes:
      label: Code of Conduct
      description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com)
      options:
        - label: I agree to follow this project's Code of Conduct
          required: false
name: 创建需求
description: 欢迎提交一个需求
title: ":sparkles: "
labels: ["需求"]
body:

markdown

- type: markdown
  attributes:
    value: "#### 欢迎提交一个需求"
- type: textarea
  id: repro
  attributes:
    label: 需求内容
    description: "描述一下需求内容"
    placeholder: 请填写需求内容...
    value: |
      "标题即是需求内容"
  validations:
    required: true
- type: input
  id: prevalence
  attributes:
    label: Bug prevalence
    description: "How often do you or others encounter this bug?"
    placeholder: "Example: Whenever I visit the personal account page (1-2 times a week)"
  validations:
    required: true
- type: dropdown
  id: download
  attributes:
    label: 所属组
    options:
      - 管理组
      - 开发组
      - apt-get
      - Built from source
  validations:
    required: true
- type: checkboxes
  id: operating-systems
  attributes:
    label: Which operating systems have you used?
    description: You may select more than one.
    options:
      - label: macOS
      - label: Windows
      - label: Linux

github issue模版
https://ispong.isxcode.com/github/github/github issue模版/
Author
ispong
Posted on
March 15, 2023
Licensed under