珠五行属什么| 18k黄金是什么意思| 右枕前位是什么意思| 头晕需要做什么检查| 颅内缺血灶是什么病症| 命门火衰是什么意思| 去脚气用什么药最好| 儿童看包皮挂什么科| ceo是什么意思| 加拿大用什么货币| 性格好是什么意思| 合肥有什么玩的| 淘宝和天猫有什么区别| 金目念什么| 七月22号是什么星座| 息影是什么意思| 科颜氏属于什么档次| 履是什么意思| 奶冻是什么| 青光眼用什么眼药水| 胃疼吃什么药好得最快最有效| 夏季摆摊卖什么好| 新疆都有什么民族| 火镰是什么意思| 性激素六项什么时候检查| 1014是什么星座| 什么时候锻炼身体最佳时间| 手脚不协调是什么原因| 避孕药吃了有什么副作用| 类风湿不能吃什么东西| 白发吃什么维生素| 母亲节送什么颜色的康乃馨| 正印是什么意思| 手掌发黄是什么原因| 痛风吃什么肉最好| 玉字是什么结构| 什么不安| 孕囊是什么| 机翻是什么意思| 世界上最小的长度单位是什么| 牙齿根管治疗是什么意思| 为什么会长水痘| 作价是什么意思| 小孩口臭吃什么药效果最好| junior什么意思| 轰20什么时候首飞| 什么是小暑| 腹部包块是什么样子的| 大血小板比率偏高是什么原因| vre是什么细菌| 肾不好吃什么| 白果有什么功效与作用| 十月十日什么星座| rv医学上是什么意思| 梦见别人打我是什么意思| 检查乙肝五项挂什么科| 康乃馨的花语是什么| 核磁共振是查什么的| 什么减肥药最管用| 实时更新是什么意思| 丙氨酸氨基转移酶高是什么意思| 白介素8升高说明什么| 香蕉可以做什么美食| 膀胱冲洗用什么药| 一级警长是什么级别| 生气吃什么药可以顺气| 手臂发麻是什么原因引起的| 阴虱用什么药治疗| 黄油可以做什么美食| 无花果吃多了有什么坏处| 心脏看什么科室| pr医学上什么意思| 尿隐血什么意思| 7月23日什么星座| 脚冰凉是什么原因| 公举是什么意思啊| 水果的英文是什么| dunk是什么意思| 夕火念什么| 需要一半留下一半是什么字| 高良姜是什么姜| 智齿什么时候长| 肝穿刺检查是什么意思| 奶冻是什么| 梦见牙齿掉了什么意思| 六安瓜片是什么茶| 经常头晕是什么原因| 喝什么解暑| 虫草花不能和什么一起吃| 蚊子为什么咬人| 面包虫长大后变成什么| 同病相怜什么意思| pvt是什么意思| 什么是苔藓皮肤病| 什么是过敏性咳嗽| 三黄鸡为什么那么便宜| 芒果和什么相克| 扁桃体长什么样| 心肌炎吃什么药效果好| 胀气吃什么药| 什么头| 牙痛吃什么药最快见效| 氨甲环酸又叫什么名| 即视感是什么意思| revive是什么意思| 经常上火口腔溃疡是什么原因| 现在去贵州穿什么衣服| 指日可待什么意思| 大拇指有黑色竖纹是什么原因| 青柠是什么意思| 有个性是什么意思| 口腔溃疡吃什么水果| 一把手是什么意思| 灰指甲是什么样的图片| 车辆购置税什么时候交| 营卫是什么意思| dolphin是什么意思| 婴儿乳糖不耐受吃什么奶粉| 林可霉素主治什么病| 东莞五行属什么| anti是什么意思| 喝苦荞茶对身体有什么好处| 瑶五行属什么| 兰州人为什么要戴头巾| abo溶血症是什么意思| 怡的意思和含义是什么| 魔芋长什么样子| 送男孩子什么礼物比较好| 99年的兔是什么命| 浪琴手表什么档次| 年少轻狂是什么意思| 脚掌痒是什么原因| 五心烦热是什么意思| 月经崩漏吃什么止血| 肚子胀气吃什么药| 赛脸是什么意思| 山竹有什么功效| 胰岛素的作用是什么| 天空为什么是蓝色的| 头部出汗多是什么原因| 特别能睡觉是什么原因引起的| edd是什么意思| 痛风喝酒会有什么后果| 圆脸女生适合什么发型| 敲木鱼是什么意思| 精忠报国是什么意思| 有什么工作| 什么不一| 补气血吃什么| 喝酒前喝什么不容易醉| 脖子短是什么原因| 脖子凉是什么原因| 人为什么要睡觉| 黄梅时节是什么季节| 一直以来是什么意思| 咖啡什么牌子的好| 小孩吃鹅蛋有什么好处| 耳石症是什么原因引起的| 鹿茸泡酒有什么功效| 注明是什么意思| gjb2基因杂合突变是什么意思| 耳石症是什么原因| 一个黑一个今念什么| 向心性肥胖是什么意思| 正对什么| 白羊座什么性格| 火车不能带什么| 左心室高电压什么意思| 灵魂伴侣什么意思| 翠色是什么颜色| 红色爱心是什么牌子| 七月七日是什么日子| 拉屎出血是什么原因| cot是什么| 女性的排卵期是什么时候| 糖尿病什么水果不能吃| 门对门风水有什么说法| 黑猫进家门预示着什么| 胃胀气吃什么食物好| 验光pd是什么意思| 吃什么可以修复子宫内膜| ca125是什么意思| 吃藕粉对身体有什么好处| 梦到谈恋爱预示着什么| 猫咪冠状病毒什么症状| 牙齿像锯齿是什么原因| 喝啤酒不能吃什么| 苏州五行属什么| 儿童胃肠型感冒吃什么药| 是什么病| 颈椎酸胀是什么原因| 你是什么意思| 甲醛对人体有什么危害| 为什么月经迟迟不来又没怀孕| 阿达是什么意思| 即什么意思| 特别容易出汗是什么原因| 虬角为什么要染成绿色| 丑时是什么命| 水肿是什么| 寄生虫感染吃什么药| 肩膀酸痛什么原因| 瘪是什么意思| 交警大队长是什么级别| 今期难过美人关是什么生肖| 变性乙醇是什么东西| 包干是什么意思| 目瞪口呆是什么生肖| rue是什么意思| 医院医务科是干什么的| 自言自语的近义词是什么| 霍乱是什么| 心跳过缓是什么原因造成的| 全身痒是什么病| 钙对人体有什么作用| 闺房之乐是什么意思| 小山羊是什么病| palace是什么牌子| 什么姿势最深| 包谷是什么意思| 牛犇是什么意思| 霸王别姬是什么意思| 西安有什么好吃的特产| 眉心跳动代表什么预兆| 球蛋白适合什么人打| 女娲姓什么| 什么才叫幸福| 老是想睡觉是什么原因| sdh是什么意思| 一级亲属指的是什么| 做背有什么好处及作用| 外阴痒用什么洗| 太子龙男装什么档次| 通字五行属什么| 海市蜃楼为什么可怕| 吃石斛有什么功效| 咖喱块什么牌子的好| 汗斑用什么药| 梅核气吃什么药| 仓鼠不能吃什么| 冠心病喝什么茶最好| 检查盆腔炎做什么检查| 什么是碱性水| 铜绿假单胞菌用什么抗生素| 一月20号是什么星座| 常温保存是什么意思| 臀纹不对称有什么影响| 蜜蜂的尾巴有什么作用| 分销是什么意思| 衤字旁与什么有关| 八卦是什么生肖| 高血压饮食上注意什么| 786是什么意思| 猎奇是什么意思| 眼睛发红是什么原因| 背部长痘痘是什么原因造成| 宝宝半夜咳嗽是什么原因| 脑供血不足检查什么项目| 吃槟榔有什么好处和坏处| 痔疮的症状是什么| 胃阴不足吃什么中成药| 什么什么桑田| 支教回来后有什么待遇| 健脾去湿吃什么药| 百度
Skip to main content

