Commit Graph
19007 Commits
Author SHA1 Message Date
Lunny Xiao 67a749f52c Some renames and use type instead of isFile 2025-01-12 21:35:36 -08:00
Lunny Xiao 3c863223c5 Fix bug 2025-01-12 21:14:43 -08:00
Lunny Xiao 616fe58df0 Remove unused code 2025-01-12 20:58:17 -08:00
Lunny Xiao eff3568d31 Merge branch 'main' into kerwin612-add-file-tree-to-file-view-page 2025-01-12 20:54:57 -08:00
wxiaoguangandGitHub 81352542fd Refactor context RefName and RepoAssignment (#33226)
The `ctx.Repo.RefName` was used to be a "short name", it causes a lot of
ambiguity.

This PR does some refactoring and use `RefFullName` to replace the
legacy `RefName`, and simplify RepoAssignment
2025-01-13 01:07:05 +00:00
GiteaBot 604365efd7 [skip ci] Updated translations via Crowdin 2025-01-13 00:34:26 +00:00
wxiaoguangandGitHub c0751ef116 Fix upload file form (#33230)
Fix #33228
2025-01-13 03:39:15 +08:00
be4e961240 Fix mirror bug (#33224)
Fix #33200

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-12 18:46:37 +08:00
wxiaoguangandGitHub 9024b79933 Remove unused CSS styles and move some styles to proper files (#33217) 2025-01-12 05:16:22 +00:00
wxiaoguangandGitHub a068462ac0 Refactor context repository (#33202) 2025-01-12 03:39:46 +00:00
GiteaBot a7e750414c [skip ci] Updated translations via Crowdin 2025-01-12 00:35:53 +00:00
Lunny XiaoandGitHub fd7d393c67 Fix unpin hint on the pinned pull requests (#33207) 2025-01-12 00:05:33 +00:00
TheFox0x7andGitHub 8c6d7076b7 fix(cache): cache test triggered by non memory cache (#33220)
Change SlowCacheThreshold to 30 milliseconds so it doesn't trigger on
non memory cache

Closes: https://github.com/go-gitea/gitea/issues/33190
Closes: https://github.com/go-gitea/gitea/issues/32657
2025-01-12 04:33:43 +08:00
Kerwin Bryant d4a99e53c8 fix 2025-01-10 14:05:34 +00:00
Kerwin BryantandGitHub 62ecf34b99 Merge branch 'main' into add-file-tree-to-file-view-page 2025-01-10 21:13:39 +08:00
Kerwin Bryant c2670dbb81 fix 2025-01-10 09:11:57 +00:00
Kerwin Bryant 0cafe2a39d fix 2025-01-10 09:02:02 +00:00
Kerwin Bryant 9b95582f5d fix 2025-01-10 08:25:33 +00:00
5c150ce9b0 Update README.md (#33149)
~~Waiting for the upload of screenshots~~
I have a good idea about the screenshots. I will do it later.

---------

Co-authored-by: Gary Wang <git@blumia.net>
2025-01-10 16:03:07 +08:00
d7ec23febf Fix editor markdown not incrementing in a numbered list (#33187)
Amended the logic for newPrefix in the MarkdownEditor to resolve
incorrect number ordering.

Fixes #33184

Attached screenshot of fixed input similar to issue 
<img width="175" alt="Screenshot 2025-01-09 at 23 59 24"
src="https://github.com/user-attachments/assets/dfa23cf1-f3db-4b5e-99d2-a71bbcb289a8"
/>

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-10 07:28:38 +00:00
Lunny Xiao 818ad6a3ed Merge branch 'add-file-tree-to-file-view-page' of github.com:kerwin612/gitea into kerwin612-add-file-tree-to-file-view-page 2025-01-09 23:11:38 -08:00
Lunny Xiao f769c8bf43 Make template simpler 2025-01-09 23:11:33 -08:00
Kerwin Bryant 6441fe5a73 Merge remote-tracking branch 'refs/remotes/kerwin612/add-file-tree-to-file-view-page' into add-file-tree-to-file-view-page 2025-01-10 06:55:17 +00:00
Kerwin Bryant 67342378d3 Merge branch 'upstream_main' into add-file-tree-to-file-view-page 2025-01-10 06:53:59 +00:00
Kerwin Bryant 3e679d67b3 fix 2025-01-10 06:52:30 +00:00
Lunny XiaoandGitHub d3083d2198 Some small refactors (#33144) 2025-01-10 06:00:06 +00:00
e5f3c16587 Fix sync fork for consistency (#33147)
Fixes #33145

An integration test could be added.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-10 05:29:55 +00:00
Kerwin BryantandGitHub be7a6b6057 Merge branch 'main' into add-file-tree-to-file-view-page 2025-01-10 11:56:26 +08:00
189e7409b7 Use updated path to s6-svscan after alpine upgrade (#33185)
Fix #33163

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-10 10:16:37 +08:00
Kerwin Bryant 34dc5b1c1d Merge branch 'main' into add-file-tree-to-file-view-page 2025-01-10 02:02:46 +00:00
Kerwin Bryant 335375fd76 merge main 2025-01-10 01:57:19 +00:00
wxiaoguangandGitHub 65aae0912a Fix raw file API ref handling (#33172)
Fix #33164 and add more tests
2025-01-10 01:31:49 +00:00
GiteaBot 8f8ad8e272 [skip ci] Updated translations via Crowdin 2025-01-10 00:32:29 +00:00
wxiaoguangandGitHub 5b31077b68 Fix ACME panic (#33178)
Fix #33177, Manually tested:

````
1.7364311850484018e+09	info	maintenance	started background certificate maintenance	{"cache": "0x1400ca64180"}
1.736431185054049e+09	info	obtain	acquiring lock	{"identifier": "example.com"}
1.736431185058073e+09	info	obtain	lock acquired	{"identifier": "example.com"}
1.736431185058133e+09	info	obtain	obtaining certificate	{"identifier": "example.com"}
````
2025-01-09 23:53:50 +00:00
Lunny XiaoandGitHub 39d51e7c82 Automerge supports deleting branch automatically after merging (#32343)
Resolve #32341 
~Depends on #27151~

- [x] It will display a checkbox of deleting the head branch on the pull
request view page when starting an auto-merge task.
- [x] Add permission check before deleting the branch
- [x] Add delete branch comment for those closing pull requests because
of head branch or base branch was deleted.
- [x] Merge `RetargetChildrenOnMerge` and `AddDeletePRBranchComment`
into `service.DeleteBranch`.
2025-01-10 03:51:03 +08:00
2298ff2152 Fix branch dropdown not display ref name (#33159)
Before:

![image](https://github.com/user-attachments/assets/899d25a9-80e9-48d5-a820-79c911c858e9)
After:

![image](https://github.com/user-attachments/assets/cf2a7407-909a-41db-9957-19d9214af57e)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-09 18:43:49 +00:00
hiifongandGitHub 5f679c1c59 Add .run to gitignore (#33175)
![image](https://github.com/user-attachments/assets/340a6c2a-8575-4ef9-be75-84af8af82b93)
2025-01-09 18:11:35 +00:00
wxiaoguangandGitHub a5043af8ea Fix assignee list overlapping in Issue sidebar (#33176)
Fix  #33170

![image](https://github.com/user-attachments/assets/714cebdc-ee76-43e3-9ece-a189f8ecb17a)

![image](https://github.com/user-attachments/assets/cbb58425-42b4-41ee-ba3c-7efbd24607dc)
2025-01-10 01:58:37 +08:00
TheFox0x7andGitHub 68ca73b716 Fix pam auth test regression (#33169)
fixes: https://github.com/go-gitea/gitea/issues/33168
2025-01-09 21:09:11 +08:00
yp05327andGitHub 88366f280e Move repo size to sidebar (#33155)
![image](https://github.com/user-attachments/assets/8b14dbb7-ec36-4596-a6aa-72c14d93309d)
2025-01-09 07:45:51 +00:00
Lunny XiaoandGitHub ba5e3a5161 Fix fuzz test (#33156) 2025-01-09 15:15:47 +08:00
TheFox0x7andGitHub 2a02734f93 Refactor older tests to use testify (#33140)
Refactor checks to use assert/require
Use require.Eventually for waiting in elastic and meilisearch tests
Use require to exit early instead of assert
2025-01-09 09:21:47 +08:00
GiteaBot fa9191b7b9 [skip ci] Updated translations via Crowdin 2025-01-09 00:32:21 +00:00
yp05327andGitHub e177239529 Fix typo in gitea downloader test and add missing codebase in ToGitServiceType (#33146) 2025-01-08 18:34:53 +00:00
wxiaoguangandGitHub 9c00e065a1 Fix form width (#33151)
Fix #33150
2025-01-08 23:57:18 +08:00
yp05327andGitHub 124079871b Convert github.com/xanzy/go-gitlab into gitlab.com/gitlab-org/api/client-go (#33126)
Fix #32985
2025-01-08 13:10:43 +08:00
wxiaoguangandGitHub 386c1ed908 Refactor HTMLFormat, update chroma render, fix js error (#33136)
A small refactor to improve HTMLFormat, to help to prevent low-level
mistakes.

And fix #33141, fix #33139
2025-01-08 03:44:32 +00:00
Lunny XiaoandGitHub 67aeb1f896 Add missed transaction on setmerged (#33079)
Follow #33045. There are two updates on `Set Merged`, which should be in
one transaction.
This also introduced some refactors for changeissuestatus to make it
more clear.
2025-01-08 03:16:56 +00:00
a8e7caedfa add submodule diff links (#33097)
This adds links to submodules in diffs, similar to the existing link
when viewing a repo at a specific commit. It does this by expanding diff
parsing to recognize changes to submodules, and find the specific refs
that are added, deleted or changed.

Related #25888

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-08 01:38:30 +00:00
GiteaBot ec84687df9 [skip ci] Updated translations via Crowdin 2025-01-08 00:32:07 +00:00