wxiaoguang and GitHub
4a98ab0540
Remove legacy template helper functions ( #34426 )
...
These functions have been marked as `panicIfDevOrTesting` since 1.23
(#32422 )
2025-05-11 01:42:21 -04:00
wxiaoguang and GitHub
9b8609e017
Fix GetUsersByEmails ( #34423 )
...
Fix #34418 , fix #34353
2025-05-10 11:47:58 -07:00
GiteaBot
0f63a5ef48
[skip ci] Updated translations via Crowdin
2025-05-10 00:34:13 +00:00
bytedream
32e2f4f470
Use NotEditableReason to check if file is editable
2025-05-10 00:24:45 +02:00
ad271444e9
Fix a bug when uploading file via lfs ssh command ( #34408 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-09 16:17:08 +00:00
8b16ab719c
Merge and tweak markup editor expander CSS ( #34409 )
...
- Merge the CSS for the two expanders (text-expander-element and
tribute.js) into one file
- Fix overflow issues
- Remove min-width
- Various other tweaks like borders, colors, padding, gaps.
text-expander:
<img width="645" alt="Screenshot 2025-05-09 at 02 21 24"
src="https://github.com/user-attachments/assets/33276dc4-38e8-45e1-8216-2a4baa9bc039 "
/>
tribute:
<img width="624" alt="Screenshot 2025-05-09 at 02 21 37"
src="https://github.com/user-attachments/assets/91fbcd1a-9bfc-40fd-93f0-a05b4bd4c98d "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-09 17:14:21 +02:00
Yarden Shoham and GitHub
2ecd73d2e5
Bump @github/relative-time-element to v4.4.8 ( #34413 )
...
Tested, it works as before.
Changelog:
https://github.com/github/relative-time-element/releases/tag/v4.4.8
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2025-05-09 14:11:13 +00:00
wxiaoguang and GitHub
179068fddb
Refactor commit message rendering and fix bugs ( #34412 )
...
Fix #34398 , fix #33308
Remove all `repo.ComposeCommentMetas` from templates,
only use `repo` to render commit message.
2025-05-09 20:42:35 +08:00
bytedream
42b7c87288
Get file size from fInfo
2025-05-09 14:03:17 +02:00
bytedream
b8d5d358ee
Update
2025-05-09 14:02:08 +02:00
GiteaBot
44aadc37c9
[skip ci] Updated translations via Crowdin
2025-05-09 00:36:27 +00:00
bytedream
4e8a8e4c05
Add copyright
2025-05-09 01:40:50 +02:00
bytedream
627bce976c
Format
2025-05-09 01:22:26 +02:00
bytedream
2c2a7c5c80
Add rename test
2025-05-09 01:21:30 +02:00
bytedream
8739ebe1dd
Update internal function names
2025-05-08 23:06:19 +02:00
bytedream
7133834ffe
Additionally check if path changed to trigger pure rename operation
2025-05-08 23:06:08 +02:00
wxiaoguang and GitHub
f63822fe64
Fix autofocus behavior ( #34397 )
...
The "autofocus" was abused or misbehaved:
1. When users visit a page but they are not going to change a field,
then the field shouldn't get "autofocus"
* the "auth" / "user" page: in most cases, users do not want to change
the names
* see also the GitHub's "settings" page behavior.
2. There shouldn't be duplicate "autofocus" inputs in most cases, only
the first one focuses
3. When a panel is shown, the "autofocus" should get focus
* "add ssh key" panel
This PR fixes all these problems and by the way remove duplicate
"isElemHidden" function.
2025-05-08 18:26:18 +00:00
GWDx and GitHub
71a1187209
Fix incorrect divergence cache after switching default branch ( #34370 )
...
Issue: After switching the default branch, other branches are still
compared against the old default branch due to outdated divergence
cache.
Change: Clear the divergence cache in SetRepoDefaultBranch to ensure
correct comparisons against the new default branch.
Fixes #34369
2025-05-08 18:00:29 +00:00
4c611bf280
Add a button editing action secret ( #34348 )
...
Add a button editing action secret
Closes #34190
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-08 17:11:43 +00:00
bytedream
3348c04cc9
Show binary and lfs edit button in pull request changes
2025-05-08 18:28:56 +02:00
bytedream
0d27705d46
Make linter happy
2025-05-08 17:30:51 +02:00
bytedream
07836d815b
Refactor
2025-05-08 17:05:14 +02:00
bytedream
2c9c9e1b14
Update comment
2025-05-08 12:59:09 +02:00
bytedream
614a4b34d9
Update
2025-05-08 12:51:58 +02:00
bytedream
fb3e80106d
Update comments and names
2025-05-08 12:35:52 +02:00
bytedream
3ad1e7e215
Enable commit button only if something has changed
2025-05-08 12:28:18 +02:00
bytedream
9811c28627
Merge branch 'main' into non-text-edit
2025-05-08 10:43:14 +02:00
2fbc8f9e87
Fix LFS file not stored in LFS when uploaded/edited via API or web UI ( #34367 )
...
Files that should be stored in LFS and are uploaded/edited from the API
or web UI aren't stored in LFS. This may be a regression from #34154 .
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-08 13:07:53 +08:00
GiteaBot
82071ee730
[skip ci] Updated translations via Crowdin
2025-05-08 00:36:14 +00:00
Kerwin Bryant and GitHub
bbfc21e74f
Fix "The sidebar of the repository file list does not have a fixed height #34298 " ( #34321 )
...
There is a known issue where scrolling to the bottom of the page is
affected by unknown elements in the footer area:
https://github.com/go-gitea/gitea/blob/24145f811069295b9727f25469f1dd3a7c2c5dd7/templates/base/footer.tmpl#L11-L18

2025-05-07 21:33:30 +00:00
Tobias Balle-Petersen and GitHub
020e774b91
feat: add label 'state' to metric 'gitea_users' ( #34326 )
...
This PR adds the label _state_ to the metric _gitea_users_. With the
change, _gitea_users_ would be reported like this:
```
...
# HELP gitea_users Number of Users
# TYPE gitea_users gauge
gitea_users{state="active"} 20
gitea_users{state="inactive"} 10
...
```
The metrics above would be from a Gitea instance with 30 user accounts.
20 of the accounts are active and 10 of the accounts are not active.
Resolve #34325
2025-05-07 18:00:53 +00:00
silverwind and GitHub
dd886d729f
Update JS and PY dependencies ( #34391 )
...
Result of `make update-js update-py svg`. Quick test of the UI worked.
2025-05-07 13:21:38 -04:00
Lunny Xiao and GitHub
2a660b4a1b
Upgrade go-github v61 -> v71 ( #34385 )
...
There will be a possible bug when migrating from Github
https://github.com/google/go-github/issues/3229
This PR upgrades go-github from v61 to v71 to resolve that problem.
2025-05-06 20:10:14 -07:00
Yarden Shoham and GitHub
6bd8fe5353
Bump @github/relative-time-element to v4.4.7 ( #34384 )
...
Tested, it works as before.
Changelog:
https://github.com/github/relative-time-element/releases/tag/4.4.7
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2025-05-06 12:44:25 -04:00
bytedream
3d64a84929
Update lfs pointer checks
2025-05-06 14:09:15 +02:00
bytedream
4d17f51417
Remove unnecessary entry blob open
2025-05-06 14:02:03 +02:00
bytedream
1efe0e7ea7
Close data blobs
2025-05-06 13:29:34 +02:00
6543 and GitHub
a2024953c5
gitignore: Visual Studio settings folder ( #34375 )
2025-05-06 03:29:48 -04:00
6b2c506e05
Grey out expired artifact on Artifacts list ( #34314 )
...
Grey out expired artifact on Artifacts list.


---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-05 21:53:17 -07:00
bytedream
2848fdf91f
Merge branch 'main' into non-text-edit
...
# Conflicts:
# routers/web/repo/editor.go
2025-05-06 04:32:04 +02:00
bytedream and GitHub
12bf0b8e42
Fix only text/* being viewable in web UI ( #34374 )
...
Regression from #34356 , files like SVGs should be editable too
(https://github.com/go-gitea/gitea/pull/34356#discussion_r2072766240 ).
2025-05-06 00:15:22 +03:00
bytedream
691073d736
Typo fix
2025-05-05 21:17:24 +02:00
bytedream
2698321eb1
Syntax and comment changes
2025-05-05 21:12:29 +02:00
bytedream
02fe2dbe37
Revert unnecessary locale key rename
2025-05-05 20:43:20 +02:00
bytedream
e960fe34c5
Fix file content only read on new file
2025-05-05 18:55:47 +02:00
bytedream
6f3b69b900
Fix empty binary content after move
2025-05-05 18:39:40 +02:00
Tobias Balle-Petersen and GitHub
712fccadd6
add maintainer tobiasbp ( #34372 )
...
This PR adds me as a _maintainer_ as suggested by @techknowlogick.
A couple of my recent PRs:
* https://github.com/go-gitea/gitea/pull/34324
* https://github.com/go-gitea/gitea/pull/34323
2025-05-05 09:17:45 -07:00
GiteaBot
833c2a432b
[skip ci] Updated translations via Crowdin
2025-05-05 00:38:37 +00:00
bytedream
07845a262d
Unify locale keys
2025-05-05 02:14:30 +02:00
bytedream
349d5b1597
Do not show editor for locked lfs file by other user
2025-05-05 02:07:01 +02:00