SHA256
deploy / deploy (push) Successful in 25s
Issue 页的作者名走 User.GetDisplayName(), 默认返回 login(学号), 看不到老师/助教认得的姓名。打开站点级开关 [ui] DEFAULT_SHOW_FULL_NAME 后改为显示 full_name, 未填姓名的用户回退学号。 配合 OIDC 侧把 full_name 覆盖成 display_name(学号-姓名), 即可同时 显示学号与姓名; 存量用户需重新登录才会刷新, 见 scripts/README.md。 - deploy/compose.yaml: GITEA__ui__DEFAULT_SHOW_FULL_NAME=true - customization/preview/compose.yaml: 同步, 便于预览验证 - customization/README.md: 配置表 / 环境变量片段 / 已验证清单 - scripts/settings.toml: CLI 调 API 的地址改为宿主回环 127.0.0.1:2080 (10.80.42.185:3000 未对外开放, 上层反代返回 502) 已在预览实例(Gitea 1.27.3)验证: 「由 X 创建」与正文/评论作者 均显示 full_name。
59 lines
1.2 KiB
TOML
59 lines
1.2 KiB
TOML
[default.gitea]
|
|
url = "http://127.0.0.1:2080"
|
|
# 同学实际访问的平台地址(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 = "需要尽快回复"
|