forked from yixinnb/test
更新 .gitea/issue_template.yaml
This commit is contained in:
+22
-24
@@ -1,39 +1,37 @@
|
|||||||
---
|
---
|
||||||
name: "Student Information Template"
|
name: "Student Information Template"
|
||||||
description: "This template is for collecting student information."
|
description: "This template is for collecting student information."
|
||||||
title: "[STUDENT] "
|
title: "[join] test"
|
||||||
labels:
|
labels:
|
||||||
- information
|
- join
|
||||||
- student
|
|
||||||
body:
|
body:
|
||||||
- type: input
|
- type: input
|
||||||
id: name
|
id: name
|
||||||
attributes:
|
attributes:
|
||||||
label: "姓名"
|
label: "姓名"
|
||||||
description: "请填写您的姓名"
|
placeholder: "例如:张三 或 JohnDoe"
|
||||||
placeholder: "例如:张三"
|
validations:
|
||||||
|
- required: true
|
||||||
|
- regex: ^(?:[\u4e00-\u9fa5]{2,10}|[a-zA-Z]{4,20})$
|
||||||
- type: input
|
- type: input
|
||||||
id: student_id
|
id: student_id
|
||||||
attributes:
|
attributes:
|
||||||
label: "学号"
|
label: "学号"
|
||||||
description: "请填写您的学号"
|
placeholder: "例如:202100010001"
|
||||||
placeholder: "例如:20210001"
|
validations:
|
||||||
- type: textarea
|
- required: true
|
||||||
id: json_output
|
- regex: ^\d{12}$
|
||||||
attributes:
|
|
||||||
label: "生成的 JSON"
|
|
||||||
description: "请将以下 JSON 复制到 Issue 内容中"
|
|
||||||
value: |
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"name": "${{ name }}",
|
|
||||||
"student_id": "${{ student_id }}"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
render: markdown
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 说明
|
### 输入规则
|
||||||
1. 请填写姓名和学号。
|
1. **姓名**:
|
||||||
2. 系统会自动生成 JSON 格式,请将其复制到 Issue 内容中。
|
- 2-10 个中文字符 **或** 4-20 个英文字符。
|
||||||
3. 提交 Issue 前请检查信息是否正确。
|
- 前后均不能包含空格。
|
||||||
|
|
||||||
|
2. **学号**:
|
||||||
|
- 必须为 12 位数字。
|
||||||
|
- 不能包含空格或其他字符。
|
||||||
|
|
||||||
|
### 注意事项
|
||||||
|
- 请确保填写的信息符合规则,否则 Issue 可能会被关闭。
|
||||||
|
- 提交后,管理员会检查输入是否符合要求。
|
||||||
Reference in New Issue
Block a user