0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-20 10:28:36 +02:00

19527 Commits

Author SHA1 Message Date
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
John Smith
8f051d598c
Added Description Field for Secrets and Variables (#33526)
Fixes #33484

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-17 19:24:54 +00:00
Christopher Homberger
392baec50b remove dead code 2025-03-17 20:18:12 +01:00
Christopher Homberger
295bf45d5c cleanup and fix webhook type bug 2025-03-17 20:17:42 +01:00
Christopher Homberger
a178e4be7a use cached task instance if available 2025-03-17 20:13:33 +01:00
Christopher Homberger
20f5d6ee95 use ToActionsStatus 2025-03-17 20:08:12 +01:00
Christopher Homberger
988cafe780 remove duplicated code 2025-03-17 20:06:19 +01:00
wxiaoguang
9d7c02f9f7
Try to figure out attribute checker problem (#33901)
For #31600
2025-03-17 11:59:34 -07:00
Christopher Homberger
6701375e67 add routes 2025-03-17 19:59:01 +01:00
Christopher Homberger
e93f9d20d1 update comment 2025-03-17 18:04:44 +01:00
Christopher Homberger
013a0af385 wip 2025-03-17 17:27:25 +01:00
wxiaoguang
fdaf1cca65
Defer captcha script loading (#33919)
Fix #33899
2025-03-17 15:21:04 +00:00
Kerwin Bryant
e1feb438a4
Fix file tree issues (#33916) 2025-03-17 14:55:15 +00:00
wxiaoguang
9d89dfe142
Remove unused or abused styles (#33918)
* `top aligned` => `tw-align-top`
* label list: it was broken, this PR fixes it
* reference link: simplified
* settings/repos: not affected
2025-03-17 22:11:24 +08:00
GiteaBot
9ebae4a2aa [skip ci] Updated translations via Crowdin 2025-03-17 00:35:08 +00:00
silverwind
18bd70054b
Update tool dependencies (#33907)
`gopls` is currently excluded because its [new
analyzers](https://github.com/golang/tools/releases/tag/gopls%2Fv0.18.0)
raise many issue, to be fixed before we can upgrade it. And I think the
modernize fixer still has a number of [unresolved/undiscovered
bugs](https://github.com/golang/go/issues/71847).
2025-03-16 18:34:24 +00:00
Lunny Xiao
7fd44a85ca
Move hooks function to gitrepo and reduce expose repopath (#33890)
Extract from #28966 
Follow #33874
2025-03-16 16:12:55 +00:00
silverwind
1ea5216f4a
Replace text-align classes with tailwind (#33905)
Small refactor to remove these CSS classes in favor of tailwind.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-16 12:08:16 +00:00