wxiaoguang
81adb01713
Improve img lazy loading ( #34804 )
...
Related #32051 and #13526
2025-06-21 14:53:22 +08:00
ChristopherHX
cda90eca31
Add workflow_run api + webhook ( #33964 )
...
Implements
- https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run--code-samples
- https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#get-a-job-for-a-workflow-run--code-samples
- https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository
- https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run
- `/actions/runs` for global + user + org (Gitea only)
- `/actions/jobs` for global + user + org + repository (Gitea only)
- workflow_run webhook + action trigger
- limitations
- workflow id is assigned to a string, this may result into problems in
strongly typed clients
Fixes
- workflow_job webhook url to no longer contain the `runs/<run>` part to
align with api
- workflow instance does now use it's name inside the file instead of
filename if set
Refactoring
- Moved a lot of logic from workflows/workflow_job into a shared module
used by both webhook and api
TODO
- [x] Verify Keda Compatibility
- [x] Edit Webhook API bug is resolved
Closes https://github.com/go-gitea/gitea/issues/23670
Closes https://github.com/go-gitea/gitea/issues/23796
Closes https://github.com/go-gitea/gitea/issues/24898
Replaces https://github.com/go-gitea/gitea/pull/28047 and is much more
complete
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-20 20:14:00 +08:00
wxiaoguang
b38813878c
Fix readme path and markdown link paste ( #34755 )
2025-06-18 04:19:54 +00:00
silverwind
dfea75371c
Improve alignment of commit status icon on commit page ( #34750 )
...
Before, icon vertically misaligned:
<img width="243" alt="Screenshot 2025-06-17 at 18 14 26"
src="https://github.com/user-attachments/assets/ac515c6d-25bd-44da-88be-a1d93c137ed0 "
/>
After, icon correctly vertically centered:
<img width="244" alt="Screenshot 2025-06-17 at 18 14 40"
src="https://github.com/user-attachments/assets/41556d52-aa15-4bfb-82e2-91ed774cf2b0 "
/>
I think it's fine to single out this one case and not alter
`flex-text-inline` because that class seems to work well in other
places.
2025-06-18 02:14:11 +00:00
Lunny Xiao
a14db5c5e3
Fix ghost user in feeds when pushing in an actions, it should be gitea-actions ( #34703 )
2025-06-17 23:44:35 +00:00
bytedream
3a37d63d61
Allow renaming/moving binary/LFS files in the UI ( #34350 )
...
Adds the ability to rename/move binary files like binary blobs or images
and files that are too large in the web ui.
This was purposed in #24722 , along with the ability edit images via an
upload of a new image, which I didn't implement here (could be done in a
separate PR).
Binary file content:

File too large:

GitHub does the same (I've copied the text from there):

2025-06-16 17:15:07 -07:00
Kerwin Bryant
bbee652e29
Prevent duplicate form submissions when creating forks ( #34714 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-06-16 04:19:16 +00:00
wxiaoguang
1610a63bfd
Fix commit message rendering and some UI problems ( #34680 )
...
* Fix #34679
* Fix #34676
* Fix #34674
* Fix #34526
2025-06-10 23:20:32 +08:00
silverwind
aa2b3b2b1f
Misc CSS fixes ( #34638 )
...
1. apply [`text-wrap:
balance`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap#balance )
to various places making the text wrapping nicer, moving
`empty-placeholder` CSS to base because it's not repo-specific.
<img width="537" alt="Screenshot 2025-06-07 at 15 09 00"
src="https://github.com/user-attachments/assets/8b37d031-269d-4ab3-ba59-2ac469c431e4 "
/>
<img width="514" alt="Screenshot 2025-06-07 at 15 11 16"
src="https://github.com/user-attachments/assets/27a63117-be1d-4797-80f7-9ed14cca41dc "
/>
<img width="346" alt="Screenshot 2025-06-07 at 15 22 26"
src="https://github.com/user-attachments/assets/2f371384-0330-4a00-bb79-bc3c50ba5c91 "
/>
2. fix overflow-related bug on actions run list, before:
<img width="302" alt="Screenshot 2025-06-07 at 15 26 26"
src="https://github.com/user-attachments/assets/d6607eeb-288b-4e81-a770-45a421c9c68c "
/>
After:
<img width="299" alt="Screenshot 2025-06-07 at 15 26 59"
src="https://github.com/user-attachments/assets/b0ddb66f-d4fe-4711-8ed9-eca08ce608f3 "
/>
2025-06-07 19:57:07 +02:00
Kemal Zebari
47d69b7749
Validate hex colors when creating/editing labels ( #34623 )
...
Resolves #34618 .
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-06-07 11:25:08 +03:00
NorthRealm
3f7dbbdaf1
Small fix in Pull Requests page ( #34612 )
2025-06-06 02:10:42 +00:00
wxiaoguang
e8d8984f7c
Fix some trivial problems ( #34579 )
2025-06-02 15:22:43 +00:00
badhezi
d5bbaee64e
Retain issue sort type when a keyword search is introduced ( #34559 )
...
Fixes #34523
2025-06-02 08:14:16 +00:00
badhezi
0cec4b84e2
Fix actions skipped commit status indicator ( #34507 )
...
Addresses https://github.com/go-gitea/gitea/issues/34500
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-28 11:36:21 -04:00
NorthRealm
4cb0c641ce
Add "View workflow file" to Actions list page ( #34538 )
...
This PR adds "View workflow file" to Actions list page, and replaces the
redundant link.
Related #34530
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-28 20:30:00 +08:00
NorthRealm
9b295e984a
Actions list ( #34530 )
...
Closes #34524
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-26 20:02:47 +08:00
Lunny Xiao
b595f81b79
Performance optimization for tags synchronization ( #34355 )
...
The tags synchronization is very slow for a non-mirror repository with
many tags especially forking. This PR make all repositories' tags
synchronization use the same function and remove the low performance
synchronization function. The commit count of tag now will not be stored
into database when syncing. Since the commits count will always be read
from cache or git data, the `NumCommits` in the release table will be
updated for the first read from git data.
2025-05-22 13:54:42 -07:00
a1012112796
28dec9a27d
ui: add a default tab on repo header when migrating ( #34503 )
...
Signed-off-by: a1012112796 <1012112796@qq.com >
2025-05-20 11:14:18 -04:00
NorthRealm
1e2f3514b9
Add endpoint deleting workflow run ( #34337 )
...
Add endpoint deleting workflow run
Resolves #26219
/claim #26219
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-05-13 19:18:13 +00:00
badhezi
4011e2245b
Fix releases sidebar navigation link ( #34436 )
...
Resolves https://github.com/go-gitea/gitea/issues/34435
2025-05-12 16:10:40 -04:00
wxiaoguang
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
wxiaoguang
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
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
Kerwin Bryant
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:
24145f8110/templates/base/footer.tmpl (L11-L18)

2025-05-07 21:33:30 +00:00
NorthRealm
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
Lunny Xiao
62f73491f3
Use lfs label for lfs file rather than a long description ( #34363 )
...
Before

After

2025-05-05 00:07:29 +03:00
wxiaoguang
ba5c3f8087
Fix some dropdown problems on the issue sidebar ( #34308 )
...
Also fix #34300
2025-04-30 02:00:36 +00:00
Kerwin Bryant
1f52304f90
Fix button alignments ( #34307 )
...
Continue with #34206 .
2025-04-29 16:57:47 +00:00
Kerwin Bryant
2b76993415
support the open-icon of folder ( #34168 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-28 19:51:32 -07:00
Kerwin Bryant
533b8b2d3d
Fix button alignments ( #34276 )
...
Continue with #34206 .
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2025-04-27 19:39:03 +00:00
Brecht Van Lommel
a9343896f4
Option to delay conflict checking of old pull requests until page view ( #27779 )
...
`[repository.pull-request] DELAY_CHECK_FOR_INACTIVE_DAYS` is a new
setting to delay the mergeable check for pull requests that have been
inactive for the specified number of days.
This avoids potentially long delays for big repositories with many pull
requests. and reduces system load overall when there are many
repositories or pull requests.
When viewing the PR, checking will start immediately and the PR merge
box will automatically reload when complete. Accessing the PR through
the API will also start checking immediately.
The default value of `7` provides a balance between system load, and
keeping behavior similar to what it was before both for users and API
access. With `0` all conflict checking will be delayed, while `-1`
always checks immediately to restore the previous behavior.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-24 19:26:57 +00:00
wxiaoguang
e625250ffc
Fix various trivial frontend problems ( #34263 )
...
1. Fix #20606
2. Fix #34246
3. Fix missing spaces, fix misspells, no visual change.
4. Fix missing "not-mobile", fix #34265
---------
Co-authored-by: silverwind <me@silverwind.io >
2025-04-24 09:11:54 +08:00
Kerwin Bryant
c2c04ffff7
Add fullscreen mode as a more efficient operation way to view projects ( #34081 )
...
Maybe fix #33482 , maybe fix #34015
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-23 13:42:22 +08:00
wxiaoguang
4832cb9e27
Display when a release attachment was uploaded ( #34261 )
...
Fix #34260
2025-04-22 23:03:49 +08:00
Kerwin Bryant
714245844f
Update compare.tmpl ( #34251 )
...
before:

after:

2025-04-21 23:14:38 +00:00
wxiaoguang
c9aa9068b3
Fix various UI problems ( #34243 )
...
Also fix #34242
2025-04-19 08:43:22 +00:00
wxiaoguang
ba0deab616
Fix some trivial problems ( #34237 )
...
1. Using existing "content" variable in `swift.go`
2. Do not report 500 server error in `GetPullDiffStats` middleware,
otherwise a PR missing ref won't be able to view.
3. Fix the abused "label button" when listing commits, there was too
much padding space, see the screenshot below.
2025-04-18 22:56:50 +08:00
Kerwin Bryant
dd0caf7e16
Fix various misalignments and overflows ( #34227 )
...
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-17 10:32:41 +00:00
Kerwin Bryant
bde014e46d
Fix button alignments and remove unnecessary styles ( #34206 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-16 08:14:10 +00:00
badhezi
a4f22a3e80
Fix project board links to related Pull Requests ( #34213 )
...
Resolves https://github.com/go-gitea/gitea/issues/34181
2025-04-16 07:31:33 +00:00
Kerwin Bryant
3a651cfd02
Fix two missed null value checks on the wiki page. ( #34205 )
...
before:

after:

2025-04-15 09:54:29 -07:00
wxiaoguang
d2d381fd4b
Improve "lock conversation" UI ( #34207 )
...
Fix #34203
2025-04-15 15:01:12 +00:00
Kerwin Bryant
3a9fcac11b
Update protected_branch.tmpl ( #34193 )
...
Show correct message for new/edit. Add "required" to rule name.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-14 13:41:00 +00:00
wxiaoguang
34349c085c
Fix incorrect file links ( #34189 )
...
Fix #34188
The name "FileName" is ambiguous: sometimes it is "base name without
path", sometimes it is "full name with path".
The ambiguous name causes various problems.
This PR clarifies the usage: `FileTreePath`: the full name with path.
2025-04-13 12:27:31 -07:00
Thomas E Lackey
fa49cd719f
feat: Add sorting by exclusive labels (issue priority) ( #33206 )
...
Fix #2616
This PR adds a new sort option for exclusive labels.
For exclusive labels, a new property is exposed called "order", while in
the UI options are populated automatically in the `Sort` column (see
screenshot below) for each exclusive label scope.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-10 17:18:07 +00:00
Kerwin Bryant
02e49a0f47
Fix vertical centering of file tree icons and use entryIcon for submodules/symlinks ( #34137 )
...
In the file tree, the icons are not vertically centered, which affects
the overall visual consistency.
Currently, the icons of submodules and symlinks do not adopt the value
of entryIcon, resulting in inconsistent icon display.
before:

after:

---------
Co-authored-by: silverwind <me@silverwind.io >
2025-04-09 18:10:16 -07:00
Will Kelly
1b2d8df13d
remove hardcoded 'code' string in clone_panel.tmpl ( #34153 )
...
This commit replaces the hardcoded string "code" in the clone panel
button with the i18n local for repo.code.
2025-04-09 06:34:50 +00:00
DrMaxNix
fd7c364ca6
Check user/org repo limit instead of doer ( #34147 )
...
This PR tries to finally fix the bug mentioned in #30011 and #15504 ,
where the user repo limit is checked when creating a repo in an
organization.
Fix #30011
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com >
2025-04-07 23:45:31 -07:00
Kerwin Bryant
8c9d2bdee3
Keep file tree view icons consistent with icon theme ( #33921 )
...
Fix #33914
before:

after:

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-04-06 19:35:08 +00:00
wxiaoguang
e1c2d05bde
Fix markdown render behaviors ( #34122 )
...
* Fix #27645
* Add config options `MATH_CODE_BLOCK_DETECTION`, problematic syntaxes
are disabled by default
* Fix #33639
* Add config options `RENDER_OPTIONS_*`, old behaviors are kept
2025-04-05 11:56:48 +08:00