gitea/templates
ChristopherHX cda90eca31
Add workflow_run api + webhook (#33964)
Implements 
- https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run--code-samples
- https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#get-a-job-for-a-workflow-run--code-samples
- https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository
- https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run
  - `/actions/runs` for global + user + org (Gitea only)
  - `/actions/jobs` for global + user + org + repository (Gitea only)
  - workflow_run webhook + action trigger
    - limitations
- workflow id is assigned to a string, this may result into problems in
strongly typed clients

Fixes
- workflow_job webhook url to no longer contain the `runs/<run>` part to
align with api
- workflow instance does now use it's name inside the file instead of
filename if set

Refactoring
- Moved a lot of logic from workflows/workflow_job into a shared module
used by both webhook and api

TODO
- [x] Verify Keda Compatibility
- [x] Edit Webhook API bug is resolved
 
Closes https://github.com/go-gitea/gitea/issues/23670
Closes https://github.com/go-gitea/gitea/issues/23796
Closes https://github.com/go-gitea/gitea/issues/24898
Replaces https://github.com/go-gitea/gitea/pull/28047 and is much more
complete

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-20 20:14:00 +08:00
..
admin Fix autofocus behavior (#34397) 2025-05-08 18:26:18 +00:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
custom
devtest markup: improve code block readability and isolate copy button (#34009) 2025-04-19 05:53:39 +00:00
explore Fix span svg layout (#34185) 2025-04-13 12:44:57 +08:00
mail
org Misc CSS fixes (#34638) 2025-06-07 19:57:07 +02:00
package Refactor packages (func name & UI) (#34773) 2025-06-18 19:04:24 +00:00
projects Add fullscreen mode as a more efficient operation way to view projects (#34081) 2025-04-23 13:42:22 +08:00
repo Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +08:00
shared Add endpoint deleting workflow run (#34337) 2025-05-13 19:18:13 +00:00
status Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
swagger Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +08:00
user Refactor commit message rendering and fix bugs (#34412) 2025-05-09 20:42:35 +08:00
webhook
home.tmpl Misc CSS fixes (#34638) 2025-06-07 19:57:07 +02:00
install.tmpl Fix various trivial frontend problems (#34263) 2025-04-24 09:11:54 +08:00
post-install.tmpl Fix various trivial frontend problems (#34263) 2025-04-24 09:11:54 +08:00