1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-06 04:23:43 -04:00
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 Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
main_test.go
run_job_list.go
run_job.go
run_list.go Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
run.go Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
runner_list.go
runner_token_test.go
runner_token.go
runner.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
schedule_list.go
schedule_spec_list.go
schedule_spec.go
schedule.go Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
status.go
task_list.go
task_output.go
task_step.go
task.go Fix incorrect run order of action jobs (#28367) 2023-12-06 22:10:05 +00:00
tasks_version.go
utils_test.go
utils.go
variable.go Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00