Commit Graph

2242 Commits (b4ebf1b6d5bf97f7349bb0dc1f06f328cfde94fb)

Author SHA1 Message Date
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
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
wxiaoguang 9ae2e9e76f
Always create Actions logs stepsContainer (#35654) 2025-10-15 04:07:58 +00: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
鲁汀 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
鲁汀 327d0a7fdd
The status icon of the Action step is consistent with GitHub (#35618)
Before:
running:
<img width="45" height="34" alt="image"
src="https://github.com/user-attachments/assets/e2508f98-2f1f-4b7e-a80c-30b406f42531"
/>
waiting:
<img width="44" height="33" alt="image"
src="https://github.com/user-attachments/assets/e7c8164e-fdc3-4546-b088-31166544edb0"
/>

---
After:
running:
<img width="49" height="43" alt="image"
src="https://github.com/user-attachments/assets/b5a9b245-a995-458a-af23-d1723daa3692"
/>
waiting:
<img width="42" height="44" alt="image"
src="https://github.com/user-attachments/assets/ff72551e-cfb5-4665-af52-938ef0cf8f1c"
/>

`gitea-running.svg` is not an icon from the @ primer/octicon library,
extracted from the Github page. Github did not assign a clear class name
to this icon

---------

Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com>
Co-authored-by: lutinglt <lutinglt@users.noreply.github.com>
2025-10-10 11:25:03 -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
wxiaoguang 71360a94cb
Address some CodeQL security concerns (#35572)
Although there is no real security problem
2025-10-04 01:21:26 +08:00
Kausthubh J Rao c4532101a4
fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567)
Tag creation/deletion was triggering push webhooks even when branch
filters were configured, causing unintended pipeline executions.

This change modifies the branch filter logic to check the full ref
name directly instead of first determining if it's a "branch" event.

Fixes: Tag events now properly respect branch filters
- Add getPayloadRef() function to extract full ref names
- Update PrepareWebhook() to use direct ref matching
- Prevents refs/tags/* from matching refs/heads/* filters

Closes #35449

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2025-10-03 08:51:57 +02:00
silverwind b907b9fb1a
Enable a few more tsconfig options (#35553)
Enable a few more useful options in tsconfig. `noImplicitReturns` had
two cases which I've fixed. Also, partially sort the file.
2025-09-30 21:43:41 -07:00
wxiaoguang d83676c97a
Fix markup init after issue comment editing (#35536)
Fix #35533
2025-09-25 09:29:32 -07:00
silverwind 6033c47f90
Enable more markdown paste features in textarea editor (#35494)
Enable the [same paste
features](https://github.com/github/paste-markdown#paste-markdown-objects)
that GitHub has, notably the ability to paste text containing HTML links
and have them automatically turn into Markdown links. As far as I can
tell, previous paste features all work as expected.

---------

Signed-off-by: silverwind <me@silverwind.io>
2025-09-16 23:55:57 +00:00