gitea/models/actions
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
..
artifact.go Artifacts download api for artifact actions v4 (#33510) 2025-02-16 08:32:54 +08:00
main_test.go Add unit tests for action runner token (#27670) 2023-10-19 07:24:24 +00:00
run_job_list.go Download actions job logs from API (#33858) 2025-03-26 11:30:52 -07:00
run_job_status_test.go Fix various trivial problems (#32861) 2024-12-17 01:15:18 +00:00
run_job.go Download actions job logs from API (#33858) 2025-03-26 11:30:52 -07:00
run_list.go Fix Untranslated Text on Actions Page (#33635) 2025-02-18 11:29:08 +00:00
run.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
runner_list.go Refactor more filterslice (#30370) 2024-04-10 04:18:41 +00:00
runner_token_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
runner_token.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
runner.go Actions Runner rest api (#33873) 2025-04-18 15:22:41 +00:00
schedule_list.go Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) 2024-04-11 15:11:32 +08:00
schedule_spec_list.go Small refactor to reduce unnecessary database queries and remove duplicated functions (#33779) 2025-03-04 18:25:20 +00:00
schedule_spec_test.go Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +00:00
schedule_spec.go Use UTC as default timezone when schedule Actions cron tasks (#31742) 2024-08-01 10:02:46 +00:00
schedule.go Fix auto concurrency cancellation skips commit status updates (#33764) 2025-03-10 15:58:48 -07:00
status.go Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
task_list.go Drop IDOrderDesc for listing Actions task and always order by id DESC (#31150) 2024-05-31 02:30:02 +00:00
task_output.go Fix no ActionTaskOutput table waring (#28149) 2023-11-21 08:02:51 +00:00
task_step.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
task.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
tasks_version.go Update misspell to 0.5.1 and add misspellings.csv (#30573) 2024-04-27 08:03:49 +00:00
utils_test.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
utils.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
variable.go Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +00:00