Commit Graph
895 Commits
Author SHA1 Message Date
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ e07ebf71c3 refactor: update tests
use the correct number of arguments when calling certain functions which take a group ID like `RepoPath`
2026-04-02 20:15:25 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2cbb62c302 revert: fixture and test changes
give all existing fixture repos a group id of 0
2026-04-02 20:15:17 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 5014e8f424 revert changes to cases in org_test.go 2026-04-02 20:15:08 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 60df346d4b fix org repo test 2026-04-02 20:15:08 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 0b42d362ea fix more test urls 2026-04-02 20:15:07 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 1e2c410674 fix remaining tests 2026-04-02 20:15:01 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ c2559e033c fix maybeGroupSegment func, run formatter 2026-04-02 20:14:56 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 774e521467 fix integration test api urls 2026-04-02 20:14:51 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 3f4345abf6 update integration test utilities to tage group id as argument 2026-04-02 20:14:23 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 6c08c3d17c fix broken hooks 2026-04-02 20:14:10 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 96de1004e6 update FullName method to show group id if it's non-zero 2026-04-02 20:14:03 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 5abe0c24fa fix optional path segments not working out as planned 2026-04-02 20:13:58 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2a56bfbd64 run formatter 2026-04-02 20:01:15 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 3cb61517a3 feat: add some integration tests 2026-04-02 20:01:14 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 802ca748c8 refactor: update tests
use the correct number of arguments when calling certain functions which take a group ID like `RepoPath`
2026-04-02 20:01:13 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 07d8bd7885 revert: fixture and test changes
give all existing fixture repos a group id of 0
2026-04-02 20:01:13 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 55ca263b89 fix failing tests 2026-04-02 20:01:12 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 09f0464384 revert changes to cases in org_test.go 2026-04-02 20:01:11 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 284b5a4fb5 fix org repo test 2026-04-02 20:01:11 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 9b62f398a9 move test repo 21 to different subgroup 2026-04-02 20:01:11 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 209cfd3de6 fix more test urls 2026-04-02 20:01:11 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 139a681f0e fix org test 2026-04-02 20:01:10 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 60fd4472fd more test fixes 2026-04-02 20:01:10 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 8ca136bb80 fix a couple more tests 2026-04-02 20:01:10 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 5966278c9e fix remaining tests 2026-04-02 20:01:09 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 87c0c10a5d fix remaining tests 2026-04-02 20:01:09 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 6e2f41b5b9 fix more tests 2026-04-02 20:01:08 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 6d723d6d67 fix permissions on some test repos 2026-04-02 20:01:08 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 1ec7d0c045 set hooks to be executable 2026-04-02 20:01:08 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 41c1e208b9 fix more tests 2026-04-02 20:01:07 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 22081f78a0 fix issue dependency tests 2026-04-02 20:01:06 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 8e799366c6 fix helm package test 2026-04-02 20:01:06 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 32e8a6dfd4 fix maybeGroupSegment func, run formatter 2026-04-02 20:01:05 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ d36d700ee8 add missing copyright 2026-04-02 20:01:05 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ ca46f0ebb2 fix integration test api urls 2026-04-02 20:01:05 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 292742e850 add missing repo meta for group unit tests 2026-04-02 20:01:03 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 4951f0c92f move dummy repositories to proper subgroup directories 2026-04-02 20:01:03 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 9e901e50e2 run formatter 2026-04-02 20:01:01 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 6f885a149e update integration test utilities to tage group id as argument 2026-04-02 20:01:00 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 37768f16aa fix broken hooks 2026-04-02 20:00:58 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 7a8db72e63 update FullName method to show group id if it's non-zero 2026-04-02 20:00:57 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 11ab4445a0 fix optional path segments not working out as planned 2026-04-02 20:00:57 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 211e824ae9 update API routes as well 2026-04-02 20:00:56 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 3bbefda427 fix failing tests ?
i think they're caused by group permissions causing more repos to be returned than before
2026-04-02 20:00:54 -04:00
686d10b7f0 Fix a bug when forking a repository in an organization (#36950)
`CanCreateOrgRepo` should be checked before forking a repository into this organization.

---------

Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-02 15:04:43 -07:00
2158cf6e12 Fix NuGet package upload error handling (#37074)
Wrap `zip.NewReader` errors in NuGet `ParsePackageMetaData` and
`ExtractPortablePdb` as `ErrInvalidArgument` so invalid packages return
HTTP 400 (Bad Request) instead of 500 (Internal Server Error).

Add integration test for multipart/form-data NuGet upload path (used by
`dotnet nuget push`) which was previously untested.

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-01 23:54:14 +00:00
35b654c9d6 Add webhook name field to improve webhook identification (#37025) (#37040)
Add an optional Name field to webhooks so users can give them
human-readable labels instead of relying only on URLs. The webhook
overview page now displays names when available, or falls back to the
URL for unnamed webhooks.

Fixes #37025

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-04-01 09:56:20 +08:00
e2e8509239 Replace Monaco with CodeMirror (#36764)
- Replace monaco-editor with CodeMirror 6
- Add `--color-syntax-*` CSS variables for all syntax token types,
shared by CodeMirror, Chroma and EasyMDE
- Consolidate chroma CSS into a single theme-independent file
(`modules/chroma.css`)
- Syntax colors in the code editor now match the code view and
light/dark themes
- Code editor is now 12px instead of 14px font size to match code view
and GitHub
- Use a global style for kbd elements
- When editing existing files, focus will be on codemirror instead of
filename input.
- Keyboard shortcuts are roughtly the same as VSCode
- Add a "Find" button, useful for mobile
- Add context menu similar to Monaco
- Add a command palette (Ctrl/Cmd+Shift+P or F1) or via button
- Add clickable URLs via Ctrl/Cmd+click
- Add e2e test for the code editor
- Remove `window.codeEditors` global
- The main missing Monaco features are hover types and semantic rename
but these were not fully working because monaco operated only on single
files and only for JS/TS/HTML/CSS/JSON.

| | Monaco (main) | CodeMirror (cm) | Delta |
|---|---|---|---|
| **Build time** | 7.8s | 5.3s | **-32%** |
| **JS output** | 25 MB | 14 MB | **-44%** |
| **CSS output** | 1.2 MB | 1012 KB | **-17%** |
| **Total (no maps)** | 23.3 MB | 12.1 MB | **-48%** |

Fixes: #36311
Fixes: #14776
Fixes: #12171

<img width="1333" height="555" alt="image"
src="https://github.com/user-attachments/assets/f0fe3a28-1ed9-4f22-bf25-2b161501d7ce"
/>

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2026-03-31 21:50:45 +00:00
4747dd68bd Update Combine method to treat warnings as failures and adjust tests (#37048)
Treat Commit Status Warnings as errors

> The root problem is that the definition of "warning" are different
across systems.
> 
> * Sometimes, "warning" is treated as "acceptable" (Gitea 1.25)
> * Sometimes, "warning" is mapped from "Result.UNSTABLE", which means
"there are test failures" and it is "failure" in Gitea
> 
> **To avoid breaking existing users, the best choice is to revert the
behavior on Gitea side: treat "warning" as "error".**


https://github.com/go-gitea/gitea/issues/37042#issuecomment-4158231611

fixes https://github.com/go-gitea/gitea/issues/37042

---------

Signed-off-by: Nicolas <bircni@icloud.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-03-31 17:22:18 +00:00
d8da91a7f2 Update golangci-lint to v2.11.4 (#37059)
Update golangci-lint from v2.11.2 to v2.11.4 and fix new `modernize`
lint warnings:

- Use `strings.Builder` instead of string concatenation in loop
(`evaluator.go`)
- Use `atomic.Int64` instead of `int64` with atomic free functions
(`logchecker.go`, `timer_test.go`, `integration_test.go`)

---
This PR was written with the help of Claude Opus 4.6

Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
2026-03-31 16:22:23 +00:00