3fe449c21a
Use filepath.Join instead of path.Join for file system file operations ( #33978 )
2025-03-24 14:50:28 -07:00
8745129c9c
Fix incorrect code search indexer options ( #33992 )
...
Fix #33798
Co-authored-by: Giteabot <teabot@gitea.io >
2025-03-24 17:18:21 +01:00
25b6f38865
Move ParseBool to optional ( #33979 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2025-03-24 03:53:30 +00:00
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
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
0da7318cf3
Allow filtering issues by any assignee ( #33343 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
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
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
9d7c02f9f7
Try to figure out attribute checker problem ( #33901 )
...
For #31600
2025-03-17 11:59:34 -07:00
7fd44a85ca
Move hooks function to gitrepo and reduce expose repopath ( #33890 )
...
Extract from #28966
Follow #33874
2025-03-16 16:12:55 +00:00
c88e71c1d2
Refactor functions to reduce repopath expose ( #33892 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2025-03-16 03:14:56 +00:00
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 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
55cc649d3d
Add abstraction layer to delete repository from disk ( #33879 )
...
Extract from #28966
Follow #33874
2025-03-14 18:38:55 +00:00
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
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
9c673d066c
Add abstraction layer to check if the repository exists on disk ( #33874 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
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
8a0f7f0975
Fix markdown render ( #33870 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
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
403775e74e
Improve issue & code search ( #33860 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
3996518ed4
Refactor cache-control ( #33861 )
...
And fix #21391
2025-03-13 07:04:50 +08:00
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
f61f30153b
Fix file icon mapping ( #33855 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
657239b480
Fix material icon & diff highlight ( #33844 )
2025-03-10 22:34:48 +08:00
c102492e5a
Fix LFS URL ( #33840 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Fix #33839
2025-03-10 17:36:02 +08:00
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 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
4ed71eb754
Improve log format ( #33814 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-03-08 21:47:11 +08:00
6422f05a4e
Decouple diff stats query from actual diffing ( #33810 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
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
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
216243eee2
Refactor error system ( #33771 )
...
It should not expose `util.SilentWrap` or construct it manually.
2025-03-03 05:36:10 +00:00
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
f991807f7e
Try to fix ACME path when renew ( #33668 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Try to fix #32191
2025-02-23 13:12:08 +08:00
3ee5ee2029
Upgrade golangci-lint to v1.64.5 ( #33654 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
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 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
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
2b8cfb557d
Artifacts download api for artifact actions v4 ( #33510 )
...
* download endpoint has to use 302 redirect
* fake blob download used if direct download not possible
* downloading v3 artifacts not possible
New repo apis based on GitHub Rest V3
- GET /runs/{run}/artifacts (Cannot use run index of url due to not
being unique)
- GET /artifacts
- GET + DELETE /artifacts/{artifact_id}
- GET /artifacts/{artifact_id}/zip
- (GET /artifacts/{artifact_id}/zip/raw this is a workaround for a http
302 assertion in actions/toolkit)
- api docs removed this is protected by a signed url like the internal
artifacts api and no longer usable with any token or swagger
- returns http 401 if the signature is invalid
- or change the artifact id
- or expired after 1 hour
Closes #33353
Closes #32124
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-16 08:32:54 +08:00
e741448a14
Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) ( #33569 )
...
* Make artifact list output a stable order
* Fix #33506
* Fix #33521
* Fix #33288
* Fix #33196
* Fix #33561
2025-02-13 03:26:27 +08:00
30993e9508
Feature: Support workflow event dispatch via API ( #33545 )
...
Fix: https://github.com/go-gitea/gitea/issues/31765 (Re-open #32059 )
---------
Co-authored-by: Bence Santha <git@santha.eu >
Co-authored-by: Bence Sántha <7604637+bencurio@users.noreply.github.com >
Co-authored-by: Christopher Homberger <christopher.homberger@web.de >
2025-02-11 03:05:42 +08:00
704b65e012
Revert "Feature: Support workflow event dispatch via API ( #32059 )" ( #33541 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
This reverts commit 523751dc82
.
2025-02-10 17:44:42 +08:00
523751dc82
Feature: Support workflow event dispatch via API ( #32059 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
ref: https://github.com/go-gitea/gitea/issues/31765
---------
Signed-off-by: Bence Santha <git@santha.eu >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Christopher Homberger <christopher.homberger@web.de >
2025-02-10 05:23:57 +08:00
1ec8d80fa3
refactor: decouple context from migration structs ( #33399 )
...
Use context as much as possible.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-02-07 05:37:32 +00:00
466cc725bc
Move gitgraph from modules to services layer ( #33527 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Just move, no code change.
2025-02-07 03:05:25 +00:00
a1f1bccd7a
Add go wrapper around git diff-tree --raw -r -M ( #33369 )
...
* Implemented calling git diff-tree
* Ensures wrapper function is called with valid arguments
* Parses output into go struct, using strong typing when possible
2025-02-07 00:58:28 +00:00
6999651b6d
Fix unnecessary comment when moving issue on the same project column ( #33496 )
...
Fix #33482
2025-02-05 11:51:10 +08:00