gitea/models
Zettat123 0d740a6a72
Some checks are pending
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
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
..
actions Improve online runner check (#35722) 2025-10-24 12:02:52 -07:00
activities Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin Don't block site admin's operation if SECRET_KEY is lost (#35721) 2025-10-22 12:35:56 +08:00
asymkey Refactor legacy code (#35708) 2025-10-20 11:43:08 -07:00
auth Don't block site admin's operation if SECRET_KEY is lost (#35721) 2025-10-22 12:35:56 +08:00
avatars Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
db Fix various typos in codebase (#35480) 2025-09-13 10:34:43 -04:00
dbfs Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
fixtures Add rebase push display wrong comments bug (#35560) 2025-10-03 15:16:17 -07:00
git Refactor Actions Token Access (#35688) 2025-10-22 11:12:31 +00:00
issues Fix various bugs (#35684) 2025-10-19 00:37:50 +08:00
migrations Support Actions concurrency syntax (#32751) 2025-10-10 18:58:55 +00:00
organization Make restricted users can access public repositories (#35693) 2025-10-21 15:30:24 +08:00
packages Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
perm Refactor Actions Token Access (#35688) 2025-10-22 11:12:31 +00:00
project Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
pull Start automerge check again after the conflict check and the schedule (#34989) 2025-07-08 14:51:16 +00:00
renderhelper Fix commit message rendering and some UI problems (#34680) 2025-06-10 23:20:32 +08:00
repo Make restricted users can access public repositories (#35693) 2025-10-21 15:30:24 +08:00
secret Don't block site admin's operation if SECRET_KEY is lost (#35721) 2025-10-22 12:35:56 +08:00
shared/types Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
system Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
unit Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
unittest Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
user Refactor Actions Token Access (#35688) 2025-10-22 11:12:31 +00:00
webhook Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
repo_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
repo.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00