发布日期: 2023-11-14
版本号: v1.21.0

该版本更新包含破坏性变更、新增功能、API调整、错误修复及多项优化。主要破坏性变更包括限制内置SSH服务器的证书类型、重构CLI框架至urfave/cli/v2、移除MySQL的CHARSET配置选项强制使用utf8mb4编码。新增功能涵盖用户详情页面展示、支持手动重建问题索引器、标签归档功能、工作流自动取消并发任务、分支状态显示及安全文件服务等。API方面修复了Webhook推送异常、包管理错误,并新增密钥管理接口。错误修复涉及附件重复下载、提交状态显示异常、权限校验问题等500余项问题。界面优化包括改进代码差异显示、调整下拉菜单交互、增强移动端适配。安全更新防止私有信息泄露并提升RSA密钥长度至3072位。此外还包含文档完善、测试增强、构建流程改进及依赖库升级等内容,全面提升系统稳定性与用户体验。

更新内容 (中文)

更新日志

  • 重大变更
    • 限制内置 SSH 服务器的证书类型 (#26789)
    • 重构以使用 urfave/cli/v2 (#25959)
    • 将公共资源文件移至正确目录 (#25907)
    • 移除提交状态运行中及警告以对齐 GitHub (#25839) (部分回退: 恢复警告提交状态 (#27504) (#27529))
    • 移除 MySQL 的 “CHARSET” 配置选项,始终使用 “utf8mb4” (#25413)
    • 设置 SSH_AUTHORIZED_KEYS_BACKUP 为 false (#25412)
  • 功能改进
    • 用户详情页面 (#26713)
    • 支持定时任务调度 (#26655)
    • 支持手动重建问题索引 (#26546)
    • 允许归档标签 (#26478)
    • 新增禁用工作流功能 (#26413)
    • 支持 .git-blame-ignore-revs 文件 (#26395)
    • 预注册 OAuth2 应用以支持 Git 凭证助手 (#26291)
    • 添加镜像仓库创建失败时的重试按钮 (#26228)
    • 制品保留与自动清理功能 (#26131)
    • 提供 “public” 目录预定义文件,新增 “security.txt”,为 “.well-known” 添加 CORS 头 (#25974)
    • 实现推送事件自动取消并发任务 (#25716)
    • 仓库主页显示新推送分支提示 (#25715)
    • 显示分支提交状态 (#25608)
    • 支持直接提供包内容 (#25543)
    • 在 PR 文件视图中添加提交下拉菜单并支持逐提交评审 (#25528)
    • 允许从管理页面清理软件包 (#25307)
    • 批量删除问题并优化 Tippy 选项 (#25253)
    • 显示包含某提交的分支与标签 (#25180)
    • 在运行列表中添加执行者与状态下拉框 (#25118)
    • 允许组织设置电子邮件 (#25082)
    • 新增代码所有者功能 (#24910)
    • 支持 Actions 制品上传多文件及目录 (#24874)
    • 支持 Gitea Actions 配置变量 (#24724)
    • 支持下载原始任务日志 (#24451)
  • API 变更
    • 统一双因素验证检查 (#27915) (#27929)
    • 修复软件包 Webhook (#27839) (#27855)
    • 修复 Windows 上传制品错误 (#27802) (#27840)
    • 修复通过 API 删除用户密钥时的错误方法调用 (#27829) (#27831)
    • 发布时不强制创建 _cargo-index 仓库 (#27266) (#27765)
    • 清理用户时删除所属组织的仓库 (#27273) (#27728)
    • 修复组织团队端点 (#27721) (#27727)
    • API: 获取 PR 提交时返回文件列表 (#27483) (#27539)
    • 禁止 API 添加同作用域互斥标签 (#27433) (#27460)
    • 重定义 is_active 字段含义以简化 Actions 注册令牌生成 (#27143) (#27304)
    • 修复 Jenkins GitHub 插件空指针异常 (#27203) (#27251)
    • 修复 POST /orgs/{orgid}/teams 组织字段为空问题 (#27150) (#27163)
    • 允许空 Conan 文件 (#27092)
    • 修复令牌端点忽略指定账户 (#27080)
    • 减少 db.DefaultContext 使用 (#27073) (#27083) (#27089) (#27103) (#27262) (#27265) (#27347) (#26076)
    • 使 SSPI 认证可模拟 (#27036)
    • 从服务层提取认证中间件 (#27028)
    • 为镜像添加 RemoteAddress 字段 (#26952)
    • 新增用户密钥管理路由 (#26909)
    • 新增仓库密钥删除功能 (#26808)
    • 新增仓库密钥创建/更新路由 (#26766)
    • 在发布 API 中添加上传 URL (#26663)
    • 新增组织密钥更新/删除功能 (#26660)
    • 实现组织密钥创建 API (#26566)
    • 新增列出组织密钥 API 路由 (#26485)
    • 显式使用引用时设置提交 ID (#26447)
    • 即使检查禁用时 PATCH 分支保护仍更新检查列表 (#26351)
    • 在仓库单提交 API 中添加文件状态 (#16205) (#25831)
    • 新增头像修改 API (#25369)
  • 错误修复
    • 修复空仓库查看 Wiki 提交的问题 (#28040) (#28044)
    • 为评论加载器启用系统用户 (#28014) (#28032)
    • 修复 Windows 系统备份时附件重复问题 (#28019) (#28031)
    • 修正错误的 xorm Delete 用法 (1.21 版本回退) (#28002)
    • 首页仓库描述添加断字处理 (#27924) (#27957)
    • 修复无分配者的分配变更评论渲染 (#27927) (#27952)
    • 为版本标题添加断字处理 (#27942) (#27947)
    • 修复查看 PR 特定提交范围时的 JS 空指针异常 (#27912) (#27923)
    • 修复单提交差异查看时显示正确提交 SHA (#27916) (#27921)
    • 修复删除已驳回评审时的 500 错误 (#27903) (#27910)
    • 修复迁移版本时的下载功能 (#27887) (#27890)
    • 修复 HTTP 协议认证 (#27875) (#27876)
    • 重构 PostgreSQL 连接字符串构建 (#27723) (#27869)
    • 关闭所有哈希缓冲区 (#27787) (#27790)
    • 修复包含非法 HTML 的标签渲染 (#27752) (#27762)
    • 修复回车键导致项目看板重复问题 (#27746) (#27751)
    • 修复 link-action 重定向网络错误 (#27734) (#27749)
    • 修复差异对比固定标题背景 (#27697) (#27712)
    • 始终删除现有定时任务 (#27662) (#27688)
    • 支持 Webhook 代理的允许主机配置 (#27655) (#27675)
    • 修复获取默认合并信息时未加载提交者问题 (#27657) (#27666)
    • 优化下拉按钮对齐及悬停问题 (#27632) (#27637)
    • 改进问题索引重试机制 (#27554) (#27634)
    • 修复删除含内部版本的 Docker 软件包时 404 错误 (#27615) (#27630)
    • 手动回退 v1.21 模板问题 (#27612)
    • 未设置 TOTP 时不显示相关链接 (#27585) (#27588)
    • 修复访问 task.LastRun 的数据竞争问题 (#27584) (#27586)
    • 修复附件下载错误 (#27486) (#27571)
    • 计算 SSH 指纹时遵循 SSH.KeygenPath 配置 (#27536) (#27551)
    • 优化含搜索输入的下拉菜单交互 (#27526) (#27534)
    • 修复 storageHandler 中的 panic (#27446) (#27479)
    • 比较非存在仓库时返回 404 而非 500 (#27437) (#27442)
    • 修复 PR 模板 (#27436) (#27440)
    • 修复 Git 2.11 检查空仓库错误 (#27393) (#27397)
    • 允许 OAuth2 格式令牌获取版本下载文件及 LFS 文件 (#26430) (#27379)
    • 修复仪表板中仓库链接缺少上下文 (#27372) (#27375)
    • 绝对定位复选框覆盖浮动元素 (#26870) (#27366)
    • 改进地图显示功能测试 (#26803) (#27365)
    • 修复组织操作设置中的仓库计数 (#27245) (#27353)
    • 添加评论评审数据损坏日志 (#27326) (#27345)
    • 修复无分支保护规则时的 PR 核准计数 (#27272) (#27343)
    • 修复仅设置联系链接时的问题配置 (#26521) (#27334)
    • 改进问题历史对话框及允许删除自身历史 (#27323) (#27327)
    • 修复已删除分支的孤立检查 (#27310) (#27321)
    • 修正保护分支图标位置 (#26576) (#27317)
    • 修复 YAML 测试 (#27297) (#27303)
    • 修复部分动画问题 (#27287) (#27294)
    • 修正 #27231 的错误变更 (#27275) (#27282)
    • 用户详情页添加公开用户可见性信息 (#27246) (#27250)
    • 修复网页编辑器 EOL 处理 (#27141) (#27234)
    • 修复 Actions Runner 页面问题 (#27226) (#27233)
    • SQL 查询中引用 release 表名 (#27205) (#27218)
    • 修复 Webhook 中的版本 URL (#27182) (#27185)
    • 修复评审请求数量并增加测试 (#27104) (#27168)
    • 修复网页变量正则表达式 (#27161) (#27164)
    • 无 README 时用户资料页将 “概览” 视为 “仓库” (#27124)
    • 修复编辑 OAuth2 应用时的空指针异常 (#27078)
    • 修正用户编辑页面路由路径错误 (#27007)
    • 修复网页密钥正则表达式 (#26910)
    • 允许有写权限的用户通过 API 添加附件 (#26837)
    • 使 “link-action” 后端返回正确 JSON 内容 (#26680)
    • 默认使用 line-height: normal (#26635)
    • 修复 NPM 包名验证 (#26595)
    • 重写 DiffFileTreeItem 并修复对齐问题 (#26565)
    • 无仓库时问题搜索返回空 (#26545)
    • 完善 SearchOptions 说明并修正转换逻辑 (#26542)
    • 添加缺失的更新问题索引触发器 (#26539)
    • 正确处理 base64 解码避免 panic (#26483)
    • 防止访问未定义提及值 (#26461)
    • 修复使用引用新建问题的错误重定向 (#26440)
    • 修复 pull_request_target 事件获取变更文件错误 (#26320)
    • 移除模板中的 IsWarning 标识 (#26120)
    • 修复从错误章节加载 LFS_JWT_SECRET (#26109)
    • 修复已登录用户重定向问题 (#26105)
    • 改进 “gitea doctor” 子命令及帮助命令 (#26072)
    • 修复部分管理表格截断与对齐问题 (#26042)
    • 更新密码最小长度要求 (#25946)
    • 通过 API 上传文件时不猜测编码/BOM (#25828)
    • 重构问题列表模板样式 (#25750)
    • 修复 pull_request_target 触发的工作流 ref 问题 (#25743)
    • 修复问题索引文档映射 (#25619)
    • 用户退出接口使用 JSON 响应 (#25522)
    • 修复移动端迁移页面布局 (#25507)
    • 相同分支新建 PR 时链接到现有 PR (#25494)
    • 不在 -dev 标签发布 Docker 版本 (#25471)
    • 支持 pull_request_target 事件 (#25229)
    • 调整飞书 Webhook 内容格式 (#25106)
  • 体验优化
    • 标点后的电子邮件地址特殊渲染 (#27987) (#27992)
    • 文件大小超限时显示错误提示 (#27985) (#27986)
    • 修复文件大于 1024 字节时的引用错误 (#27958) (#27965)
    • 用户删除时移除关联 Actions Runner (#27902) (#27908)
    • 移除查看问题页面的 tabindex (#27892) (#27896)
    • 调整弹性列表项间距 (#27872) (#27874)
    • 调整 KaTeX 限制 (#27823) (#27868)
    • 清理模板本地化用法 (#27856) (#27857)
    • 新增空占位符专用样式类 (#27788) (#27792)
    • 差异框之间添加间距 (#27776) (#27781)
    • 修复仓库搜索子模板的 “tab” 参数错误 (#27755) (#27764)
    • 为语言统计条启用跟随光标 (#27713) (#27739)
    • 优化差异树间距 (#27714) (#27719)
    • 信息流界面改进 (#27356) (#27717)
    • 优化信息流图标与合并文本颜色 (#27498) (#27716)
    • 通过插入间隙解决语言统计颜色混淆问题 (#27704) (#27715)
    • 新增数据库一致性修复工具以删除无主仓库 (#27290) (#27693)
    • 修复问题表单必选复选框 (#27592) (#27692)
    • 默认隐藏已归档标签建议 (#27451) (#27661)
    • 清理仓库详情图标/标签 (#27644) (#27654)
    • 探索页面显示未过滤结果时保留筛选条件 (#27192) (#27589)
    • 显示手动定时任务最后执行时间 (#27544) (#27577)
    • 回退 “修复 PR 模板 (#27436)” (#27567)
    • 增加队列长度 (#27555) (#27562)
    • 标题未变更时跳过处理流程 (#27467) (#27558)
    • 移除最大宽度限制并添加文本溢出隐藏 (#27359) (#27550)
    • 为 Wiki 列表页添加悬停背景 (#27507) (#27521)
    • 修复 Mermaid 流程图边距问题 (#27503) (#27516)
    • 重构系统设置 (#27000) (#27452)
    • 修复 new_form.tmpl 缺少 ctx (#27434) (#27438)
    • action.user_id 添加索引 (#27403) (#27425)
    • 避免在 DeleteIssuesByRepoID 使用子查询 (#27332) (#27408)
    • 支持 HEAD 引用在 /src/branch 和 /src/commit 路由 (#27384) (#27407)
    • 允许用户配置 Actions 任务/作业超时 (#27400) (#27402)
    • 问题列表按标签筛选时隐藏已归档标签 (#27115) (#27381)
    • 高亮用户详情链接 (#26998) (#27376)
    • 添加受保护分支名称描述 (#27257) (#27351)
    • 改进 404 仓库树页面 (#26570) (#27346)
    • comment.dependent_issue_id 添加索引 (#27325) (#27340)
    • 优化分支列表 UI (#27319) (#27324)
    • 修复订阅页面分隔线 (#27298) (#27301)
    • 补全 Actions 视图获取的返回语句 (#27289) (#27293)
    • 手动回退本地化上下文重构 (#27231) (#27259) (#27260)
    • Webhook 未激活时禁用 测试交付重放 按钮 (#27211) (#27253)
    • .new-menu 使用遮罩淡出效果 (#27181) (#27243)
    • 清理本地化函数用法 (#27227) (#27240)
    • 修复 Markdown 补全的 z-index (#27237) (#27239)
    • 修复含搜索输入的下拉菜单图标问题 (#27225) (#27228)
    • 允许在归档仓库和未登录时复制问题评论链接 (#27193) (#27210)
    • 修复问题侧边栏菜单标签文本装饰器 (#27206) (#27209)
    • 修正下拉图标位置 (#27175) (#27177)
    • issue_user.issue_id 添加索引 (#27154) (#27158)
    • 增大登录页认证提供商图标 (#27122)
    • 移除冗余 gt-float-right 及无用辅助类 (#27110)
    • 将绿色按钮改为主色调 (#27099)
    • 使用 db.WithTx 添加团队成员以避免上下文滥用 (#27095)
    • 使用 print 替代 printf (#27093)
    • 移除无用函数 GetUserIssueStats 并迁移测试 (#27067)
    • 搜索分支功能 (#27055)
    • 管理界面显示所有用户类型和组织类型 (#27050)
    • 修正移动导航栏左对齐元素 (#27046)
    • Chroma 配色调整 (#26978)
    • 将部分函数移至服务层 (#26969)
    • 优化 “语言统计” UI (#26968)
    • 使用 slices.Xxx 替换 util.SliceXxx (#26958)
    • 重构仪表板/信息流模板 (#26956)
    • 将仓库删除移至服务层 (#26948)
    • 修复仓库计数缺失 (#26942)
    • 上传过大头像时显示更好提示 (#26935)
    • 提取通用代码至新模板 (#26933)
    • 将仓库创建从模块移至服务层 (#26927)
    • 将通知接口移至服务层 (#26915)
    • 信息流通知服务层迁移 (#26908)
    • UI 通知服务层迁移 (#26907)
    • 索引器通知服务层迁移 (#26906)
    • 邮件通知逻辑迁移至服务层 (#26905)
    • 提取通用代码至新模板 (#26903)
    • 显示队列活跃工作线程数 (#26896)
    • 修复 OrgMode 媒体描述渲染 (#26895)
    • 移除 CSS has 选择器并优化样式 (#26891)
    • 调整 RSS 用户订阅 按钮位置 (#26882)
    • 重构 shortsha 处理 (#26877)
    • 限制 og:description 最大长度 (#26876)
    • 将 Web/API 上下文测试函数移至独立包 (#26859)
    • S3 存储连接失败时显示可读错误 (#26856)
    • 优化 OpenGraph 预览 (#26851)
    • 密码找回页增加描述性错误 (#26848)
    • 页头始终显示仓库计数 (#26842)
    • 清理 CSS

更新内容 (原始)

Changelog

  • BREAKING
    • Restrict certificate type for builtin SSH server (#26789)
    • Refactor to use urfave/cli/v2 (#25959)
    • Move public asset files to the proper directory (#25907)
    • Remove commit status running and warning to align GitHub (#25839) (partially reverted: Restore warning commit status (#27504) (#27529))
    • Remove “CHARSET” config option for MySQL, always use “utf8mb4” (#25413)
    • Set SSH_AUTHORIZED_KEYS_BACKUP to false (#25412)
  • FEATURES
    • User details page (#26713)
    • Chore(actions): support cron schedule task (#26655)
    • Support rebuilding issue indexer manually (#26546)
    • Allow to archive labels (#26478)
    • Add disable workflow feature (#26413)
    • Support .git-blame-ignore-revs file (#26395)
    • Pre-register OAuth2 applications for git credential helpers (#26291)
    • Add Retry button when creating a mirror-repo fails (#26228)
    • Artifacts retention and auto clean up (#26131)
    • Serve pre-defined files in “public”, add “security.txt”, add CORS header for “.well-known” (#25974)
    • Implement auto-cancellation of concurrent jobs if the event is push (#25716)
    • Newly pushed branches hints on repository home page (#25715)
    • Display branch commit status (#25608)
    • Add direct serving of package content (#25543)
    • Add commits dropdown in PR files view and allow commit by commit review (#25528)
    • Allow package cleanup from admin page (#25307)
    • Batch delete issue and improve tippy opts (#25253)
    • Show branches and tags that contain a commit (#25180)
    • Add actor and status dropdowns to run list (#25118)
    • Allow Organisations to have a E-Mail (#25082)
    • Add codeowners feature (#24910)
    • Actions Artifacts support uploading multiple files and directories (#24874)
    • Support configuration variables on Gitea Actions (#24724)
    • Support downloading raw task logs (#24451)
  • API
    • Unify two factor check (#27915) (#27929)
    • Fix package webhook (#27839) (#27855)
    • Fix/upload artifact error windows (#27802) (#27840)
    • Fix bad method call when deleting user secrets via API (#27829) (#27831)
    • Do not force creation of _cargo-index repo on publish (#27266) (#27765)
    • Delete repos of org when purge delete user (#27273) (#27728)
    • Fix org team endpoint (#27721) (#27727)
    • Api: GetPullRequestCommits: return file list (#27483) (#27539)
    • Don’t let API add 2 exclusive labels from same scope (#27433) (#27460)
    • Redefine the meaning of column is_active to make Actions Registration Token generation easier (#27143) (#27304)
    • Fix PushEvent NullPointerException jenkinsci/github-plugin (#27203) (#27251)
    • Fix organization field being null in POST /orgs/{orgid}/teams (#27150) (#27163)
    • Allow empty Conan files (#27092)
    • Fix token endpoints ignore specified account (#27080)
    • Reduce usage of db.DefaultContext (#27073) (#27083) (#27089) (#27103) (#27262) (#27265) (#27347) (#26076)
    • Make SSPI auth mockable (#27036)
    • Extract auth middleware from service (#27028)
    • Add RemoteAddress to mirrors (#26952)
    • Feat(API): add routes and functions for managing user’s secrets (#26909)
    • Feat(API): add secret deletion functionality for repository (#26808)
    • Feat(API): add route and implementation for creating/updating repository secret (#26766)
    • Add Upload URL to release API (#26663)
    • Feat(API): update and delete secret for managing organization secrets (#26660)
    • Feat: implement organization secret creation API (#26566)
    • Add API route to list org secrets (#26485)
    • Set commit id when ref used explicitly (#26447)
    • PATCH branch-protection updates check list even when checks are disabled (#26351)
    • Add file status for API “Get a single commit from a repository” (#16205) (#25831)
    • Add API for changing Avatars (#25369)
  • BUGFIXES
    • Fix viewing wiki commit on empty repo (#28040) (#28044)
    • Enable system users for comment.LoadPoster (#28014) (#28032)
    • Fixed duplicate attachments on dump on windows (#28019) (#28031)
    • Fix wrong xorm Delete usage(backport for 1.21) (#28002)
    • Add word-break to repo description in home page (#27924) (#27957)
    • Fix rendering assignee changed comments without assignee (#27927) (#27952)
    • Add word break to release title (#27942) (#27947)
    • Fix JS NPE when viewing specific range of PR commits (#27912) (#27923)
    • Show correct commit sha when viewing single commit diff (#27916) (#27921)
    • Fix 500 when deleting a dismissed review (#27903) (#27910)
    • Fix DownloadFunc when migrating releases (#27887) (#27890)
    • Fix http protocol auth (#27875) (#27876)
    • Refactor postgres connection string building (#27723) (#27869)
    • Close all hashed buffers (#27787) (#27790)
    • Fix label render containing invalid HTML (#27752) (#27762)
    • Fix duplicate project board when hitting enter key (#27746) (#27751)
    • Fix link-action redirect network error (#27734) (#27749)
    • Fix sticky diff header background (#27697) (#27712)
    • Always delete existing scheduled action tasks (#27662) (#27688)
    • Support allowed hosts for webhook to work with proxy (#27655) (#27675)
    • Fix poster is not loaded in get default merge message (#27657) (#27666)
    • Improve dropdown button alignment and fix hover bug (#27632) (#27637)
    • Improve retrying index issues (#27554) (#27634)
    • Fix 404 when deleting Docker package with an internal version (#27615) (#27630)
    • Backport manually for a tmpl issue in v1.21 (#27612)
    • Don’t show Link to TOTP if not set up (#27585) (#27588)
    • Fix data-race bug when accessing task.LastRun (#27584) (#27586)
    • Fix attachment download bug (#27486) (#27571)
    • Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536) (#27551)
    • Improve dropdown’s behavior when there is a search input in menu (#27526) (#27534)
    • Fix panic in storageHandler (#27446) (#27479)
    • When comparing with an non-exist repository, return 404 but 500 (#27437) (#27442)
    • Fix pr template (#27436) (#27440)
    • Fix git 2.11 error when checking IsEmpty (#27393) (#27397)
    • Allow get release download files and lfs files with oauth2 token format (#26430) (#27379)
    • Fix missing ctx for GetRepoLink in dashboard (#27372) (#27375)
    • Absolute positioned checkboxes overlay floated elements (#26870) (#27366)
    • Introduce fixes and more rigorous tests for ‘Show on a map’ feature (#26803) (#27365)
    • Fix repo count in org action settings (#27245) (#27353)
    • Add logs for data broken of comment review (#27326) (#27345)
    • Fix the approval count of PR when there is no protection branch rule (#27272) (#27343)
    • Fix Bug in Issue Config when only contact links are set (#26521) (#27334)
    • Improve issue history dialog and make poster can delete their own history (#27323) (#27327)
    • Fix orphan check for deleted branch (#27310) (#27321)
    • Fix protected branch icon location (#26576) (#27317)
    • Fix yaml test (#27297) (#27303)
    • Fix some animation bugs (#27287) (#27294)
    • Fix incorrect change from #27231 (#27275) (#27282)
    • Add missing public user visibility in user details page (#27246) (#27250)
    • Fix EOL handling in web editor (#27141) (#27234)
    • Fix issues on action runners page (#27226) (#27233)
    • Quote table release in sql queries (#27205) (#27218)
    • Fix release URL in webhooks (#27182) (#27185)
    • Fix review request number and add more tests (#27104) (#27168)
    • Fix the variable regexp pattern on web page (#27161) (#27164)
    • Fix: treat tab “overview” as “repositories” in user profiles without readme (#27124)
    • Fix NPE when editing OAuth2 applications (#27078)
    • Fix the incorrect route path in the user edit page. (#27007)
    • Fix the secret regexp pattern on web page (#26910)
    • Allow users with write permissions for issues to add attachments with API (#26837)
    • Make “link-action” backend code respond correct JSON content (#26680)
    • Use line-height: normal by default (#26635)
    • Fix NPM packages name validation (#26595)
    • Rewrite the DiffFileTreeItem and fix misalignment (#26565)
    • Return empty when searching issues with no repos (#26545)
    • Explain SearchOptions and fix ToSearchOptions (#26542)
    • Add missing triggers to update issue indexer (#26539)
    • Handle base64 decoding correctly to avoid panic (#26483)
    • Avoiding accessing undefined mentionValues (#26461)
    • Fix incorrect redirection in new issue using references (#26440)
    • Fix the bug when getting files changed for pull_request_target event (#26320)
    • Remove IsWarning in tmpl (#26120)
    • Fix loading LFS_JWT_SECRET from wrong section (#26109)
    • Fixing redirection issue for logged-in users (#26105)
    • Improve “gitea doctor” sub-command and fix “help” commands (#26072)
    • Fix the truncate and alignment problem for some admin tables (#26042)
    • Update minimum password length requirements (#25946)
    • Do not “guess” the file encoding/BOM when using API to upload files (#25828)
    • Restructure issue list template, styles (#25750)
    • Fix ref for workflows triggered by pull_request_target (#25743)
    • Fix issues indexer document mapping (#25619)
    • Use JSON response for “user/logout” (#25522)
    • Fix migrate page layout on mobile (#25507)
    • Link to existing PR when trying to open a new PR on the same branches (#25494)
    • Do not publish docker release images on -dev tags (#25471)
    • Support pull_request_target event (#25229)
    • Modify the content format of the Feishu webhook (#25106)
  • ENHANCEMENTS
    • Render email addresses as such if followed by punctuation (#27987) (#27992)
    • Show error toast when file size exceeds the limits (#27985) (#27986)
    • Fix citation error when the file size is larger than 1024 bytes (#27958) (#27965)
    • Remove action runners on user deletion (#27902) (#27908)
    • Remove set tabindex on view issue (#27892) (#27896)
    • Reduce margin/padding on flex-list items and divider (#27872) (#27874)
    • Change katex limits (#27823) (#27868)
    • Clean up template locale usage (#27856) (#27857)
    • Add dedicated class for empty placeholders (#27788) (#27792)
    • Add gap between diff boxes (#27776) (#27781)
    • Fix incorrect “tab” parameter for repo search sub-template (#27755) (#27764)
    • Enable followCursor for language stats bar (#27713) (#27739)
    • Improve diff tree spacing (#27714) (#27719)
    • Feed UI Improvements (#27356) (#27717)
    • Improve feed icons and feed merge text color (#27498) (#27716)
    • [FIX] resolve confusing colors in languages stats by insert a gap (#27704) (#27715)
    • Add doctor dbconsistency fix to delete repos with no owner (#27290) (#27693)
    • Fix required checkboxes in issue forms (#27592) (#27692)
    • Hide archived labels by default from the suggestions when assigning labels for an issue (#27451) (#27661)
    • Cleanup repo details icons/labels (#27644) (#27654)
    • Keep filter when showing unfiltered results on explore page (#27192) (#27589)
    • Show manual cron run’s last time (#27544) (#27577)
    • Revert “Fix pr template (#27436)” (#27567)
    • Increase queue length (#27555) (#27562)
    • Avoid run change title process when the title is same (#27467) (#27558)
    • Remove max-width and add hide text overflow (#27359) (#27550)
    • Add hover background to wiki list page (#27507) (#27521)
    • Fix mermaid flowchart margin issue (#27503) (#27516)
    • Refactor system setting (#27000) (#27452)
    • Fix missing ctx in new_form.tmpl (#27434) (#27438)
    • Add Index to action.user_id (#27403) (#27425)
    • Don’t use subselect in DeleteIssuesByRepoID (#27332) (#27408)
    • Add support for HEAD ref in /src/branch and /src/commit routes (#27384) (#27407)
    • Make Actions tasks/jobs timeouts configurable by the user (#27400) (#27402)
    • Hide archived labels when filtering by labels on the issue list (#27115) (#27381)
    • Highlight user details link (#26998) (#27376)
    • Add protected branch name description (#27257) (#27351)
    • Improve tree not found page (#26570) (#27346)
    • Add Index to comment.dependent_issue_id (#27325) (#27340)
    • Improve branch list UI (#27319) (#27324)
    • Fix divider in subscription page (#27298) (#27301)
    • Add missed return to actions view fetch (#27289) (#27293)
    • Backport ctx locale refactoring manually (#27231) (#27259) (#27260)
    • Disable Test Delivery and Replay webhook buttons when webhook is inactive (#27211) (#27253)
    • Use mask-based fade-out effect for .new-menu (#27181) (#27243)
    • Cleanup locale function usage (#27227) (#27240)
    • Fix z-index on markdown completion (#27237) (#27239)
    • Fix Fomantic UI dropdown icon bug when there is a search input in menu (#27225) (#27228)
    • Allow copying issue comment link on archived repos and when not logged in (#27193) (#27210)
    • Fix: text decorator on issue sidebar menu label (#27206) (#27209)
    • Fix dropdown icon position (#27175) (#27177)
    • Add index to issue_user.issue_id (#27154) (#27158)
    • Increase auth provider icon size on login page (#27122)
    • Remove a gt-float-right and some unnecessary helpers (#27110)
    • Change green buttons to primary color (#27099)
    • Use db.WithTx for AddTeamMember to avoid ctx abuse (#27095)
    • Use print instead of printf (#27093)
    • Remove the useless function GetUserIssueStats and move relevant tests to indexer_test.go (#27067)
    • Search branches (#27055)
    • Display all user types and org types on admin management UI (#27050)
    • Ui correction in mobile view nav bar left aligned items. (#27046)
    • Chroma color tweaks (#26978)
    • Move some functions to service layer (#26969)
    • Improve “language stats” UI (#26968)
    • Replace util.SliceXxx with slices.Xxx (#26958)
    • Refactor dashboard/feed.tmpl (#26956)
    • Move repository deletion to service layer (#26948)
    • Fix the missing repo count (#26942)
    • Improve hint when uploading a too large avatar (#26935)
    • Extract common code to new template (#26933)
    • Move createrepository from module to service layer (#26927)
    • Move notification interface to services layer (#26915)
    • Move feed notification service layer (#26908)
    • Move ui notification to service layer (#26907)
    • Move indexer notification to service layer (#26906)
    • Move mail notification logic to service layer (#26905)
    • Extract common code to new template (#26903)
    • Show queue’s active worker number (#26896)
    • Fix media description render for orgmode (#26895)
    • Remove CSS has selector and improve various styles (#26891)
    • Relocate the RSS user feed button (#26882)
    • Refactor “shortsha” (#26877)
    • Refactor og:description to limit the max length (#26876)
    • Move web/api context related testing function into a separate package (#26859)
    • Redable error on S3 storage connection failure (#26856)
    • Improve opengraph previews (#26851)
    • Add more descriptive error on forgot password page (#26848)
    • Show always repo count in header (#26842)
    • Remove “TODO” tasks from CSS file (#26835)
    • Render code blocks in repo description (#26830)
    • Minor dashboard tweaks, fix flex-list margins (#26829)
    • Remove polluted .ui.right (#26825)
    • Display archived labels specially when listing labels (#26820)
    • Remove polluted “.ui.left” style (#26809)
    • Make it posible to customize nav text color via css var (#26807)
    • Refactor lfs requests (#26783)
    • Improve flex list item padding (#26779)
    • Remove fomantic text module (#26777)
    • Remove fomantic item module (#26775)
    • Remove redundant nil check in WalkGitLog (#26773)
    • Reduce some allocations in type conversion (#26772)
    • Refactor some CSS styles and simplify code (#26771)
    • Unify border-radius behavior (#26770)
    • Improve modal dialog UI (#26764)
    • Allow “latest” to be used in release vTag when downloading file (#26748)
    • Adding hint Archived to archive label. (#26741)
    • Move modules/mirror to services (#26737)
    • Add “dir=auto” for input/textarea elements by default (#26735)
    • Add auth-required to config.json for Cargo http registry (#26729)
    • Simplify helper CSS classes and avoid abuse (#26728)
    • Make web context initialize correctly for different cases (#26726)
    • Focus editor on “Write” tab click (#26714)
    • Remove incorrect CSS helper classes (#26712)
    • Fix review bar misalignment (#26711)
    • Add reverseproxy auth for API back with default disabled (#26703)
    • Add default label in branch select list (#26697)
    • Improve Image Diff UI (#26696)
    • Fixed text overflow in dropdown menu (#26694)
    • [Refactor] getIssueStatsChunk to move inner function into own one (#26671)
    • Remove fomantic loader module (#26670)
    • Add member, collaborator, contributor, and first-time contributor roles and tooltips (#26658)
    • Improve some flex layouts (#26649)
    • Improve the branch selector tab UI (#26631)
    • Improve show role (#26621)
    • Remove avatarHTML from template helpers (#26598)
    • Allow text selection in actions step header (#26588)
    • Improve translation of milestone filters (#26569)
    • Add optimistic lock to ActionRun table (#26563)
    • Update team invitation email link (#26550)
    • Differentiate better between user settings and admin settings (#26538)
    • Check disabled workflow when rerun jobs (#26535)
    • Improve deadline icon location in milestone list page (#26532)
    • Improve repo sub menu (#26531)
    • Fix the display of org level badges (#26504)
    • Rename Sync2 -> Sync (#26479)
    • Fix stderr usages (#26477)
    • Remove fomantic transition module (#26469)
    • Refactor tests (#26464)
    • Refactor project templates (#26448)
    • Fall back to esbuild for css minify (#26445)
    • Always show usernames in reaction tooltips (#26444)
    • Use correct pull request commit link instead of a generic commit link (#26434)
    • Refactor “editorconfig” (#26391)
    • Make user-content-* consistent with github (#26388)
    • Remove unnecessary template helper repoAvatar (#26387)
    • Remove unnecessary template helper DisableGravatar (#26386)
    • Use template context function for avatar rendering (#26385)
    • Rename code_langauge.go to code_language.go (#26377)
    • Use more IssueList instead of []*Issue (#26369)
    • Do not highlight #number in documents (#26365)
    • Fix display problems of members and teams unit (#26363)
    • Fix 404 error when remove self from an organization (#26362)
    • Improve CLI and messages (#26341)
    • Refactor backend SVG package and add tests (#26335)
    • Add link to job details and tooltip to commit status in repo list in dashboard (#26326)
    • Use yellow if an approved review is stale (#26312)
    • Remove commit load branches and tags in wiki repo (#26304)
    • Add highlight to selected repos in milestone dashboard (#26300)
    • Delete issue_service.CreateComment (#26298)
    • Do not show Profile README when repository is private (#26295)
    • Tweak actions menu (#26278)
    • Start using template context function (#26254)
    • Use calendar icon for Joined on... in profiles (#26215)
    • Add ‘Show on a map’ button to Location in profile, fix layout (#26214)
    • Render plaintext task list items for markdown files (#26186)
    • Add tooltip to describe LFS table column and color delete LFS file button red (#26181)
    • Release attachments duplicated check (#26176)
    • De-emphasize issue sidebar buttons (#26171)
    • Fixing the align of commit stats in commit_page template. (#26161)
    • Allow editing push mirrors after creation (#26151)
    • Move web JSON functions to web context and simplify code (#26132)
    • Refactor improve NoBetterThan (#26126)
    • Improve clickable area in repo action view page (#26115)
    • Add context parameter to some database functions (#26055)
    • Docusaurus-ify (#26051)
    • Improve text for empty issue/pr description (#26047)
    • Categorize admin settings sidebar panel (#26030)
    • Remove redundant “RouteMethods” method (#26024)
    • Refactor and enhance issue indexer to support both searching, filtering and paging (#26012)
    • Add a link to OpenID Issuer URL in WebFinger response (#26000)
    • Fix UI for release tag page / wiki page / subscription page (#25948)
    • Support copy protected branch from template repository (#25889)
    • Improve display of Labels/Projects/Assignees sort options (#25886)
    • Fix margin on the new/edit project page. (#25885)
    • Show image size on view page (#25884)
    • Remove ref name in PR commits page (#25876)
    • Allow the use of alternative net.Listener implementations by downstreams (#25855)
    • Refactor “Content” for file uploading (#25851)
    • Add error info if no user can fork the repo (#25820)
    • Show edit title button on commits tab of PR, too (#25791)
    • Introduce flex-list & flex-item elements for Gitea UI (#25790)
    • Don’t stack PR tab menu on small screens (#25789)
    • Repository Archived text title center align (#25767)
    • Make route middleware/handler mockable (#25766)
    • Move issue filters to shared template (#25729)
    • Use frontend fetch for branch dropdown component (#25719)
    • Add open/closed field support for issue index (#25708)
    • Some less naked returns (#25682)
    • Fix inconsistent user profile layout across tabs (#25625)
    • Get latest commit statuses from database instead of git data on dashboard for repositories (#25605)
    • Adding branch-name copy to clipboard branches screen. (#25596)
    • Update emoji set to Unicode 15 (#25595)
    • Move some files under repo/setting (#25585)
    • Add custom ansi colors and CSS variables for them (#25546)
    • Add log line anchor for action logs (#25532)
    • Use flex instead of float for sort button and search input (#25519)
    • Update octicons and use octicon-file-directory-symlink (#25453)
    • Add toasts to UI (#25449)
    • Fine tune project board label colors and modal content background (#25419)
    • Import additional secrets via file uri (#25408)
    • Switch to ansi_up for ansi rendering in actions (#25401)
    • Store and use seconds for timeline time comments (#25392)
    • Support displaying diff stats in PR tab bar (#25387)
    • Use fetch form action for lock/unlock/pin/unpin on sidebar (#25380)
    • Refactor: TotalTimes return seconds (#25370)
    • Navbar styling rework (#25343)
    • Introduce shared template for search inputs (#25338)
    • Only show ‘Manage Account Links’ when necessary (#25311)
    • Improve ‘Privacy’ section in profile settings (#25309)
    • Substitute variables in path names of template repos too (#25294)
    • Fix tags line no margin see #25255 (#25280)
    • Use fetch to send requests to create issues/comments (#25258)
    • Change form actions to fetch for submit review box (#25219)
    • Improve AJAX link and modal confirm dialog (#25210)
    • Reduce unnecessary DB queries for Actions tasks (#25199)
    • Disable Create column button while the column name is empty (#25192)
    • Refactor indexer (#25174)
    • Adjust style for action run list (align icons, adjust padding) (#25170)
    • Remove duplicated functions when deleting a branch (#25128)
    • Make confusable character warning less jarring (#25069)
    • Highlight viewed files differently in the PR filetree (#24956)
    • Support changing labels of Actions runner without re-registration (#24806)
    • Fix duplicate Reviewed-by trailers (#24796)
    • Resolve issue with sort icons on admin/users and admin/runners (#24360)
    • Split lfs size from repository size (#22900)
    • Sync branches into databases (#22743)
    • Disable run user change in installation page (#22499)
    • Add merge files files to GetCommitFileStatus (#20515)
    • Show OpenID Connect and OAuth on signup page (#20242)
  • SECURITY
    • Dont leak private users via extensions (#28023) (#28029)
    • Expanded minimum RSA Keylength to 3072 (#26604)
  • TESTING
    • Add user secrets API integration tests (#27832) (#27852)
    • Add tests for db indexer in indexer_test.go (#27087)
    • Speed up TestEventSourceManagerRun (#26262)
    • Add unit test for user renaming (#26261)
    • Add some Wiki unit tests (#26260)
    • Improve unit test for caching (#26185)
    • Add unit test for HashAvatar (#25662)
  • TRANSLATION
    • Backport translations to v1.21 (#27899)
    • Fix issues in translation file (#27699) (#27737)
    • Add locale for deleted head branch (#26296)
    • Improve multiple strings in en-US locale (#26213)
    • Fix broken translations for package documantion (#25742)
    • Correct translation wrong format (#25643)
  • BUILD
    • Dockerfile small refactor (#27757) (#27826)
    • Fix build errors on BSD (in BSDMakefile) (#27594) (#27608)
    • Fully replace drone with actions (#27556) (#27575)
    • Enable markdownlint no-duplicate-header (#27500) (#27506)
    • Enable production source maps for index.js, fix CSS sourcemaps (#27291) (#27295)
    • Update snap package (#27021)
    • Bump go to 1.21 (#26608)
    • Bump xgo to go-1.21.x and node to 20 in release-version (#26589)
    • Add template linting via djlint (#25212)
  • DOCS
    • Change default size of issue/pr attachments and repo file (#27946) (#28017)
    • Remove known issue section in Gitea Actions Doc (#27930) (#27938)
    • Remove outdated paragraphs when comparing Gitea Actions to GitHub Actions (#27119)
    • Update brew installation documentation since gitea moved to brew core package (#27070)
    • Actions are no longer experimental, so enable them by default (#27054)
    • Add a documentation note for Windows Service (#26938)
    • Add sparse url in cargo package guide (#26937)
    • Update nginx recommendations (#26924)
    • Update backup instructions to align with archive structure (#26902)
    • Expanding documentation in queue.go (#26889)
    • Update info regarding internet connection for build (#26776)
    • Docs: template variables (#26547)
    • Update index doc (#26455)
    • Update zh-cn documentation (#26406)
    • Fix typos and grammer problems for actions documentation (#26328)
    • Update documentation for 1.21 actions (#26317)
    • Doc update swagger doc for POST /orgs/{org}/teams (#26155)
    • Doc sync authentication.md to zh-cn (#26117)
    • Doc guide the user to create the appropriate level runner (#26091)
    • Make organization redirect warning more clear (#26077)
    • Update blog links (#25843)
    • Fix default value for LocalURL (#25426)
    • Update from-source.zh-cn.md & from-source.en-us.md - Cross Compile Using Zig (#25194)
  • MISC
    • Replace deprecated elliptic.Marshal (#26800)
    • Add elapsed time on debug for slow git commands (#25642)

Thanks to our Contributors

@6543 @CaiCandong @Duke1715 @ExplodingDragon @GeorgDangl @GiteaBot @HesterG @Infinoid @JakobDev @Juneezee @KN4CK3R @KazzmanK @LAX18 @Makonike @Maks1mS @MomentQYC @POPSuL @TimberBro @Track3 @Zettat123 @a1012112796 @appleboy @asdil12 @cassiozareck @chenrui333 @cl-bvl @corytodd @delvh @denyskon @derelm @devioa @earl-warren @editfund-founder @eeyrjmr @elzapp @eyedeekay @felixvictor @fuxiaohei @harryzcy @hazycora @hickford @hiifong @jackHay22 @jasugun @jeremiepozzigithub @jladbrook @jolheiser @js6pak @jtran @kdumontnu @kerwin612 @lafriks @leavesster @linusg @lng2020 @lonix1 @lunny @luwol03 @mainboarder @merlleu @minijaws @mrsdizzie @mxplusb @n0toose @nekrondev @nephatrine @nikohoffren @peeley @peterverraedt @pmig @puni9869 @saegl5 @sebastian-sauer @sgabenov @sh7dm @shyim @sillyguodong @silverwind @sonjek @svenseeberg @techknowlogick @thezzisu @thigg @thomas-mc-work @tomaswarynyca @uvulpos @vitalif @wolfogre @wxiaoguang @yardenshoham @yp05327

下载链接