gitea/routers/web
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
..
admin split admin config settings templates to make it maintain easier (#35294) 2025-09-04 15:42:26 +07:00
auth Fix a bug missed return (#35655) 2025-10-14 20:12:07 +07:00
devtest fix: auto-expand and auto-scroll for actions logs (#35570) (#35583) 2025-10-05 10:31:06 +07:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +07:00
explore Address some CodeQL security concerns (#35572) 2025-10-04 01:21:26 +07:00
feed Fix context usages (#35348) 2025-08-27 11:00:01 +07:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +07:00
misc enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +07:00
org Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +07:00
repo Improve online runner check (#35722) 2025-10-24 12:02:52 +07:00
shared when using rules to delete packages, remove unclean bugs (#34632) 2025-06-18 04:47:49 +07:00
user Address some CodeQL security concerns (#35572) 2025-10-04 01:21:26 +07:00
base.go Redirect to a presigned URL of HEAD for HEAD requests (#35088) 2025-07-16 11:22:45 +07:00
githttp.go Fix git client accessing renamed repo (#34034) 2025-03-28 07:28:58 +07:00
goget.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
home.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +07:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +07:00
nodeinfo.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +07:00
swagger_json.go Improve OAuth2 provider (correct Issuer, respect ENABLED) (#34966) 2025-07-06 13:36:45 +07:00
web.go Add quick approve button on PR page (#35678) 2025-10-20 18:46:37 +07:00
webfinger.go Fix context usages (#35348) 2025-08-27 11:00:01 +07:00