Commit Graph

1771 Commits

Author SHA1 Message Date
hwy
5eecba8c08 修复获取IDE终端URL时的token名称,改为使用terminal_login_token (#15)
Some checks failed
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Failing after 7m56s
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Failing after 32s
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Successful in 10m35s
DevStar E2E Test / e2e-test (push) Failing after 11m4s
access_token是表名,terminal_login_token是字段名
由于错误使用access_toke作为字段名,导致每次调用Get_IDE_TerminalURL都会重新生成token
旧的token失效,无法连接webtermnial
原先只有只有第一次渲染页面调用了Get_IDE_TerminalURL,所以没有产生问题

Reviewed-on: #15
Co-authored-by: hwy <1093970372@qq.com>
Co-committed-by: hwy <1093970372@qq.com>
2025-12-13 04:12:49 +00:00
761ae00b02 前后端代码重构,用户/组织复用前后端代码 (#10)
Some checks failed
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Successful in 14m51s
DevStar E2E Test / e2e-test (push) Failing after 31s
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Failing after 1s
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Failing after 9m36s
Co-authored-by: zhufengliang <1227579896@qq.com>
Co-authored-by: 孟宁 <mengning@mengning.com.cn>
Reviewed-on: #10
Co-authored-by: 朱峰良24 <zhufengliang@mail.ustc.edu.cn>
Co-committed-by: 朱峰良24 <zhufengliang@mail.ustc.edu.cn>
2025-12-11 01:59:06 +00:00
hwy
7ff33122ab 修复devcontainer的手工刷新 (#8)
Some checks failed
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Failing after 4m55s
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Failing after 1m30s
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Successful in 8m40s
<!-- start tips -->
Please check the following:
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md .
3. For documentations contribution, please go to https://gitea.com/gitea/docs
4. Describe what your pull request does and which issue you're targeting (if any).
5. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
6. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
7. Delete all these tips before posting.
<!-- end tips -->

Reviewed-on: #8
Co-authored-by: hwy <1093970372@qq.com>
Co-committed-by: hwy <1093970372@qq.com>
2025-12-09 01:52:40 +00:00
7602ff152b Merge pull request '用户存储用量统计' (#2) from feature/user_quota into main
Some checks failed
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Has been cancelled
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Has been cancelled
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Has been cancelled
Reviewed-on: #2
2025-12-08 15:35:05 +00:00
zhufengliang
a2549af773 用户/组织存储用量统计
Some checks failed
DevStar Studio Auto Test Pipeline / unit-frontend-test (pull_request) Has been cancelled
DevStar Studio Auto Test Pipeline / unit-backend-test (pull_request) Has been cancelled
DevStar E2E Test / e2e-test (pull_request) Has been cancelled
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (pull_request) Has been cancelled
2025-12-08 23:03:02 +08:00
12bb1c9a66 解决forwardPorts验证bug并且通过点击open with vscode传递forwardPorts端口
Some checks failed
DevStar Studio Auto Test Pipeline / unit-frontend-test (pull_request) Has been cancelled
DevStar Studio Auto Test Pipeline / unit-backend-test (pull_request) Has been cancelled
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (pull_request) Has been cancelled
DevStar E2E Test / e2e-test (pull_request) Has been cancelled
2025-12-07 02:19:27 +00:00
zzy
ea22437ae8 优先使用本平台仓库里面的actions,来加速actions的拉取 (#4)
Some checks failed
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Has been cancelled
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Has been cancelled
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Failing after 10m16s
修改内容:
在发送给act_runner之前,拦截工作流字符串,检查其中的像这样 uses:actions/checkout@v4这种短链接,通过查询数据库检查平台是否含有相应的库,以加速actions仓库的拉取
特性:
现在的版本只是使用本地平台的仓库进行加速,是信任上面传来的gitea_default_actions_url,其是由app.ini的DEFAULT_ACTIONS_URL字段决定的
也就是说即使工作流中的某些短链接actions没有被加速 , 而且gitea_default_actions_url的仓库也没有,就会报错。

这里只能用如下方式配置默认DEFAULT_ACTIONS_URL , 没有配置的话默认是github
```
[actions]
DEFAULT_ACTIONS_URL = self or github
```

而本提交可以智能判断本平台上是否已有该action,没有的话才使用默认URL,这样在缺省配置的情况下智能优先选择本平台action

Reviewed-on: #4
Co-authored-by: zzy <1787223498@qq.com>
Co-committed-by: zzy <1787223498@qq.com>
2025-12-04 06:25:00 +00:00
8cc8e911e8 修复在集群上不能创建runner的bug (#3)
Some checks failed
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Successful in 18m52s
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Failing after 1m33s
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Failing after 1m31s
<!-- start tips -->
Please check the following:
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md .
3. For documentations contribution, please go to https://gitea.com/gitea/docs
4. Describe what your pull request does and which issue you're targeting (if any).
5. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
6. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
7. Delete all these tips before posting.
<!-- end tips -->

Reviewed-on: #3
Co-authored-by: vecmatex <kwtian@mail.ustc.edu.cn>
Co-committed-by: vecmatex <kwtian@mail.ustc.edu.cn>
2025-12-03 01:23:19 +00:00
zhufengliang
85fc3665d4 用户存储用量统计
Some checks failed
DevStar Studio Auto Test Pipeline / unit-frontend-test (pull_request) Failing after 41s
DevStar Studio Auto Test Pipeline / unit-backend-test (pull_request) Failing after 32s
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (pull_request) Failing after 37s
DevStar E2E Test / e2e-test (pull_request) Has been cancelled
2025-12-01 21:11:57 +08:00
zzy
344e17128d fix: 修复 Runner 注册使用错误 URL 的问题 2025-11-30 18:35:11 +08:00
adcddd551e !124 修复公开的仓库在用户未登录状态的500错误
Some checks failed
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Has been cancelled
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Has been cancelled
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Failing after 26s
* 修复公开的仓库在用户未登录状态的500错误
2025-11-27 03:11:12 +00:00
panshuxiao
084ad3a542 Merge branch 'main' into feature/appstore 2025-11-25 15:19:03 +08:00
panshuxiao
1d6ba90c2f k8s客户端获取从kubeconfig迁移到token 2025-11-25 14:24:05 +08:00
panshuxiao
d7798195cb !113 Merge branch 'main' into devcontainer-k8s
Merge pull request !113 from panshuxiao/devcontainer-k8s
2025-11-25 04:30:27 +00:00
孟宁
c4bffdeaf7 测试了runner相关功能,并将安装页面的相关信息进行了定制更新 2025-11-20 16:57:50 +08:00
panshuxiao
f08a0d02c3 添加了Copyright说明 2025-11-19 21:40:10 +08:00
840c600073 修复安装界面选择默认是否运行创建工作流运行器的bug 2025-11-19 16:40:26 +08:00
panshuxiao
7927e572d2 Merge branch 'main' into feature/appstore 2025-11-18 20:45:47 +08:00
panshuxiao
a37025f3bf 完成应用商店应用对证书的支持 2025-11-18 19:25:54 +08:00
5891f4f23a fixbug 2025-11-14 10:58:40 +08:00
fbb30e8daf fixbug 2025-11-12 21:33:10 +08:00
7be67bf669 fixbug 2025-11-12 21:23:50 +08:00
597f156cee fixbug 2025-11-12 13:25:17 +08:00
ba0b6c1b7a fixbug 2025-11-11 11:12:50 +08:00
45d30fd01d 新增注册runner权限管理 2025-11-11 10:17:35 +08:00
28adf2541d !110 完善了devcontainer相关功能细节
All checks were successful
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Successful in 34m23s
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Successful in 19m32s
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Successful in 18m42s
完善了devcontainer相关功能细节 见https://gitee.com/devstar/devstar/issues/ID2H25
2025-10-31 07:44:19 +00:00
panshuxiao
53a75ad541 添加了devcontainer的k8s_agent 2025-10-30 19:38:23 +08:00
9071a754f4 !108 给devcontainer增加变量和脚本功能
Some checks failed
DevStar Studio Auto Test Pipeline / unit-frontend-test (push) Has been cancelled
DevStar Studio Auto Test Pipeline / unit-backend-test (push) Has been cancelled
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Failing after 21s
给devcontainer增加变量和脚本功能

- 能从devstar.cn上获取预定义的DEVSTAR_开头的变量或脚本
- 添加到脚本管理中的变量名,在devcontainer启动时会自动执行,然后才执行devcontainer.json中用户自定义脚本,其中可以调用设置的变量或脚本
- 变量或脚本在用户设置、项目设置和后台管理中都可以添加,如有重名优先级为:用户设置 > 项目设置 > 后台管理
2025-10-18 08:53:50 +00:00
95db97af94 !99 add devcontainer feature
* VSCode一类IDE的DevStar插件相关的功能或地址的命名以vscode为前缀替代原来的devstar前缀,命名上的指向性更明确
* add devcontainer feature
2025-09-20 01:56:37 +00:00
panshuxiao
c0e4044dab 将应用商店的用户实例保存到数据库 2025-09-07 10:34:06 +08:00
panshuxiao
d86772249c 修改了应用商店的详情页面 2025-09-02 11:45:50 +08:00
ilovcaitlyn
4f60c1578d !105 add ci/cd autotest and wechat test
Some checks failed
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Failing after 25m10s
1.微信功能相关测试
2.修复make test错误
  * `objectformat`扩展是Git在2.42版本左右引入的,用于支持SHA256哈希,因此需要git --version >1.42

3.前端,后端单元测试CI流水线
2025-08-31 07:11:20 +00:00
panshuxiao
85591ff46d Merge branch 'main' into feature/appstore
把modules/appstore移到service/appstore
2025-08-16 16:48:50 +08:00
b9ff967366 !94 实现devstar可以在对应配置的k8s上添加和删除runner
* 修复runners.go中关于ctx的编译报错
* Merge branch 'main' of gitee.com:devstar/devstar into feature/runner
* 实现devstar可以在对应配置的k8s上添加和删除runner
* 实现了修改runner的标签的功能
* 单机部署环境下实现Web界面上启动和删除runner
* 启动时能够自动启动act_runner
2025-08-10 03:29:09 +00:00
孟宁
68512a67c8 !93 add DevStar模板 in /repo/create
Some checks failed
DevStar Studio CI Pipeline / build-and-push-x86-64-docker-image (push) Failing after 1h29m4s
* 减少不必要更改,恢复GenerateGitContent
* 清理一些不必要的格式差异
* add DevStar模板 in /repo/create
2025-08-09 07:30:07 +00:00
孟宁
e1cd3f9ba6 porting wechat login from dev branch 2025-07-28 16:05:40 +08:00
孟宁
3a44e5cd8d !88 合并定制化logo、备案号和构建调试安装脚本
Some checks failed
DevStar Studio CI Pipeline / build-and-push-x86-64-docker-image (push) Failing after 18m53s
* 开发环境配置方法、CI脚本、安装脚本
* 备案号可配置BEIAN_NUMBER = 苏ICP备888888888号-1 in [server] of app.ini
* custom logo feature in -/admin/config/settings
2025-07-24 07:58:02 +00:00
wxiaoguang
6599efb3b1 Fix user's sign email check (#35045)
Fix #21692
2025-07-12 15:13:01 +08:00
Lunny Xiao
1352080ef7 Fix incorrect comment diff hunk parsing, fix github asset ID nil panic (#35046)
* Fix missing the first char when parsing diff hunk header
* Fix #35040
* Fix #35049

----

Introduced in
https://github.com/go-gitea/gitea/pull/12047/files#diff-de48c2f70e24ff5603180acf8b5ce9d0356ede8a45bfbf2a485707282ace6d6aR268

Before:

<img width="487" height="167" alt="image"
src="https://github.com/user-attachments/assets/17524c76-a296-4b4b-a4f9-c5150c41bae5"
/>

After:

<img width="749" height="144" alt="image"
src="https://github.com/user-attachments/assets/bcb12c76-c1ae-40f1-81b7-183d15f891db"
/>

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-11 15:18:41 -07:00
Lunny Xiao
7a15334656 Fix git commit committer parsing and add some tests (#35007)
* Fix #34991
* Fix #34882

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-10 19:03:36 +00:00
wxiaoguang
a5a3d9b101 Refactor OpenIDConnect to support SSH/FullName sync (#34978)
* Fix #26585
* Fix #28327
* Fix #34932
2025-07-10 18:35:59 +00:00
wxiaoguang
6ab6d4e17f Support base64-encoded agit push options (#35037) 2025-07-10 18:08:40 +00:00
Scion
af0196c145 Fix ListWorkflowRuns OpenAPI response model. (#35026)
Change the OpenAPI response of `ListWorkflowRuns` to `WorkflowRunsList`
like it is supposed to be.

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-10 05:58:07 +00:00
wxiaoguang
55f350542c Refactor mail template and support preview (#34990) 2025-07-09 10:25:25 +08:00
wxiaoguang
4e10adc871 Start automerge check again after the conflict check and the schedule (#34989)
Fix #34988

Co-authored-by: posativ
2025-07-08 14:51:16 +00:00
silverwind
95a935aca0 Enable gocritic equalFold and fix issues (#34952)
Continuation of https://github.com/go-gitea/gitea/pull/34678.

---------

Signed-off-by: silverwind <me@silverwind.io>
2025-07-06 16:53:34 +00:00
wxiaoguang
e0745eb14d Refactor webhook and fix feishu/lark secret (#34961) 2025-07-06 06:04:08 +00:00
wxiaoguang
3533263ced Improve OAuth2 provider (correct Issuer, respect ENABLED) (#34966)
1. Make "Issuer" strictly follow the spec (see comment)
2. Make "/.well-known/openid-configuration" respond 404 if the OAuth2
provider is not enabled.

Then by the way, remove the JSEscape template helper because it is not
needed any more.
2025-07-06 13:36:45 +08:00
Dan Čermák
58759aeca0 Mark old reviews as stale on agit pr updates (#34933)
Fixes: https://github.com/go-gitea/gitea/issues/34134
2025-07-05 11:30:06 -07:00
wxiaoguang
70685a9489 Fix git graph page (#34948)
fix #34946
2025-07-04 15:41:19 +00:00