Commit Graph

4929 Commits

Author SHA1 Message Date
1b0a733b32 修复后端测试失败 (#12)
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
DevStar E2E Test / e2e-test (push) Has been cancelled
<!-- 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 -->

Co-authored-by: panshuxiao <panshuxiao@mail.ustc.edu.cn>
Reviewed-on: #12
Co-authored-by: 潘舒啸23 <chitu438@163.com>
Co-committed-by: 潘舒啸23 <chitu438@163.com>
2025-12-12 05:40:08 +00:00
panshuxiao
64f019590f 删除多余的错误测试 2025-11-26 14:39:23 +08: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
panshuxiao
f08a0d02c3 添加了Copyright说明 2025-11-19 21:40:10 +08:00
panshuxiao
7927e572d2 Merge branch 'main' into feature/appstore 2025-11-18 20:45:47 +08:00
panshuxiao
a38f403ee9 修复旧devcontainer在k8s.go对setting.devcontainer的依赖 2025-11-18 20:38:43 +08:00
panshuxiao
a37025f3bf 完成应用商店应用对证书的支持 2025-11-18 19:25:54 +08:00
597f156cee fixbug 2025-11-12 13:25:17 +08:00
45d30fd01d 新增注册runner权限管理 2025-11-11 10:17:35 +08:00
panshuxiao
ba7f19695a 修复包引用的问题 2025-11-03 15:42:57 +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
95db97af94 !99 add devcontainer feature
* VSCode一类IDE的DevStar插件相关的功能或地址的命名以vscode为前缀替代原来的devstar前缀,命名上的指向性更明确
* add devcontainer feature
2025-09-20 01:56:37 +00:00
panshuxiao
c0fbbfb618 将istio资源的监控加入application-controller 2025-09-16 17:19:24 +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
c672ed12cf 修改了应用商店安装位置的选项
修复了应用商店的用户登录
2025-08-26 16:55:49 +08:00
panshuxiao
85591ff46d Merge branch 'main' into feature/appstore
把modules/appstore移到service/appstore
2025-08-16 16:48:50 +08:00
panshuxiao
9327789bdc 添加了应用商店的基础功能 2025-08-15 18:07:41 +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
孟宁
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
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
b46623f6a5 Fix updating user visibility (#35036)
Fix #35030

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-10 16:17:28 -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
f35dcfd489 Make submodule link work with relative path (#35034)
Fix #35033
2025-07-10 16:38:42 +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
211135b4bb Fix various problems (#35012)
* Fix #35011
* Fix incorrect log message for "Protocol"
* Remove unnecessary styles, fix "comment-header" wrap, fix label height
2025-07-09 16:46:51 +00:00
wxiaoguang
55f350542c Refactor mail template and support preview (#34990) 2025-07-09 10:25:25 +08:00
Scion
f88800d545 Improve NuGet API Parity (#21291) (#34940)
Fixes #21291, allowing icons and other missing attributes to appear for
NuGet packages from inside Visual Studio like they do with GitHub Nuget
packages.

Adds additional NuGet package information, particularly `IconURL`, to
bring the Gitea NuGet API more in-line with GitHub's NuGet API.

ref: https://learn.microsoft.com/en-us/nuget/api/search-query-service-resource
2025-07-07 10:43:58 +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
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
wxiaoguang
6033c67a1a Refactor some trivial problems (#34959)
1. make our "route group pattern match" also update chi's RoutePattern
2. fix incorrect "NotFound" call in conda package
3. make ".flex-item .flex-item-main" has a general gap, then no need to
use `tw` tricks
4. improve the "test webhook" UI
2025-07-05 23:19:33 +08:00
wxiaoguang
d6d643fe86 Fix http auth header parsing (#34936)
Using `strings.EqualFold` is wrong in many cases.
2025-07-03 03:02:38 +00:00
RickyMa
6455c8202b Support getting last commit message using contents-ext API (#34904)
Fix #34870
Fix #34929

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-03 09:45:42 +08:00
delvh
8dbf13b1cb Follow file symlinks in the UI to their target (#28835)
Symlinks are followed when you click on a link next to an entry, either
until a file has been found or until we know that the link is dead.
When the link cannot be accessed, we fall back to the current behavior
of showing the document containing the target.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-01 06:55:36 +08:00
Kerwin Bryant
176962c03e Add support for 3D/CAD file formats preview (#34794)
Fix #34775 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-30 16:12:25 +08:00
AlexMaryW
f74a13610d Add a login/login-name/username disambiguation to affected endpoint parameters and response/request models (#34901)
Issue: [link](https://github.com/go-gitea/gitea/issues/9637)

Changes introduced: I have clarified the problematic terms (`login`,
`login_name`, and `username`) in all affected endpoints.

The changes were made to relevant:
- HTTP endpoint parameters' descriptions 
- response/request models' fields
2025-06-29 21:17:45 -07:00
silverwind
1e50cec0b3 Improve labels-list rendering (#34846)
Make labels list use consistent gap

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-27 23:12:25 +08:00
TheFox0x7
aa9d86745a enforce explanation for necessary nolints and fix bugs (#34883)
Follows up https://github.com/go-gitea/gitea/pull/34851

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-27 21:48:03 +08:00
TheFox0x7
eb36a4554e enforce nolint scope (#34851)
enable nolintlint scope requirement
add comments to new directives so it's more obvious why they are in
place

---

I can also toggle the mandatory comments on if that's something of
interest.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2025-06-27 07:59:55 +02:00
Lunny Xiao
0771a79bf0 Use standalone function to update repository cols (#34811)
Extract `UpdateRepository`
Follow up #34762

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-26 17:23:21 +00:00
badhezi
c67a8397ff Add issue delete notifier (#34592)
Fixes https://github.com/go-gitea/gitea/issues/34591

A reference regarding the deletion of issue webhooks on GitHub:
https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=deleted#issues
2025-06-25 18:53:02 +00:00
wxiaoguang
75aa23a665 Refactor "change file" API (#34855)
Follow up the "editor" refactor, use the same approach to simplify code,
and fix some docs & comments

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
2025-06-25 11:25:20 -07:00
wxiaoguang
dbd9c69909 Refactor repo contents API and add "contents-ext" API (#34822)
See the updated swagger document for details.
2025-06-25 02:34:21 +00:00
wxiaoguang
22a84a72cd Fix SSH LFS timeout (#34838)
Fix #34834
2025-06-24 15:49:31 +00:00
wxiaoguang
327048c106 Refactor template helper (#34819)
FIx abuses and remove unused code

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2025-06-24 01:27:35 +08:00