forgejo/models
Lunny Xiao 3b3747ffe8
Fix schedule tasks bugs (#28691)
Fix #28157

This PR fix the possible bugs about actions schedule.

- 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.

(cherry picked from commit 97292da960)

Conflicts:
	modules/actions/github.go
	routers/web/repo/setting/default_branch.go
	routers/web/repo/setting/setting.go
	services/repository/branch.go
	services/repository/setting.go
	tests/integration/actions_trigger_test.go
2024-03-25 16:25:02 +01:00
..
actions Fix schedule tasks bugs (#28691) 2024-03-25 16:25:02 +01:00
activities Add more stats tables (#29730) 2024-03-20 08:46:28 +01:00
admin
asymkey
auth remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
avatars
db Partially enable MSSQL case-sensitive collation support (#29238) 2024-03-11 23:36:59 +07:00
dbfs
fixtures fix action fixtures 2024-03-24 07:12:31 +01:00
forgejo/semver
forgejo_migrations Allow users to hide all "Add more units..." hints 2024-03-21 08:15:51 +01:00
git Fix schedule tasks bugs (#28691) 2024-03-25 16:25:02 +01:00
issues fix action fixtures 2024-03-24 07:12:31 +01:00
migrations migration v1_11/v111.go: Unknown columns in 'field list' 2024-03-24 07:12:31 +01:00
organization
packages Fix incorrect relative/absolute URL usages (#29531) 2024-03-06 12:10:46 +08:00
perm Users with read permission of pull requests can be assigned too (#27263) 2024-02-26 22:30:27 +01:00
project Partially enable MSSQL case-sensitive collation support (#29238) 2024-03-11 23:36:59 +07:00
pull
repo Fix schedule tasks bugs (#28691) 2024-03-25 16:25:02 +01:00
secret Make runs-on support variable expression (#29468) 2024-03-11 23:36:59 +07:00
shared/types Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
system
unit
unittest [Windows] prevent ? in testdata path 2024-03-15 13:15:46 +01:00
user Allow users to hide all "Add more units..." hints 2024-03-21 08:15:51 +01:00
webhook Merge pull request '[TESTS] fail when log.Error is called' (#2657) from oliverpool/forgejo:fail_test_on_log_error into forgejo 2024-03-24 07:28:31 +00:00
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go