gitea/models/actions
Lunny Xiao 97292da960
Fix schedule tasks bugs (#28691)
Fix #28157 

This PR fix the possible bugs about actions schedule.

## The Changes

- Move `UpdateRepositoryUnit` and `SetRepoDefaultBranch` from models to
service layer
- Remove schedules plan from database and cancel waiting & running
schedules tasks in this repository when actions unit has been disabled
or global disabled.
- Remove schedules plan from database and cancel waiting & running
schedules tasks in this repository when default branch changed.
2024-01-12 21:50:38 +00:00
..
artifact.go
main_test.go
run.go Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
run_job.go
run_job_list.go
run_list.go Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
runner.go
runner_list.go
runner_token.go
runner_token_test.go
schedule.go Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
schedule_list.go
schedule_spec.go
schedule_spec_list.go
status.go
task.go
task_list.go
task_output.go
task_step.go
tasks_version.go
utils.go
utils_test.go
variable.go