forgejo/models/actions
Giteabot 28e3d0b0d3
Remove action runners on user deletion (#27902) (#27908)
Backport #27902 by @earl-warren

- On user deletion, delete action runners that the user has created.
- Add a database consistency check to remove action runners that have
nonexistent belonging owner.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1720

(cherry picked from commit 009ca7223d)

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
2023-11-05 13:20:00 +00:00
..
artifact.go Artifacts retention and auto clean up (#26131) 2023-09-06 07:41:06 +00:00
run.go Add a new column schedule_id for action_run to track (#26975) 2023-09-08 23:01:19 +08:00
run_job.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
run_job_list.go
run_list.go Implement auto-cancellation of concurrent jobs if the event is push (#25716) 2023-07-25 11:15:55 +08:00
runner.go Remove action runners on user deletion (#27902) (#27908) 2023-11-05 13:20:00 +00:00
runner_list.go
runner_token.go Redefine the meaning of column is_active to make Actions Registration Token generation easier (#27143) (#27304) 2023-09-28 04:15:53 +00:00
schedule.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
schedule_list.go chore(actions): support cron schedule task (#26655) 2023-08-24 03:06:51 +00:00
schedule_spec.go chore(actions): support cron schedule task (#26655) 2023-08-24 03:06:51 +00:00
schedule_spec_list.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
status.go
task.go Add optimistic lock to ActionRun table (#26563) 2023-08-21 14:07:52 +00:00
task_list.go
task_output.go
task_step.go
tasks_version.go Reduce unnecessary DB queries for Actions tasks (#25199) 2023-07-24 06:11:27 +00:00
utils.go
utils_test.go
variable.go