从严治党 一刻不停歇夺取反腐败斗争压倒性胜利xia

百度   值得注意的是,虽然新法对庞森比规则并没有进行实质性修改,但是《宪法改革与治理法》的确对有些实践予以更具体的规定。

You can use GitHub's form schema to configure forms for supported features.

Note

GitHub's form schema is currently in public preview and subject to change.

About GitHub's form schema

You can use GitHub's form schema to configure forms for supported features. For more information, see Configuring issue templates for your repository.

A form is a set of elements for requesting user input. You can configure a form by creating a YAML form definition, which is an array of form elements. Each form element is a set of key-value pairs that determine the type of the element, the properties of the element, and the constraints you want to apply to the element. For some keys, the value is another set of key-value pairs.

For example, the following form definition includes four form elements: a text area for providing the user's operating system, a dropdown menu for choosing the software version the user is running, a checkbox to acknowledge the Code of Conduct, and Markdown that thanks the user for completing the form.

YAML
- type: textarea
  attributes:
    label: Operating System
    description: What operating system are you using?
    placeholder: "Example: macOS Big Sur"
    value: operating system
  validations:
    required: true
- type: dropdown
  attributes:
    label: Version
    description: What version of our software are you running?
    multiple: false
    options:
      - 1.0.2 (Default)
      - 1.0.3 (Edge)
    default: 0
  validations:
    required: true
