0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-24 23:27:08 +01:00

20048 Commits

Author SHA1 Message Date
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
Lunny Xiao
e21fb903e3
Fix migration 2025-10-28 11:41:34 -07:00
Lunny Xiao
95b18eb781
Remove unnecessary code and fix comments (#35761)
Follow #35459, #32562

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-28 18:03:57 +00:00
silverwind
d69eede59b
Update JS dependencies (#35759)
- Update all JS dependencies
- Added new unicorn rules
- `updates` now also supports updating `packageManager` and `engines`,
and I see no reason not to do that, so I think we can try keeping these
updated as well. If something in the build breaks because of this, I
will revert and exclude `pnpm` from updating further, but as far as I
understand, only corepack respects this field and pnpm itself does not
care about it.
- Regenerate SVGs.
2025-10-28 17:32:11 +00:00
silverwind
91839ca01a
Move codeformat folder to tools (#35758)
Followup to https://github.com/go-gitea/gitea/pull/35734.

- Move `codeformat` folder to `tools`
- Add `tools` to `GO_DIRS`
- Move `misspellings.csv` to `assets` so we can lint the whole `tools`
directory without filter shenanigans.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-28 11:23:50 +00: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
b4ebf1b6d5
Fix lint 2025-10-27 11:15:07 -07: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
418a7bb07e
Add tests for project workflow execution 2025-10-26 22:51:35 -07:00
GiteaBot
87d670c96b [skip ci] Updated translations via Crowdin 2025-10-27 00:39:11 +00:00
wxiaoguang
2f309b844c
Revert #18491, fix oauth2 client link account (#35745)
Fix #35744 by reverting #18491

* "OpenID" options don't mean "OAuth2Client" options
* "OAuth2(server)" options don't mean "OAuth2Client" options
2025-10-26 21:26:38 +00:00
Lunny Xiao
bc50431e8b
Upgrade go mail to 0.7.2 (#35748) 2025-10-26 09:52:01 -04: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
GiteaBot
2a6af15448 [skip ci] Updated translations via Crowdin 2025-10-26 00:38:59 +00: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
ae282397be
Fix lint and fix wrong migrations 2025-10-25 16:30:27 -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
12feb0ee26
Add unit test and integration test 2025-10-25 16:03:53 -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
5454fdacd4
Use git model to detect whether branch exist instead of gitrepo method (#35459) 2025-10-25 10:08:25 -07:00
Lunny Xiao
304d836a61
Fix shutdown waitgroup panic (#35676)
This PR fixes a panic issue in the WaitGroup that occurs when Gitea is
shut down using Ctrl+C.
It ensures that all active connection pointers in the server are
properly tracked and forcibly closed when the hammer shutdown is
invoked.
The process remains graceful — the normal shutdown sequence runs before
the hammer is triggered, and existing connections are given a timeout
period to complete gracefully.

This PR also fixes `no logger writer` problem. Now the log close will
only be invoked when the command exit.

- Fixes #35468
- Fixes #35551
- Fixes #35559
- Replace #35578

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-25 00:02:58 -07: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
wxiaoguang
cb72c901b3
Intorduce "config edit-ini" sub command to help maintaining INI config file (#35735)
Ref: #32669. Helps addressing
https://gitea.com/gitea/helm-chart/issues/356.
2025-10-25 10:54:55 +08:00
Lunny Xiao
323a24e12c
Fix bug 2025-10-24 18:37:19 -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
wxiaoguang
9a73a1fb83
Make "update file" API can create a new file when SHA is not set (#35738)
Fix #19008, use GitHub's behavior (empty SHA to create a new file)
2025-10-24 12:46:54 +08: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
397d666432
Fix review request webhook bug (#35339) (#35723)
Frontport #35339
Fix #35327
2025-10-23 20:08:21 -07:00
Lunny Xiao
6c4160dba0
fix 2025-10-23 15:19:02 -07:00
Lunny Xiao
60bf918934
Fix enable/disable 2025-10-23 14:53:59 -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