Commit Graph

19781 Commits

Author SHA1 Message Date
Lunny Xiao
9671f2e7a7
revert unrelated change 2025-07-26 11:55:43 -07:00
Lunny Xiao
4ff5c97e2e Merge branch 'main' into lunny/fix_bug_delete_code_comment 2025-07-26 11:13:12 -07:00
Bart van der Braak
82c9589faa
Only hide dropzone when no files have been uploaded (#35156)
Instead of always hiding the dropzone when it's not active:
- hide it when when there are no uploaded files and it becomes inactive 
- don't hide it when there are uploaded files

Fixes #35125

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-26 11:06:21 -07:00
Lunny Xiao
54fe47fbca
Change some columns from text to longtext and fix column wrong type caused by xorm (#35141)
This PR upgrade xorm to v1.3.10 which fixed a bug when both `longtext
json` tags in the struct field. The `longtext` will be ignored and
`json` will be considered as `text`.

A migration has been introduced to modify the column directly to
longtext. And another two columns should also be migrated from text to
longtext.

All these changes only affect mysql database because for other databases
Gitea supported, text is the same as longtext.

Fix #27244 
Fix #34764 
Fix #35042
2025-07-23 22:24:44 -07:00
GiteaBot
c72174a43d [skip ci] Updated translations via Crowdin 2025-07-24 00:40:59 +00:00
AlexMaryW
c10c4203ee
Add owner and parent fields clarification to docs (#35023)
Issue: https://github.com/go-gitea/gitea/issues/9637

Changes introduced: I have clarified the problematic terms (owner and
parent) in all affected endpoints.

The changes were made to relevant:

- HTTP endpoint parameters' descriptions
- response/request models' fields

This MR is big, but most changes are the same. If you'd like me to break
this MR into several smaller ones, let me know :)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-23 06:44:34 +00:00
Dominik Rubo
43831ff0ca
Improve language in en-US locale strings (#35124)
#35015

For easier review, the changes are split into separate commits by broad
category. The extended commit messages include brief summaries. I am
happy to make a separate pull request for each category if preferred.

While many of the changes are corrections, some are influenced by style.
In those cases I have aimed mainly for consistency throughout the file,
picking a style variant that I think is widely accepted and aids
clarity.

There are additional things that could be improved that I have not
touched. For example, contractions (phrasing variants such as "doesn't"
vs. "does not") could be made more consistent. Not sure how colloquial
or formal the maintainers would like the UI to be.

---------

Signed-off-by: Dominik Rubo <dr-1@posteo.net>
Co-authored-by: Dominik Rubo <dominik.rubo@posteo.net>
Co-authored-by: delvh <dev.lh@web.de>
2025-07-22 23:17:06 -07:00
silverwind
245add3085
Remove unused poetry.toml file (#35143)
Forgot to remove this in https://github.com/go-gitea/gitea/pull/35084.
2025-07-23 01:22:20 +00:00
Lunny Xiao
65cd3f5309
Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
GiteaBot
f201dde945 [skip ci] Updated translations via Crowdin 2025-07-22 00:39:36 +00:00
Lunny Xiao
9b164e0724
Fix comment 2025-07-21 08:44:21 -07:00
Lunny Xiao
a15917611c
Some improvements 2025-07-20 22:52:34 -07:00
Lunny Xiao
3b2e424820
Use a standalone table to store deletion files so that all kinds of storage could reuse the deletion infrastructure 2025-07-20 22:02:54 -07:00
Lunny Xiao
8f8dd8cae1
Fix test 2025-07-20 17:36:19 -07:00
Lunny Xiao
ccb8c9b770 Merge branch 'main' into lunny/fix_bug_delete_code_comment 2025-07-20 17:32:53 -07:00
Lunny Xiao
e50adecc7b
Fix 2025-07-20 17:32:41 -07:00
Lunny Xiao
7134ad9051
Fix test 2025-07-20 16:47:10 -07:00
Lunny Xiao
fa5fc02cb8
Revert unnecessary changes 2025-07-20 14:50:04 -07:00
Lunny Xiao
df456dd7f8
fix lint 2025-07-20 13:38:24 -07:00
Lunny Xiao
9faf99d8ed
Fix bug 2025-07-20 13:14:29 -07:00
Lunny Xiao
f24dc5e658
revert unnecessary change in this pull request 2025-07-20 12:44:51 -07:00
Lunny Xiao
70d2960677
revert unnecessary change in this pull request 2025-07-20 12:43:44 -07:00
Lunny Xiao
0c9f37dbde
revert unnecessary change in this pull request 2025-07-20 12:39:24 -07:00
Lunny Xiao
9c251fdb56
Fix some problems 2025-07-20 12:17:04 -07:00
wxiaoguang
86aafea3fb
Fix session gob (#35128)
Fix #35126
2025-07-20 01:49:36 +00:00
Lunny Xiao
551f8ba25e
Fix test 2025-07-19 14:05:55 -07:00
Lunny Xiao
0295c7bf01
improve the comment 2025-07-19 11:13:25 -07:00
Lunny Xiao
c89d939b54
Fix test 2025-07-19 11:00:56 -07:00
Lunny Xiao
804022bdb5
Fix test 2025-07-18 21:13:10 -07:00
Lunny Xiao
0379d4b971
Fix test 2025-07-18 19:07:21 -07:00
Lunny Xiao
27c83deb6d
improvements 2025-07-18 18:16:14 -07:00
Lunny Xiao
e00c7d32af
improvements 2025-07-18 18:12:42 -07:00
Lunny Xiao
488e6581af
improvements 2025-07-18 18:09:03 -07:00
Lunny Xiao
b89b277218
improvements 2025-07-18 17:56:51 -07:00
Lunny Xiao
97556a88de Improve attachments deletions 2025-07-18 17:44:27 -07:00
Lunny Xiao
f868da0afa Rename 2025-07-18 17:44:26 -07:00
Lunny Xiao
85e6668c25 Rename the function for post database transaction 2025-07-18 17:44:26 -07:00
Lunny Xiao
cdb6147f38 revert unnecessary change 2025-07-18 17:44:26 -07:00
Lunny Xiao
6b66c30fc3 revert unnecessary change 2025-07-18 17:44:26 -07:00
Lunny Xiao
63173a6b31 fix test 2025-07-18 17:44:19 -07:00
Lunny Xiao
17424891fa improvements 2025-07-18 17:44:18 -07:00
Lunny Xiao
8f97a2d0b1 improvements 2025-07-18 17:44:18 -07:00
Lunny Xiao
3abb7571a8 improvements 2025-07-18 17:44:18 -07:00
Lunny Xiao
2d423dc78c Fix bug 2025-07-18 17:44:17 -07:00
Lunny Xiao
5cc338897c Remove AfterDelete function in comment 2025-07-18 17:44:17 -07:00
Lunny Xiao
012b4e504f improve the test 2025-07-18 17:44:16 -07:00
Lunny Xiao
000d87efe1 Fix deleting code comment bug 2025-07-18 17:44:15 -07:00
silverwind
3531e9dbfd
Replace setup-python with setup-uv (#35116) 2025-07-18 14:02:57 +00:00
wxiaoguang
c4f5b2b531
Don't use full-file highlight when there is a git diff textconv (#35114)
Fix #35106
2025-07-18 19:16:27 +08:00
wxiaoguang
8f91bfe9d8
Fix submodule parsing when the gitmodules is missing (#35109)
Follow up #35096, fix #35095, fix #35115 and add more tests

The old code used some fragile behaviors which depend on the "nil"
receiver. This PR should be a complete fix for more edge cases.
2025-07-18 09:42:44 +00:00