Commit Graph
19255 Commits
Author SHA1 Message Date
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
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
metiftikciandGitHub 6e73ecf667 update go version for devcontainers (#33923) 2025-03-17 19:25:27 +00:00
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
wxiaoguangandGitHub 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
wxiaoguangandGitHub fdaf1cca65 Defer captcha script loading (#33919)
Fix #33899
2025-03-17 15:21:04 +00:00
Kerwin BryantandGitHub e1feb438a4 Fix file tree issues (#33916) 2025-03-17 14:55:15 +00:00
wxiaoguangandGitHub 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
silverwindandGitHub 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 XiaoandGitHub 7fd44a85ca Move hooks function to gitrepo and reduce expose repopath (#33890)
Extract from #28966 
Follow #33874
2025-03-16 16:12:55 +00:00
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
silverwindandGitHub 01c8f092a0 Simplify secure context check (#33906)
As discussed in
https://github.com/go-gitea/gitea/pull/33820/files#r1997532169.
2025-03-16 19:05:26 +08:00
silverwindandGitHub 52663113d4 Update JS and PY deps, misc tweaks (#33903)
- Update all updateable dependencies
- Add a few more unupgradable ones to updates blocklist
- Adapt to breaking changes
- Update to typescript 5.8, enable `erasableSyntaxOnly` which
necessitated a change because of forbidden syntax
- Misc cleanups
- Tested htmx, easymde, swagger, chart.js
2025-03-16 10:04:18 +01:00
Lunny XiaoandGitHub c88e71c1d2 Refactor functions to reduce repopath expose (#33892) 2025-03-16 03:14:56 +00:00
Lunny XiaoandGitHub 0056fdb942 Move git references checking to gitrepo packages to reduce expose of repository path (#33891) 2025-03-15 19:48:59 -07:00
GiteaBot f11ac6bf3c [skip ci] Updated translations via Crowdin 2025-03-16 00:36:54 +00:00
Lunny XiaoandGitHub 10513df1bf Add missing translation (#33900) 2025-03-15 18:55:58 +00:00
30b13942f0 Give organisation members access to organisation feeds (#33508)
Currently the organisation feed only includes items for public
repositories (for non-administrators). This pull requests adds
notifications from private repositories to the organisation-feed (for
accounts that have access to the organisation).

Feed-items only get shown for repositories where the users team(s)
should have access to, this filtering seems to get done by some existing
code.

Needs some tests, but am unsure where/how to add them.

Before:

![image](https://github.com/user-attachments/assets/8b63f430-227a-4b19-ad1a-f6f5175de301)

After:

![image](https://github.com/user-attachments/assets/b439ce0e-4946-421c-a399-421806c7a6d8)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-15 17:49:06 +00:00
Lunny XiaoandGitHub 3e2e7bf4e5 Add lock for a repository pull mirror (#33876)
Fix #33647

This PR add a global lock for repository pulling mirror.
2025-03-15 10:23:18 -07:00
ChristopherHXandGitHub 7e8168f555 Fix cannot delete runners via the modal dialog (#33895)
delete-button and show-modal class are conflicting

Closes #33894
2025-03-15 09:45:37 -07:00
92f997ce6b Add file tree to file view page (#32721)
Resolve #29328

This pull request introduces a file tree on the left side when reviewing
files of a repository.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-15 16:26:49 +08:00
GiteaBot 926f0a19be [skip ci] Updated translations via Crowdin 2025-03-15 00:33:24 +00:00
Christopher Homberger edb24592fc wip event 2025-03-14 21:07:36 +01:00
ChristopherHXandGitHub 65e2411394 Feature: Ephemeral action runners (#33570)
* This includes a runner mock test for hardend PickTask behavior like
described in my proposal
* Runner register ephemeral flag introduced in
https://gitea.com/gitea/act_runner/pulls/649

Closes #32461
2025-03-14 12:27:24 -07:00
Lunny XiaoandGitHub 55cc649d3d Add abstraction layer to delete repository from disk (#33879)
Extract from #28966 
Follow #33874
2025-03-14 18:38:55 +00:00
wxiaoguangandGitHub a0e0a30d23 Make SearchMode have default value and add comments (#33863)
* Make `SearchMode` have default value if it is empty
* Add some comments for the "match" queries
* Fix a copy-paste mistake in `buildMatchQuery` (`db.go`)
* Add missing `q.Analyzer = repoIndexerAnalyzer`, it is in old code,
although I do not see real difference ....
2025-03-14 18:06:31 +00:00
wxiaoguangandGitHub 45c4139134 Fix maven panic when no package exists (#33888)
Fix #33886

Restore the old logic from #16510, which was incorrectly removed by
#33678
2025-03-14 10:35:40 -07:00
wxiaoguangandGitHub 0dfa94edc8 Add old svg class name to git entry icon (#33884)
Fix https://github.com/go-gitea/gitea/pull/33837#discussion_r1995521288
2025-03-14 23:11:29 +08:00
wxiaoguangandGitHub cb6b33c9cd Ignore trivial errors when updating push data (#33864)
Fix #23213
2025-03-14 08:36:39 +00:00
b094f9b75d Improve repo commit view (#33877)
Fix #24623

Major changes:

1. Redirect `/owner/repo/blob/*` requests to `/owner/repo/src/commit/*`
(like GitHub)
2. Add a "view file diff" link (see screenshot below)
3. Refactor "AssertHTMLElement" to generic, now we can accurately assert
existence or number.
4. Add more tests

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: delvh <dev.lh@web.de>
2025-03-14 07:45:11 +00:00
Lunny XiaoandGitHub 9c673d066c Add abstraction layer to check if the repository exists on disk (#33874)
Extract from #28966 

This PR uses `gitrepo.IsRepositoryExist` instead of `util.IsExist` to
detect whether the repository exist in disk. This will move `RepoPath`
detail behind of package `gitrepo` to make it easier to do possible
changes where storing the repositories.

No code change
2025-03-14 03:00:56 +00:00
1e7248047c Pull request updates will also trigger code owners review requests (#33744)
Fix #33490 

It will only read the changed file on the pushed commits but not all the
files of this PR.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-03-13 19:36:14 -07:00
GiteaBot de2d472d90 [skip ci] Updated translations via Crowdin 2025-03-14 00:33:05 +00:00