SHA256
forked from course-team/tjhlp-gitea
- 两个 config.yaml 的 contact_links 从 example.com 换成真实入口:
官网《学会提问》/ 课程官网 / 平台提问速查, 让答疑平台与官网互相导流
- 模板支持 {{BASE_URL}}/{{ORG}}/{{REPO}} 占位符, 推送时替换,
换学期建新组织不用改模板; 未配置时保留占位符并告警而不是推坏链接
- scripts: 新增 gitea.public_url(对外地址, 与 CLI 用的 url 区分),
utils.web_base_url()/render_template_placeholders() 及单元测试
59 lines
1.2 KiB
TOML
59 lines
1.2 KiB
TOML
[default.gitea]
|
|
url = "https://cpp.tongji.sh:3000"
|
|
# 同学实际访问的平台地址(Apache 反代 /QA -> 127.0.0.1:2080)。
|
|
# 用于 Issue Template 等面向用户的链接; url 只用于 CLI 调 API。
|
|
public_url = "https://cpp.tongji.sh/QA"
|
|
email_domain = "tongji.edu.cn"
|
|
default_org = ""
|
|
|
|
# 预定义 Label 集合
|
|
[[default.gitea.labels]]
|
|
name = "duplicate"
|
|
color = "#cfd3d7"
|
|
description = "重复问题"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "invalid"
|
|
color = "#e4e669"
|
|
description = "不符合提问规范"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "resolved"
|
|
color = "#0e8a16"
|
|
description = "已解决"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "wontfix"
|
|
color = "#ffffff"
|
|
description = "不予处理"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "good-question"
|
|
color = "#7057ff"
|
|
description = "优质问题"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "FAQ"
|
|
color = "#0075ca"
|
|
description = "常见问题"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "课程内容"
|
|
color = "#d876e3"
|
|
description = "课程知识点相关"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "编程作业"
|
|
color = "#f9d0c4"
|
|
description = "编程作业相关"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "环境配置"
|
|
color = "#bfdadc"
|
|
description = "环境配置相关"
|
|
|
|
[[default.gitea.labels]]
|
|
name = "紧急"
|
|
color = "#b60205"
|
|
description = "需要尽快回复"
|