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
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
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
cdefda13a3
fix comment
2025-03-21 18:54:29 +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
8cfb047983
fix lint
2025-03-21 15:48:00 +01: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
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

After

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-21 04:25:36 +00:00
Lunny Xiao and GitHub
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
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
ca6bbc6c6d
wip
2025-03-17 22:43:23 +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
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
wxiaoguang and GitHub
9d7c02f9f7
Try to figure out attribute checker problem ( #33901 )
...
For #31600
2025-03-17 11:59:34 -07:00
Christopher Homberger
013a0af385
wip
2025-03-17 17:27:25 +01:00
Lunny Xiao and GitHub
7fd44a85ca
Move hooks function to gitrepo and reduce expose repopath ( #33890 )
...
Extract from #28966
Follow #33874
2025-03-16 16:12:55 +00:00
Lunny Xiao and GitHub
c88e71c1d2
Refactor functions to reduce repopath expose ( #33892 )
2025-03-16 03:14:56 +00:00
Lunny Xiao and GitHub
0056fdb942
Move git references checking to gitrepo packages to reduce expose of repository path ( #33891 )
2025-03-15 19:48:59 -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
Christopher Homberger
edb24592fc
wip event
2025-03-14 21:07:36 +01:00
Lunny Xiao and GitHub
55cc649d3d
Add abstraction layer to delete repository from disk ( #33879 )
...
Extract from #28966
Follow #33874
2025-03-14 18:38:55 +00:00
wxiaoguang and GitHub
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
wxiaoguang and GitHub
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
Lunny Xiao and GitHub
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
TheFox0x7 and GitHub
5d65b9060b
remove context from retry downloader ( #33871 )
...
follow up to https://github.com/go-gitea/gitea/pull/33399 as I
apparently missed this one.
2025-03-14 00:28:57 +00:00
wxiaoguang and GitHub
8a0f7f0975
Fix markdown render ( #33870 )
...
Fix #33869 , some code block is moved to make it easier to test.
Added a new test
2025-03-13 12:14:35 -07:00
wxiaoguang and GitHub
403775e74e
Improve issue & code search ( #33860 )
...
Each "indexer" should provide the "search modes" they support by
themselves. And we need to remove the "fuzzy" search for code.
2025-03-13 11:07:48 +08:00
wxiaoguang and GitHub
3996518ed4
Refactor cache-control ( #33861 )
...
And fix #21391
2025-03-13 07:04:50 +08:00
ChristopherHX and GitHub
651ef66966
Add workflow_job webhook ( #33694 )
...
Provide external Integration information about the Queue lossly based on
https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=completed#workflow_job
Naming conflicts between GitHub & Gitea are here, Blocked => Waiting,
Waiting => Queued
Rationale Enhancement for ephemeral runners management #33570
2025-03-11 10:40:38 -07:00
wxiaoguang and GitHub
f61f30153b
Fix file icon mapping ( #33855 )
...
Use the file extension mapping from VSCode's extensions.
Otherwise js/ts/vba/... files won't get correct icons.
2025-03-11 21:06:59 +08:00
wxiaoguang and GitHub
657239b480
Fix material icon & diff highlight ( #33844 )
2025-03-10 22:34:48 +08:00
wxiaoguang and GitHub
c102492e5a
Fix LFS URL ( #33840 )
...
Fix #33839
2025-03-10 17:36:02 +08:00
wxiaoguang and GitHub
34e5df6d30
Add material icons for file list ( #33837 )
2025-03-10 15:57:17 +08:00
3f1f808b9e
Full-file syntax highlighting for diff pages ( #33766 )
...
Fix #33358 , fix #21970
This adds a step in the `GitDiffForRender` that does syntax highlighting for the
entire file and then only references lines from that syntax highlighted
code. This allows things like multi-line comments to be syntax
highlighted correctly.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-09 12:51:58 +08:00
wxiaoguang and GitHub
4ed71eb754
Improve log format ( #33814 )
2025-03-08 21:47:11 +08:00
wxiaoguang and GitHub
6422f05a4e
Decouple diff stats query from actual diffing ( #33810 )
...
The diff stats are no longer part of the diff generation.
Use `GetDiffShortStat` instead to get the total number of changed files,
added lines, and deleted lines.
As such, `gitdiff.GetDiff` can be simplified:
It should not do more than expected.
And do not run "git diff --shortstat" for pull list. Fix #31492
2025-03-08 17:36:08 +08:00
7cdde20c73
Email option to embed images as base64 instead of link ( #32061 )
...
ref: #15081
ref: #14037
Documentation: https://gitea.com/gitea/docs/pulls/69
# Example
Content:

Result in Email:

Result with source code:
(first image is external image, 2nd is now embedded)

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-03-05 16:29:29 +00:00
TheFox0x7 and GitHub
ae3a18e01a
Remove context from git struct ( #33793 )
...
Argument is moved from struct init in command run, which lets us remove
context from struct.
2025-03-04 11:56:11 -08:00
wxiaoguang and GitHub
216243eee2
Refactor error system ( #33771 )
...
It should not expose `util.SilentWrap` or construct it manually.
2025-03-03 05:36:10 +00:00
wxiaoguang and GitHub
27bf63ad20
Refactor global init code and add more comments ( #33755 )
...
Follow up #33748
Now there are 3 "global" functions:
* registerGlobalSelectorFunc: for all elements matching the selector, eg: `.ui.dropdown`
* registerGlobalInitFunc: for `data-global-init="initInputAutoFocusEnd"`
* registerGlobalEventFunc: for `data-global-click="onCommentReactionButtonClick"`
And introduce `initGlobalInput` to replace old `initAutoFocusEnd` and
`attachDirAuto`, use `data-global-init` to replace fragile
`.js-autofocus-end` selector.
Another benefit is that by the new approach, no matter how many times
`registerGlobalInitFunc` is called, we only need to do one
"querySelectorAll" in the last step, it could slightly improve the
performance.
2025-03-03 10:57:28 +08:00
wxiaoguang and GitHub
f991807f7e
Try to fix ACME path when renew ( #33668 )
...
Try to fix #32191
2025-02-23 13:12:08 +08:00
wxiaoguang and GitHub
3ee5ee2029
Upgrade golangci-lint to v1.64.5 ( #33654 )
...
Use `usetesting` instead of deprecated `tenv`.
1. Follow up #33648
2. Make lint pass and add some comments
2025-02-21 00:05:40 +08:00
cc1fdc84ca
Use test context in tests and new loop system in benchmarks ( #33648 )
...
Replace all contexts in tests with go1.24 t.Context()
---------
Co-authored-by: Giteabot <teabot@gitea.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-20 09:57:40 +00:00
c2e23d3301
Fix PR web route permission check ( #33636 )
...
See the FIXME comment in code. Otherwise, if a repo's issue unit is
disabled, then the PRs can't be edited anymore.
By the way, make the permission log output look slightly better.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: metiftikci <metiftikci@hotmail.com >
2025-02-19 00:55:19 +00:00
wxiaoguang and GitHub
15e020eec8
Refactor error system ( #33626 )
2025-02-17 12:41:03 -08:00
69de5a65c2
Fix project issues list and counting ( #33594 )
...
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-17 05:14:56 +00:00
950abfe8ee
enable literal string for code search ( #33590 )
...
Close : #33588
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2025-02-16 11:28:06 +01:00