首页 > 解决方案 > Github问题表单:根据下拉添加标签

问题描述

我目前正在 Github 上查看基于 YAML 的新问题模板,并希望实现一个系统,根据问题创建者从下拉列表中选择的值,将标签分配给问题。

我在这方面找不到任何东西。例如,我有以下错误模板:

name: Bug Report
description: File a bug report
labels: [triage]
body:
  - type: dropdown
    id: bug-type
    attributes:
      label: Project
      multiple: true
      options:
        - API
        - WebUI
    validations:
      required: true

如何根据下拉列表的选择添加标签“api”和/或“webui”?

标签: github

解决方案


推荐阅读