Lunny Xiao
b04d42b00f
Merge branch 'main' into lunny/project_workflow
2025-10-27 09:30:40 -07:00
Lunny Xiao
418a7bb07e
Add tests for project workflow execution
2025-10-26 22:51:35 -07: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
045945d518
Fix label menu
2025-10-25 20:14:20 -07:00
Lunny Xiao
37196261a6
improvements
2025-10-25 16:46:18 -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
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:

---
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
3d081b300f
Fix bug
2025-10-24 21:35:11 -07: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
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
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
b191ded690
Fix
2025-10-22 22:40:49 -07: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
a1012112796
a4e23b81d3
fix attachment file size limit in server backend ( #35519 )
...
fix #35512
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-21 15:07:11 +00:00
Zettat123
897e48dde3
Add quick approve button on PR page ( #35678 )
...
This PR adds a quick approve button on PR page to allow reviewers to
approve all pending checks. Only users with write permission to the
Actions unit can approve.
---------
Signed-off-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-20 18:46:37 +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
wxiaoguang
2d36a0c9ff
Fix various bugs ( #35684 )
...
1. Fix incorrect column in `applySubscribedCondition`, add a test
2. Fix debian version parsing, add more tests fix #35695
3. Fix log level for HTTP errors, fix #35651
4. Fix abused "panic" handler in API `Migrate`
5. Fix the redirection from PR to issue, add a test
6. Fix Actions variable & secret name validation, add more tests
* envNameCIRegexMatch is unnecessary, removed
* validating in "delete" function doesn't make sense, removed
7. Fix incorrect link in release email
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
2025-10-19 00:37:50 +08:00
ChristopherHX
322cb048e7
Fix workflow run event status while rerunning a failed job ( #35689 )
...
The event reported a completion status instead of requested, therefore
sent an email
2025-10-18 03:31:34 +00:00
Lunny Xiao
a7eceb57a9
Use gitrepo.Repository instead of wikipath ( #35398 )
...
Now the wikipath will not be referenced directly.
2025-10-17 20:00:44 -07:00
Surya Purohit
bf8ecf7c93
Use LFS object size instead of blob size when viewing a LFS file ( #35679 )
...
shows the main LFS filesize instead of the pointer filesize when viewing
a file
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-16 17:42:54 +08:00
Lunny Xiao
16fc3323b9
Fix a bug missed return ( #35655 )
2025-10-14 20:12:07 -07:00
silverwind
49a0a11f55
Update JS deps, misc tweaks ( #35643 )
...
- Update all JS dependencies
- Enable eslint `no-useless-assignment` and fix 2 discovered issues
- Replace `gitea-vscode` svg with new `octicon-vscode`
- Remove now-unused `@ts-expect-error` comments
- Change Monaco wrapping behaviour to match the wrapping in code view:
no wrapping indent and break on any character.
2025-10-12 21:07:15 +00:00
ChristopherHX
2401812b76
Cleanup ActionRun creation ( #35624 )
...
Closes #35622
---------
Signed-off-by: ChristopherHX <christopher.homberger@web.de>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-12 12:23:37 +00:00
鲁汀
b029ad431b
Fix code tag style problem and LFS view bug ( #35628 )
...
Fix #35567
---------
Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-12 02:38:42 +08:00
Zettat123
40f71bcd4c
Support Actions concurrency syntax ( #32751 )
...
Fix #24769
Fix #32662
Fix #33260
Depends on https://gitea.com/gitea/act/pulls/124
-
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
## ⚠️ BREAKING ⚠️
This PR removes the auto-cancellation feature added by #25716 . Users
need to manually add `concurrency` to workflows to control concurrent
workflows or jobs.
---------
Signed-off-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-10 18:58:55 +00:00
Lunny Xiao
69f5ee970c
Move some functions to gitrepo package ( #35543 )
...
Refactor Git command functions to use WithXXX methods instead of
exposing RunOpts.
This change simplifies reuse across gitrepo and improves consistency,
encapsulation, and maintainability of command options.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-07 17:06:51 +08:00
Lunny Xiao
ad2ff67343
Move archive function to repo_model and gitrepo ( #35514 )
2025-10-06 15:01:26 -07:00
Shafi Ahmed
0a0baeb3b0
fix: auto-expand and auto-scroll for actions logs ( #35570 ) ( #35583 )
...
Implements reliable auto-expand and auto-scroll behavior for the Actions
logs view.
* Expands running or unfinished steps automatically.
* Smoothly scrolls to the latest log line during execution.
* Controlled via existing “Always auto-scroll” and “Expand running
steps” options.
Fixes #35570 .
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-05 10:31:06 +08:00
Lunny Xiao
17c8aa6587
Add rebase push display wrong comments bug ( #35560 )
...
Fix #35518
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-03 15:16:17 -07:00
wxiaoguang
71360a94cb
Address some CodeQL security concerns ( #35572 )
...
Although there is no real security problem
2025-10-04 01:21:26 +08:00
6543
fbe80e6df2
Add proper error message if session provider can not be created ( #35520 )
...
the middleware that creates the session provider just panics if on
creation the config is wrong.
this is not catched and so you just get an cryptic stacktrace with no
point where to look at (as user).
## Before
```
2025/09/16 03:56:37 ...xer/stats/indexer.go:87:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories
2025/09/16 03:56:37 modules/ssh/ssh.go:387:Listen() [I] Adding SSH host key: /var/lib/gitea/data/ssh/gitea.rsa
2025/09/16 03:56:37 modules/ssh/init.go:26:Init() [I] SSH server started on :1234. Cipher list ([chacha20-poly1305@openssh.com aes128-ctr aes192-ctr aes256-ctr aes128-gcm@openssh.com aes256-gcm@openssh.com ]), key exchange algorithms ([curve25519-sha256 ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha256 diffie-hellman-group14-sha1]), MACs ([hmac-sha2-256-etm@openssh.com hmac-sha2-256 hmac-sha1])
2025/09/16 03:56:37 ...s/graceful/server.go:50:NewServer() [I] Starting new SSH server: tcp::1234 on PID: 83337
2025/09/16 03:56:38 cmd/web.go:231:func1() [F] PANIC: dial tcp 127.0.0.1:6379: connect: connection refused
gitea.com/go-chi/session@v0.0.0-20240316035857-16768d98ec96/session.go:239 (0x1cdb908)
code.gitea.io/gitea/routers/common/middleware.go:108 (0x2547f5a)
code.gitea.io/gitea/routers/web/web.go:270 (0x278b8e9)
code.gitea.io/gitea/routers/init.go:185 (0x2850d89)
code.gitea.io/gitea/cmd/web.go:211 (0x295c5ad)
code.gitea.io/gitea/cmd/web.go:262 (0x295cacb)
code.gitea.io/gitea/cmd/main.go:111 (0x2953422)
github.com/urfave/cli/v2@v2.27.2/command.go:276 (0x1cc3dfd)
github.com/urfave/cli/v2@v2.27.2/command.go:269 (0x1cc4084)
github.com/urfave/cli/v2@v2.27.2/app.go:333 (0x1cc086a)
github.com/urfave/cli/v2@v2.27.2/app.go:307 (0x2953f18)
code.gitea.io/gitea/cmd/main.go:172 (0x2953efc)
code.gitea.io/gitea/main.go:46 (0x2998498)
runtime/proc.go:283 (0x4471ca)
runtime/asm_amd64.s:1700 (0x484a20)
```
## After
```
2025/09/22 22:52:35 .../templates/htmlrenderer.go:118:initHTMLRenderer() [D] Creating static HTML Renderer
2025/09/22 22:52:35 routers/web/web.go:273:Routes() [F] common.Sessioner failed: failed to create session middleware: dial tcp 127.0.0.1:6379: connect: connection refused
```
---------
Signed-off-by: 6543 <6543@obermui.de>
2025-09-28 12:24:19 +00:00
Lunny Xiao
1f32170060
Move some functions to gitrepo package ( #35503 )
2025-09-26 10:14:20 -07:00
Lunny Xiao
7bf2972379
Move GetDiverging functions to gitrepo ( #35524 )
...
Extracted from #35469
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-09-26 15:15:42 +00:00
wxiaoguang
d83676c97a
Fix markup init after issue comment editing ( #35536 )
...
Fix #35533
2025-09-25 09:29:32 -07:00
Lunny Xiao
198f37e33c
Move updateref and removeref to gitrepo and remove unnecessary open repository ( #35511 )
...
Extracted from #35077
`UpdateRef` and `RemoveRef` will call git commands even for gogit
version.
2025-09-19 08:04:18 -07:00
ChristopherHX
9a0ec53ee3
Stream repo zip/tar.gz/bundle achives by default ( #35487 )
...
Initial implementation of linked proposal.
* Closes #29942
* Fix #34003
* Fix #30443
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-09-19 11:51:21 +08:00