0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-01 15:39:26 +01:00
gitea/models
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
..
actions Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
activities Refactor timeutil package (#28623) 2023-12-28 10:09:57 +00:00
admin
asymkey Refactor timeutil package (#28623) 2023-12-28 10:09:57 +00:00
auth Avoid cycle-redirecting user/login page (#28636) 2023-12-30 08:48:34 +00:00
avatars
db Recommend/convert to use case-sensitive collation for MySQL/MSSQL (#28662) 2024-01-10 11:03:23 +00:00
dbfs
fixtures
git Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
issues Upgrade xorm to new version which supported update join for all supported databases (#28590) 2023-12-31 05:00:35 +00:00
migrations Fix migration test (#28659) 2023-12-30 21:54:48 +08:00
organization
packages
perm
project
pull
repo Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
secret
shared/types
system
unit
unittest
user Normalize oauth email username (#28561) 2024-01-03 18:48:20 -06:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go