gitea/routers/web
ChristopherHX 21b43fce08
Actions Runner rest api (#33873)
Implements runner apis based on
https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#list-self-hosted-runners-for-an-organization

- Add Post endpoints for registration-token, google/go-github revealed
this as problem
  - We should deprecate Get Endpoints, leaving them for compatibility
- Get endpoint of admin has api path /admin/runners/registration-token
that feels wrong, /admin/actions/runners/registration-token seems more
consistent with user/org/repo api
- Get Runner Api
- List Runner Api
- Delete Runner Api

- Tests admin / user / org / repo level endpoints

Related to #33750 (implements point 1 and 2)
Via needs discovered in #32461, this runner api is needed to allow
cleanup of runners that are deallocated without user interaction.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-18 15:22:41 +07:00
..
admin Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
auth Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
devtest Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +07:00
explore Improve issue & code search (#33860) 2025-03-13 11:07:48 +07:00
feed Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +07:00
misc Refactor cache-control (#33861) 2025-03-13 07:04:50 +07:00
org Restore form inputs on organization create error (#34201) 2025-04-15 08:21:51 +07:00
repo Fix some trivial problems (#34237) 2025-04-18 22:56:50 +07:00
shared Actions Runner rest api (#33873) 2025-04-18 15:22:41 +07:00
user refactor organization menu (#33928) 2025-04-10 12:12:55 +07:00
base.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +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 Refactor error system (#33610) 2025-02-16 22:13:17 +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 Move context from modules to services (#29440) 2024-02-27 08:12:22 +07:00
web.go Add middleware for request prioritization (#33951) 2025-04-14 16:25:48 +07:00
webfinger.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00