1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-05-02 13:45:28 +00:00
gitea/models
ChristopherHX 21b43fce08
Actions Runner rest api ()
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  (implements point 1 and 2)
Via needs discovered in , 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 +00:00
..
actions Actions Runner rest api () 2025-04-18 15:22:41 +00:00
activities Enable addtional linters () 2025-04-01 10:14:01 +00:00
admin Fix omitempty bug () 2025-02-20 12:39:21 -08:00
asymkey Cache GPG keys, emails and users when list commits () 2025-04-09 16:34:38 +00:00
auth Add new CLI flags to set name and scopes when creating a user with access token () 2025-04-02 22:00:54 +08:00
avatars Replace 10 more gt- classes with tw- () 2024-03-22 13:45:10 +00:00
db Enable addtional linters () 2025-04-01 10:14:01 +00:00
dbfs Enable testifylint rules () 2025-03-31 01:53:48 -04:00
fixtures Actions Runner rest api () 2025-04-18 15:22:41 +00:00
git Rework create/fork/adopt/generate repository to make sure resources will be cleanup once failed () 2025-04-07 22:12:54 -07:00
issues feat: Add sorting by exclusive labels (issue priority) () 2025-04-10 17:18:07 +00:00
migrations feat: Add sorting by exclusive labels (issue priority) () 2025-04-10 17:18:07 +00:00
organization Check user/org repo limit instead of doer () 2025-04-07 23:45:31 -07:00
packages Swift files can be passed either as file or as form value () 2025-04-18 20:09:56 +08:00
perm Fix team permission () 2025-04-08 04:15:15 +00:00
project Enable addtional linters () 2025-04-01 10:14:01 +00:00
pull Automerge supports deleting branch automatically after merging () 2025-01-10 03:51:03 +08:00
renderhelper Fix markdown render behaviors () 2025-04-05 11:56:48 +08:00
repo Uniform all temporary directories and allow customizing temp path () 2025-04-08 16:15:28 +00:00
secret Added Description Field for Secrets and Variables () 2025-03-17 19:24:54 +00:00
shared/types Refactor locale&string&template related code () 2024-02-14 21:48:45 +00:00
system Enable testifylint rules () 2025-03-31 01:53:48 -04:00
unit Fix team permission () 2025-04-08 04:15:15 +00:00
unittest Uniform all temporary directories and allow customizing temp path () 2025-04-08 16:15:28 +00:00
user Cache GPG keys, emails and users when list commits () 2025-04-09 16:34:38 +00:00
webhook fix webhook url () 2025-04-13 02:24:32 +00:00
main_test.go
repo_test.go Enable testifylint rules () 2025-03-31 01:53:48 -04:00
repo.go Fix issue comment number () 2024-12-30 14:35:46 -08:00