0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-25 05:56:21 +01:00

2253 Commits

Author SHA1 Message Date
Lunny Xiao
c6bd967966
Merge branch 'main' into lunny/project_workflow 2025-11-03 12:23:08 -08:00
silverwind
37208fef7e
Fix a number of strictNullChecks-related issues (#35795)
In preparation to work on enabling
https://www.typescriptlang.org/tsconfig/#strictNullChecks, I fixed all
the issues outside of `web_src` that came up when the option was
enabled. There was also one lint issue in web_src that apparently only
came up with the option enabled, so I fixed that as well.

`isTruthy` is introduced because Typescript has a bug regarding
`filter(Boolean)` which they are seemingly unwilling to fix.

---------

Signed-off-by: silverwind <me@silverwind.io>
2025-11-03 20:17:06 +00:00
鲁汀
f2d7931b70
Fix circular spin animation direction (#35785)
Wait for the status icon to rotate clockwise instead of counterclockwise

before:
![GIF 2025-10-30
10-50-07](https://github.com/user-attachments/assets/3771b0bf-44e4-45a0-bde5-1b2b3dd8ba2a)

after:
![GIF 2025-10-30
10-50-43](https://github.com/user-attachments/assets/c45307fe-39a4-4e60-b48e-9d922c407565)

---------

Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: lutinglt <lutinglt@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-11-02 08:30:13 +00:00
Lunny Xiao
4c4a16ccb5 Merge branch 'main' into lunny/project_workflow 2025-10-31 21:32:51 -07:00
silverwind
8b290b87e9
Improve and fix markup code preview rendering (#35777)
1. Add the color on the link to the referenced file, which is the more
likely thing the user wants to click
2. Use monospace font on the SHA
3. Tweak text colors
4. Change SHA link to go to the commit instead of the repo root with
commit filter set
5. Added the repo name to the file link text
6. Fix broken line numbering rendering
2025-10-30 05:15:42 +00:00
bytedream
39c08ce4c1
Update tab title when navigating file tree (#35757)
Fix #35749.

---------

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2025-10-29 13:38:09 +00:00
silverwind
fe25997157
Enable vue/require-typed-ref eslint rule (#35764)
Enable https://eslint.vuejs.org/rules/require-typed-ref 
and fix discovered issues.
2025-10-29 17:42:06 +08:00
Lunny Xiao
984d4b0a3b
Fix lint 2025-10-28 12:15:59 -07:00
Lunny Xiao
0b41bfa135
Add valid when saving project workflow event 2025-10-28 11:52:37 -07:00
Lunny Xiao
df50690df7 Merge branch 'main' into lunny/project_workflow 2025-10-28 11:41:39 -07:00
wxiaoguang
6b5563c54a
Support selecting theme on the footer (#35741)
Fixes: https://github.com/go-gitea/gitea/pull/27576
2025-10-28 18:25:00 +08:00
Lunny Xiao
3f9f725bd1
revert label component change 2025-10-27 10:22:44 -07:00
Lunny Xiao
b840641fdc
revert label component change 2025-10-27 10:19:36 -07:00
Lunny Xiao
b04d42b00f Merge branch 'main' into lunny/project_workflow 2025-10-27 09:30:40 -07:00
wxiaoguang
cddff73bbd
Fix "ref-issue" handling in markup (#35739)
This is a follow up for #35662, and also fix #31181, help #30275, fix #31161
2025-10-27 22:45:07 +08:00
Lunny Xiao
fdd3bf04cb
remove unused code 2025-10-25 20:28:16 -07:00
Lunny Xiao
4a2734aaa2
remove unused code 2025-10-25 20:17:03 -07:00
Lunny Xiao
045945d518
Fix label menu 2025-10-25 20:14:20 -07:00
Lunny Xiao
3d636fcbd4
fix bug and add label selector 2025-10-25 19:07:08 -07:00
Lunny Xiao
4efc69cbf3
Fix dark theme 2025-10-25 17:16:28 -07:00
Lunny Xiao
3aef130379
improvements 2025-10-25 16:59:28 -07:00
Lunny Xiao
37196261a6
improvements 2025-10-25 16:46:18 -07:00
Lunny Xiao
65dbaa528c
Remove log 2025-10-25 16:08:30 -07:00
Lunny Xiao
1bffdfe2fb Merge branch 'main' into lunny/project_workflow 2025-10-25 16:06:12 -07:00
Lunny Xiao
d6958c50d5
Fix lint 2025-10-25 14:37:46 -07:00
Lunny Xiao
e1d2cf47fd
Fix bug 2025-10-25 13:02:38 -07:00
Lunny Xiao
f68eee55a1
Fix translations 2025-10-25 11:55:28 -07:00
Zettat123
c9beb0b01f
Support actions and reusable workflows from private repos (#32562)
Resolve https://gitea.com/gitea/act_runner/issues/102

This PR allows administrators of a private repository to specify some
collaborative owners. The repositories of collaborative owners will be
allowed to access this repository's actions and workflows.

Settings for private repos:


![image](https://github.com/user-attachments/assets/e591c877-f94d-48fb-82f3-3b051f21557e)

---

This PR also moves "Enable Actions" setting to `Actions > General` page

<img width="960" alt="image"
src="https://github.com/user-attachments/assets/49337ec2-afb1-4a67-8516-5c9ef0ce05d4"
/>

<img width="960" alt="image"
src="https://github.com/user-attachments/assets/f58ee6d5-17f9-4180-8760-a78e859f1c37"
/>

---------

Signed-off-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2025-10-25 17:37:33 +00:00
Lunny Xiao
635649d3bd
add translations 2025-10-24 23:59:13 -07:00
Lunny Xiao
3d081b300f
Fix bug 2025-10-24 21:35:11 -07:00
Zettat123
0d740a6a72
Improve online runner check (#35722)
This PR moves "no online runner" warning to the runs list. 

A job's `runs-on` may contain expressions like `runs-on: [self-hosted,
"${{ inputs.chosen-os }}"]` so the value of `runs-on` may be different
in each run. We cannot check it through the workflow file.

<details>
  <summary>Screenshots</summary>

Before:

<img width="960" alt="3d2a91746271d8b1f12c8f7d20eba550"
src="https://github.com/user-attachments/assets/7a972c50-db97-49d2-b12b-c1a439732a11"
/>

After:

<img width="960" alt="image"
src="https://github.com/user-attachments/assets/fc076e0e-bd08-4afe-99b9-c0eb0fd2c7e7"
/>
</details>

This PR also splits `prepareWorkflowDispatchTemplate` function into 2
functions:
- `prepareWorkflowTemplate` get and check all of the workflows
- `prepareWorkflowDispatchTemplate` only prepare workflow dispatch
config for `workflow_dispatch` workflows.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-24 12:02:52 -07:00
Lunny Xiao
903d605fe1
improvements 2025-10-24 10:55:10 -07:00
Lunny Xiao
c2419f8c5b
improvements 2025-10-23 22:24:52 -07:00
Lunny Xiao
623388cef9 Merge branch 'main' into lunny/project_workflow 2025-10-23 21:38:29 -07:00
Lunny Xiao
7eb5673522
fix 2025-10-23 21:31:49 -07:00
Lunny Xiao
6c4160dba0
fix 2025-10-23 15:19:02 -07:00
Lunny Xiao
7240b2b144
fix 2025-10-23 14:44:03 -07:00
Lunny Xiao
829fa15816
fix 2025-10-23 11:39:22 -07:00
Lunny Xiao
cc4a85b226
fix 2025-10-23 11:29:36 -07:00
Lunny Xiao
ab5fa408ef
fix clone 2025-10-23 11:15:49 -07:00
Lunny Xiao
822387aa38
support labels filter 2025-10-23 11:06:44 -07:00
wxiaoguang
522c466e24
Make external iframe render work (#35730)
Fix #35729, #17635, #21098
2025-10-23 08:01:38 +00:00
Lunny Xiao
74fc30ff71
Support add labels and remove labels for issue's project column changed event 2025-10-23 00:47:34 -07:00
Lunny Xiao
836bf98507
Remove clone support at the time 2025-10-22 23:34:09 -07:00
Lunny Xiao
81156845af
replace alert 2025-10-22 22:47:20 -07:00
Lunny Xiao
b191ded690
Fix 2025-10-22 22:40:49 -07:00
silverwind
8085c75356
Remove mermaid margin workaround (#35732)
https://github.com/mermaid-js/mermaid/issues/4907 was fixed with mermaid
v11, so we no longer need to ship this workaround. The test case works
as expected:

<img width="244" height="58" alt="image"
src="https://github.com/user-attachments/assets/439616e9-4883-47fb-bf18-21ca86cb5da6"
/>
2025-10-23 06:43:52 +02:00
Lunny Xiao
f7b8f6ed99 Merge branch 'main' into lunny/project_workflow 2025-10-22 10:04:51 -07:00
wxiaoguang
a2eea2fb2e
Fix various trivial problems (#35714) 2025-10-21 13:19:29 +08:00
Bryan Mutai
c30d74d0f9
feat(diff): Enable commenting on expanded lines in PR diffs (#35662)
Fixes #32257 
/claim #32257

Implemented commenting on unchanged lines in Pull Request diffs, lines
are accessed by expanding the diff preview. Comments also appear in the
"Files Changed" tab on the unchanged lines where they were placed.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-19 18:19:12 +08:00