- type: checkboxes
  attributes:
    label: Code of Conduct
    description: The Code of Conduct helps create a safe space for everyone. We require
      that everyone agrees to it.
    options:
      - label: I agree to follow this project's [Code of Conduct](link/to/coc)
        required: true
- type: markdown
  attributes:
    value: "Thanks for completing our form!"

Keys

For each form element, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
typeThe type of element that you want to define.String
  • checkboxes
  • dropdown
  • input
  • markdown
  • textarea
idThe identifier for the element, except when type is set to markdown. Can only use alpha-numeric characters, -, and _. Must be unique in the form definition. If provided, the id is the canonical identifier for the field in URL query parameter prefills.String
attributesA set of key-value pairs that define the properties of the element.Map
validationsA set of key-value pairs that set constraints on the element.Map

You can choose from the following types of form elements. Each type has unique attributes and validations.

TypeDescription
markdownMarkdown text that is displayed in the form to provide extra context to the user, but is not submitted.
textareaA multi-line text field.
inputA single-line text field.
dropdownA dropdown menu.
checkboxesA set of checkboxes.

markdown

You can use a markdown element to display Markdown in your form that provides extra context to the user, but is not submitted.

Attributes for markdown

For the value of the attributes key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
valueThe text that is rendered. Markdown formatting is supported.String

Tip

YAML processing will treat the hash symbol as a comment. To insert Markdown headers, wrap your text in quotes.

For multi-line text, you can use the pipe operator.

Example of markdown

YAML
body:
- type: markdown
  attributes:
    value: "## Thank you for contributing to our project!"
- type: markdown
  attributes:
    value: |
      Thanks for taking the time to fill out this bug report.

textarea

You can use a textarea element to add a multi-line text field to your form. Contributors can also attach files in textarea fields.

Attributes for textarea

For the value of the attributes key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
labelA brief description of the expected user input, which is also displayed in the form.String
descriptionA description of the text area to provide context or guidance, which is displayed in the form.StringEmpty String
placeholderA semi-opaque placeholder that renders in the text area when empty.StringEmpty String
valueText that is pre-filled in the text area.String
renderIf a value is provided, submitted text will be formatted into a codeblock. When this key is provided, the text area will not expand for file attachments or Markdown editing.StringLanguages known to GitHub. For more information, see the languages YAML file.

Validations for textarea

For the value of the validations key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
requiredPrevents form submission until element is completed. Only for public repositories.Booleanfalse

Example of textarea

YAML
body:
- type: textarea
  id: repro
  attributes:
    label: Reproduction steps
    description: "How do you trigger this bug? Please walk us through it step by step."
    value: |
      1.
      2.
      3.
      ...
    render: bash
  validations:
    required: true

input

You can use an input element to add a single-line text field to your form.

Attributes for input

