gitea/routers/api/v1/repo
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 +00:00
..
action.go Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
actions_run.go Download actions job logs from API (#33858) 2025-03-26 11:30:52 -07:00
avatar.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
blob.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
branch.go Refactor Branch struct in package modules/git (#33980) 2025-04-02 17:31:32 +00:00
collaborators.go Fix team permission (#34128) 2025-04-08 04:15:15 +00:00
commits.go Refactor Branch struct in package modules/git (#33980) 2025-04-02 17:31:32 +00:00
compare.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
download.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
file.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
fork.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
git_hook.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
git_ref.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
hook.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
hook_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
issue.go Allow filtering issues by any assignee (#33343) 2025-03-21 04:25:36 +00:00
issue_attachment.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
issue_comment.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
issue_comment_attachment.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
issue_dependency.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
issue_label.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
issue_pin.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
issue_reaction.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
issue_stopwatch.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
issue_subscription.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
issue_tracked_time.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
key.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
label.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
language.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
license.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
migrate.go Fix bug when migrating repository (#34182) 2025-04-14 04:48:03 +00:00
milestone.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
mirror.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
notes.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
patch.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
pull.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
pull_review.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
release.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
release_attachment.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
release_tags.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
repo.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
repo_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
star.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
status.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
subscriber.go Refactor error system (#33626) 2025-02-17 12:41:03 -08:00
tag.go Avoid creating unnecessary temporary cat file sub process (#33942) 2025-04-04 16:19:19 -07:00
teams.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
topic.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
transfer.go Fix return bug (#34093) 2025-04-01 17:36:46 -04:00
tree.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
wiki.go Don't create duplicated functions for code repositories and wiki repositories (#33924) 2025-03-19 11:17:19 -07:00