]> source.dussan.org Git - gitea.git/commit
Remove action runners on user deletion (#27902) (#27908)
authorGiteabot <teabot@gitea.io>
Sun, 5 Nov 2023 13:20:00 +0000 (21:20 +0800)
committerGitHub <noreply@github.com>
Sun, 5 Nov 2023 13:20:00 +0000 (13:20 +0000)
commit28e3d0b0d356edf10267cdf51a652174b57cc314
treec024e07abfe950ecff685f8e5807313b9e8d0101
parent4c67c054805791c0446409fd1ca96ee2a9cb79f6
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 009ca7223dab054f7f760b7ccae69e745eebfabb)

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
models/actions/runner.go
modules/doctor/dbconsistency.go
services/user/delete.go