Commit Graph

20084 Commits (8feb5f9b9fde17f0ed1c7664024d478c8e3a98eb)

Author SHA1 Message Date
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
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
silverwind e03a68c48b
Misc tool tweaks (#35734)
Some minor tooling tweaks:

- Ignore .venv in golangci-lint
- Move go tools to tools directory (e.g. everything that is not "build")
- Enable reportUnusedInlineConfigs in eslint, no current violations
- Apply modernize fix in code-batch-process, modernize cli did
apparently not catch it because of the `go:build ignore` tag.
2025-10-23 09:07:39 +00:00
silverwind cab35ff17a
Update dependencies (#35733)
- Update all JS, Python and Makefile dependencies
- Fixed two new go lint issues
- Tested the affected JS dependencies.
2025-10-23 08:35:48 +00: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
wxiaoguang 195fc715ff
Fix external render (#35727)
Fix #35725

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-22 23:41:38 +00:00
Lunny Xiao f7b8f6ed99 Merge branch 'main' into lunny/project_workflow 2025-10-22 10:04:51 -07:00
ChristopherHX 08b9776970
Refactor Actions Token Access (#35688)
* use a single function to do Action Tokens Permission checks
* allows easier customization
* add basic tests
* lfs file locks should work now

---------

Signed-off-by: ChristopherHX <christopher.homberger@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-22 11:12:31 +00:00
Kemal Zebari a9f2ea720b
Honor delete branch on merge repo setting when using merge API (#35488)
Fix #35463.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-22 05:06:56 +00:00