0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-22 05:42:16 +02:00

19394 Commits

Author SHA1 Message Date
GiteaBot
08510adefe [skip ci] Updated translations via Crowdin 2025-03-24 00:35:25 +00:00
Lunny Xiao
30ee082e48
Only use prev and next buttons for pagination on user dashboard (#33981)
The pagination on the user dashboard sounds unnecessary, this will
change it to a prev/next buttons. For instances with around `10 million`
records in the action table, this option affects how the user dashboard
is loaded on first visit.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2025-03-23 19:52:43 +00:00
TheFox0x7
189873719b
update jwt and redis packages (#33984) 2025-03-23 10:13:16 -04:00
GiteaBot
0fee4f1392 [skip ci] Updated translations via Crowdin 2025-03-23 00:37:07 +00:00
wxiaoguang
e1bba9c1a2
Improve oauth2 error handling (#33969)
Show the callback error to end users, it should be safe.
Fix #33967
2025-03-22 10:15:45 +08:00
GiteaBot
1c5c13a442 [skip ci] Updated translations via Crowdin 2025-03-22 00:33:13 +00:00
Christopher Homberger
5beb9ae0db ... 2025-03-22 00:25:08 +01:00
Christopher Homberger
500a9bf852 Merge branch 'main' of https://github.com/go-gitea/gitea into workflow-webhook-api 2025-03-21 22:14:24 +01:00
Christopher Homberger
9b3eb4c180 change action of workflow_run to align 2025-03-21 22:13:39 +01:00
Christopher Homberger
4629a68229 fix comment 2025-03-21 22:06:54 +01:00
silverwind
d1a755e5b7
Cover go.mod and go.sum in .editorconfig (#33960)
These files were previously set to use spaces for indendation but they
are supposed to use tabs, so set this in editorconfig.
2025-03-21 20:48:06 +00:00
Christopher Homberger
0940208a00 fix lint 2025-03-21 21:35:22 +01:00
Kai Leonhardt
b5d2e31d6d
Drop timeout for requests made to the internal hook api (#33947)
This change targets https://github.com/go-gitea/gitea/issues/32663
We drop the hardcoded timeout of 60 seconds for requests to the internal
hook api. With this change the timeout is completly removed.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-21 12:52:14 -07:00
charles
b956cee06f
Fix file name could not be searched if the file was not a text file when using the Bleve indexer (#33959)
Close #33828

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-21 19:00:02 +00:00
Christopher Homberger
d404c60b73 Sync run status with db prior webhook delivery
* fixes status glitch of webhook
* e.g. queued for cancel
* e.g. completed for rerun
2025-03-21 19:33:17 +01:00
Christopher Homberger
cdefda13a3 fix comment 2025-03-21 18:54:29 +01:00
Christopher Homberger
bb85519b06 allow workflow_run for recusive depth of 5 2025-03-21 18:48:30 +01:00
Christopher Homberger
956556dc20 update comment 2025-03-21 18:36:56 +01:00
Christopher Homberger
23de934a1e add branches-ignore to workflow_run 2025-03-21 18:34:59 +01:00
Christopher Homberger
c43cb79f95 ... 2025-03-21 16:21:37 +01:00
Christopher Homberger
8fd54f285a update swagger docu 2025-03-21 15:52:46 +01:00
Christopher Homberger
8cfb047983 fix lint 2025-03-21 15:48:00 +01:00
wxiaoguang
279473f467
Fix oauth2 auth and UI (#33961) 2025-03-21 20:50:39 +08:00
Christopher Homberger
b650ca9239 Merge branch 'main' of https://github.com/go-gitea/gitea into workflow-webhook-api 2025-03-21 13:19:13 +01:00
Christopher Homberger
a983d34622 fix workflow_run action event processing 2025-03-21 13:09:38 +01:00
Christopher Homberger
6df185423d .. 2025-03-21 12:27:21 +01:00
Christopher Homberger
5a0f4c9869 add other webhook types 2025-03-21 12:15:06 +01:00
Andreas Svanberg
0da7318cf3
Allow filtering issues by any assignee (#33343)
This is the opposite of the "No assignee" filter, it will match all
issues that have at least one assignee.

Before
![Before
change](https://github.com/user-attachments/assets/4aea194b-9add-4a84-8d6b-61bfd8d9e58e)

After
![After change with any
filter](https://github.com/user-attachments/assets/99f1205d-ba9f-4a0a-a60b-cc1a0c0823fe)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-21 04:25:36 +00:00
Lunny Xiao
a4df01b580
Optimize total count of feed when loading activities in user dashboard. (#33841)
Two SQLs are very slow when `action` table have over 5M records.

```
database duration=1.8881s db.sql="SELECT created_unix DIV 900 * 900 AS timestamp, count(user_id) as contributions FROM `action` WHERE user_id=? AND act_user_id=? AND (created_unix > ?) GROUP BY timestamp ORDER BY timestamp"

database duration=1.5408s db.sql="SELECT count(*) FROM `action` WHERE (user_id = ?) AND (is_deleted = ?)"
```

This will cache the count for the first loading or when the activities
changed.
2025-03-20 10:46:18 -07:00
Lunny Xiao
ef0970506f
Extract code to their own functions for push update (#33944) 2025-03-20 16:57:04 +00:00
Lunny Xiao
4a7ab0abf0
Optimize heatmap query (#33853)
When there are over 5M records on `action` table, the heatmap on
dashboard is very slow as below SQL.
```
database duration=1.8881s db.sql="SELECT created_unix DIV 900 * 900 AS timestamp, count(user_id) as contributions FROM `action` WHERE user_id=? AND act_user_id=? AND (created_unix > ?) GROUP BY timestamp ORDER BY timestamp"
```

This PR add a new index for `action` table with columns `user_id`,
`act_user_id` and `created_unix` so that this query will become about 6
times faster than before.
2025-03-20 09:30:45 -07:00
TheFox0x7
5407382b43
Add cli flags LDAP group configuration (#33933)
Add 7 new flags to ldap subcommands corresponding to UI options

Closes CLI part of https://github.com/go-gitea/gitea/issues/20716
2025-03-19 17:29:37 -07:00
Lunny Xiao
a9e8ac0fe0
Don't create duplicated functions for code repositories and wiki repositories (#33924)
Fix
https://github.com/go-gitea/gitea/pull/33910#pullrequestreview-2688913865

This PR changed the Repositroy interface in `gitrepo` package which
makes it only focus the relative path in the disk and abstract whether
it's a wiki repository or not.
2025-03-19 11:17:19 -07:00
YaFou
e25f860735
Fix "toAbsoluteLocaleDate" test when system locale is not en-US (#33939) 2025-03-19 19:49:05 +08:00
GiteaBot
39fc2e7285 [skip ci] Updated translations via Crowdin 2025-03-19 00:33:36 +00:00
Christopher Homberger
5588588d28 add missing translate keys 2025-03-18 21:58:02 +01:00
Christopher Homberger
6c9dae9ff5 fix api result 2025-03-18 21:07:27 +01:00
Christopher Homberger
22bfd96b9c fix keda scaler compat 2025-03-18 21:03:33 +01:00
Christopher Homberger
875c7745e4 wip test and fixes 2025-03-18 20:26:22 +01:00
Kerwin Bryant
dcbf6c2d13
Optimize Layout Styles of Filelist (#33920)
Align items

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-19 00:59:33 +08:00
GiteaBot
1b4adc0255 [skip ci] Updated translations via Crowdin 2025-03-18 00:33:31 +00:00
Christopher Homberger
ca6bbc6c6d wip 2025-03-17 22:43:23 +01:00
Christopher Homberger
c3f6f13377 prevent endless workflow_run trigger 2025-03-17 22:23:14 +01:00
Christopher Homberger
605ed19b9b invoke workflow_run 2025-03-17 22:15:47 +01:00
Christopher Homberger
171efe55c5 update context with name 2025-03-17 21:59:18 +01:00
Christopher Homberger
da738eaa74 webhook deliver the workflow field 2025-03-17 21:58:29 +01:00
Christopher Homberger
658583a584 Merge branch 'main' of https://github.com/go-gitea/gitea into workflow-webhook-api 2025-03-17 21:49:12 +01:00
Christopher Homberger
ccb9dec6db fixup 2025-03-17 21:20:05 +01:00
Christopher Homberger
fb8a221d7f Move GetActionWorkflow to convert 2025-03-17 20:40:27 +01:00
metiftikci
6e73ecf667
update go version for devcontainers (#33923) 2025-03-17 19:25:27 +00:00