1
0
Fork 0
forgejo/routers/web
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
..
admin Customizable "Open with" applications for repository clone (#29320) 2024-03-23 11:58:54 +01:00
auth
devtest
events
explore Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
feed
healthcheck
misc
org
repo Fix schedule tasks bugs (#28691) 2024-03-25 16:25:02 +01:00
shared [BUG] Reflect Cargo index state in settings 2024-03-20 09:17:49 +01:00
user Merge pull request 'Allow users to hide all "Add more units..." hints' (#2533) from algernon/forgejo:less-is-more into forgejo 2024-03-24 05:42:37 +00:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Merge pull request 'Allow users to hide all "Add more units..." hints' (#2533) from algernon/forgejo:less-is-more into forgejo 2024-03-24 05:42:37 +00:00
webfinger.go