For the value of the attributes key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
labelA brief description of the expected user input, which is also displayed in the form.String
descriptionA description of the field to provide context or guidance, which is displayed in the form.StringEmpty String
placeholderA semi-transparent placeholder that renders in the field when empty.StringEmpty String
valueText that is pre-filled in the field.String

Validations for input

For the value of the validations key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
requiredPrevents form submission until element is completed. Only for public repositories.Booleanfalse

Example of input

YAML
body:
- 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

You can use a dropdown element to add a dropdown menu in your form.

Attributes for dropdown

For the value of the attributes key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
labelA brief description of the expected user input, which is displayed in the form.String
descriptionA description of the dropdown to provide extra context or guidance, which is displayed in the form.StringEmpty String
multipleDetermines if the user can select more than one option.Booleanfalse
optionsAn array of options the user can choose from. Cannot be empty and all choices must be distinct.String array
defaultIndex of the preselected option in the options array. When a default option is specified, you cannot include "None" or "n/a" as options.Integer

Validations for dropdown

For the value of the validations key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
requiredPrevents form submission until element is completed. Only for public repositories.Booleanfalse

Example of dropdown

YAML
body:
- type: dropdown
  id: download
  attributes:
    label: How did you download the software?
    options:
      - Built from source
      - Homebrew
      - MacPorts
      - apt-get
    default: 0
  validations:
    required: true

checkboxes

You can use the checkboxes element to add a set of checkboxes to your form.

Attributes for checkboxes

For the value of the attributes key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
labelA brief description of the expected user input, which is displayed in the form.String
descriptionA description of the set of checkboxes, which is displayed in the form. Supports Markdown formatting.StringEmpty String
optionsAn array of checkboxes that the user can select. For syntax, see below.Array

For each value in the options array, you can set the following keys.

KeyDescriptionRequiredTypeDefaultOptions
labelThe identifier for the option, which is displayed in the form. Markdown is supported for bold or italic text formatting, and hyperlinks.String
requiredPrevents form submission until element is completed. Only for public repositories.Booleanfalse

Validations for checkboxes

For the value of the validations key, you can set the following keys.

KeyDescriptionRequiredTypeDefaultValid values
requiredPrevents form submission until element is completed. Only for public repositories.Booleanfalse

Example of checkboxes

YAML
body:
- 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

Further reading

腰臀比是什么意思 喝玉米水有什么好处 喜欢趴着睡是什么原因 二尖瓣反流吃什么药 拉拉裤是什么
军校出来是什么军衔 嗓子痒是什么原因 肺部结节挂什么科 6月份什么星座 3月16号是什么星座的
乳果糖什么时候吃效果更佳 8.5是什么星座 脸上有痣去医院挂什么科 缺维生素b有什么症状 戊五行属什么
小腿酸胀吃什么药 旦辞爷娘去的旦是什么意思 258什么意思 开塞露是干什么用的 冈本是什么
鹿象征什么寓意hcv8jop9ns2r.cn 胸导联低电压什么意思hcv7jop4ns5r.cn 白皮鸡蛋是什么鸡下的bfb118.com viola是什么意思ff14chat.com 煤气是什么气体hcv8jop1ns5r.cn
蜂蜜什么时候喝最好96micro.com 拔牙之后可以吃什么tiangongnft.com 帕斯是什么意思helloaicloud.com 为什么家里有蚂蚁hcv8jop0ns5r.cn cav是什么意思travellingsim.com
长白头发了吃什么才能把头发变黑hcv7jop4ns6r.cn 情感细腻是什么意思hcv9jop3ns7r.cn 拉肚子吃什么药最有效果hcv8jop9ns1r.cn 熬夜头疼是什么原因hcv8jop5ns1r.cn 什么植物有毒gysmod.com
甲状腺属于什么系统hcv9jop2ns1r.cn 内参是什么意思hcv9jop3ns8r.cn 瘪嘴是什么意思hcv9jop0ns4r.cn 尿的是白色米汤是什么病hcv7jop7ns4r.cn 崎岖是什么意思hcv8jop6ns4r.cn
百度 技术支持:蜘蛛池 www.kelongchi.com