mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 03:52:36 +02:00
Remove scheduled action tasks if the repo is archived (#30224)
Fix #30220
This commit is contained in:
1 parent
751997ad34
commit
1ef2eb50d8
4 files changed
+29
-2
No files matched your search
@@ -66,6 +66,11 @@ func startTasks(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
if row.Repo.IsArchived {
|
||||
// Skip if the repo is archived
|
||||
continue
|
||||
}
|
||||
|
||||
cfg, err := row.Repo.GetUnit(ctx, unit.TypeActions)
|
||||
if err != nil {
|
||||
if repo_model.IsErrUnitTypeNotExist(err) {
|
||||
|
||||
Reference in new issue
Block a user