Commit Graph

19765 Commits

Author SHA1 Message Date
Zettat123
2481e83e45 fix migration 2025-07-24 22:49:56 -06:00
Zettat123
4ba788d2da
Merge branch 'main' into support-actions-concurrency
Signed-off-by: Zettat123 <zettat123@gmail.com>
2025-07-24 22:42:24 -06:00
Zettat123
5e2059ae1f rename migration 2025-07-24 22:41:53 -06:00
Zettat123
e45ca56dcb improve handling cancellation 2025-07-24 22:30:48 -06: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
Zettat123
dc003e40fc fix lint 2025-07-23 11:56:35 -06:00
Zettat123
ca186724dd modify cancel-in-progress behavior 2025-07-23 11:37:51 -06: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
Zettat123
a4b76b6544 update InsertRun 2025-07-22 14:50:50 -06:00
Zettat123
ea2bc926f5
Merge branch 'main' into support-actions-concurrency
Signed-off-by: Zettat123 <zettat123@gmail.com>
2025-07-22 14:44:47 -06:00
Zettat123
96d6938c80 fix bugs and tests 2025-07-22 13:40:07 -06:00
Lunny Xiao
65cd3f5309
Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
Zettat123
63eaf15bd2 modify cancel-in-progress behavior 2025-07-21 22:31:47 -06:00
GiteaBot
f201dde945 [skip ci] Updated translations via Crowdin 2025-07-22 00:39:36 +00:00
Zettat123
c5444e742f improve concurrency index 2025-07-21 11:50:01 -06:00
wxiaoguang
86aafea3fb
Fix session gob (#35128)
Fix #35126
2025-07-20 01:49:36 +00:00
Zettat123
8721155614 add TestCancelConcurrentRun 2025-07-18 21:43:55 -06:00
Zettat123
dc86086a4a call EmitJobsIfReady when cancelling a run 2025-07-18 18:33:22 -06: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
silverwind
13b9659952
Align issue-title-buttons with list-header (#35018)
This change concerns the "Edit" and "New Issue" button on top right.
With this change, switching from the issue list into an issue, the "New
Issue" button will no longer "shift" from the postion on the previous
page.

<img width="1299" alt="Screenshot 2025-07-09 at 17 37 31"
src="https://github.com/user-attachments/assets/1ea55d8a-2abd-49b0-951a-ccc6466a74ee"
/>

<img width="1300" alt="Screenshot 2025-07-09 at 17 37 19"
src="https://github.com/user-attachments/assets/05997d9d-25eb-4786-803d-00c575f78bef"
/>

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-18 09:13:32 +00:00
GiteaBot
3e8aa52446 [skip ci] Updated translations via Crowdin 2025-07-18 00:38:45 +00:00
silverwind
2f138f7a03
Increase gap on latest commit (#35104) 2025-07-17 20:53:03 +00:00
NorthRealm
39f145ae72
Fix job status aggregation logic (#35000)
For a run (assume 2 jobs) that has a failed job and a waiting job, the
run status should be waiting, **as the run is not done yet.**

Related #34823
2025-07-17 21:12:02 +03:00
Lunny Xiao
8ee96039aa
Fix some missed GitHeadRefName when renaming (#35102) 2025-07-17 14:01:11 +00:00
wxiaoguang
de1114b4e8
Fix error logs and improve some comments/messages (#35105) 2025-07-17 19:09:54 +08:00
pvgoran
891a827158
Support Basic Authentication for archive downloads (#35087)
Resolves #35083
2025-07-16 10:53:57 -07:00
silverwind
639ac0026c
Run uv run with --frozen (#35097) 2025-07-16 16:53:35 +00:00
wxiaoguang
f0da1de7e3
Improve package API log handling (#35100)
Simplify code and fix log processing logic
2025-07-16 12:25:49 -04:00
Lunny Xiao
37958e486a
Rename pull request GetGitRefName to GetGitHeadRefName (#35093) 2025-07-16 21:33:33 +08:00
Lunny Xiao
bc78a9a38a
Fix review comment/dimiss comment x reference can be refereced back (#35094)
Fix #15977
2025-07-16 12:36:37 +00:00
wxiaoguang
fc4cb07beb
Fix submodule nil check (#35096)
Fix  #35095
2025-07-16 12:07:38 +00:00
Risu
e1e4815a1c
Redirect to a presigned URL of HEAD for HEAD requests (#35088)
Resolves https://github.com/go-gitea/gitea/issues/35086.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-16 11:22:45 +00:00
NorthRealm
0d00ec7eed
Send email on Workflow Run Success/Failure (#34982)
Closes #23725 

![1](https://github.com/user-attachments/assets/9bfa76ea-8c45-4155-a5d4-dc2f0667faa8)

![2](https://github.com/user-attachments/assets/49be7402-e5d5-486e-a1c2-8d3222540b13)

/claim #23725

---------

Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2025-07-15 18:54:31 -07:00
GiteaBot
cd3fb95d4c [skip ci] Updated translations via Crowdin 2025-07-16 00:38:59 +00:00
silverwind
7413e8583d
Replace poetry with uv (#35084) 2025-07-15 21:19:39 +00:00
techknowlogick
a301079626
nix flake update (#35085) 2025-07-15 20:43:14 +02:00
Christopher Homberger
e6d25e2f75 Merge branch 'main' of https://github.com/go-gitea/gitea into pr/Zettat123/32751 2025-07-15 12:17:13 +02:00
Christopher Homberger
9bba25e72d remove code 2025-07-15 12:16:45 +02:00
silverwind
558005a5ea
Use monospace font in PR command line instructions (#35074)
Before:

<img width="878" height="426" alt="Screenshot 2025-07-14 at 17 17 11"
src="https://github.com/user-attachments/assets/6e27acb9-bad5-4811-b7b1-5418f0ef12eb"
/>

After:

<img width="878" height="429" alt="Screenshot 2025-07-14 at 17 17 22"
src="https://github.com/user-attachments/assets/b0bd2bfa-e4e2-492a-9c08-66607343a459"
/>

Co-authored-by: Giteabot <teabot@gitea.io>
2025-07-15 09:48:14 +02:00
techknowlogick
990ae2bfa8
Add gitignore rules to exclude LLM instruction files (#35076)
Similar to how we have ignores for other tooling (eg vscode & IntelliJ)
we shouldn’t include these files in our repo. If they get added then
we’d have to maintain them and keep them up to date, and personally
there are too many tools to do that for.
2025-07-14 21:26:16 -07:00
GiteaBot
4bad298cd7 [skip ci] Updated translations via Crowdin 2025-07-15 00:40:54 +00:00
wxiaoguang
692c90ea1d
Fix form property assignment edge case (#35073)
"form" has an edge case: its `<input name=action>` element overwrites
the `action` property, we can only set attribute.

This PR makes `assignElementProperty` can handle such case, and add more
tests
2025-07-14 15:20:17 -07:00
wxiaoguang
d08459820d
Improve submodule relative path handling (#35056)
Fix #35054

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2025-07-14 23:28:34 +08:00
Joshdike
b861d86f80
Fixed all grammatical errors in locale_en-US.ini (#35053)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-07-14 13:31:05 +00:00
Gary Wang
ece0ce6854
UI: add hover background to table rows in user and repo admin page (#35072) 2025-07-14 08:29:35 -04:00