forgejo/services
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
agit Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-26 22:30:26 +01:00
asymkey Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
attachment Add support for API blob upload of release attachments (#29507) 2024-03-06 12:10:46 +08:00
auth Replace more gt- with tw- (#29678) 2024-03-11 23:36:59 +07:00
automerge Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
context Merge pull request '[PORT] Unify search boxes (gitea#29530)' (#2688) from snematoda/port-29530 into forgejo 2024-03-24 05:33:13 +00:00
contexttest Make "/user/login" page redirect if the current user has signed in (#29583) 2024-03-11 23:36:58 +07:00
convert Allow users to hide all "Add more units..." hints 2024-03-21 08:15:51 +01:00
cron Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
doctor [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2024-02-05 16:09:41 +01:00
externalaccount Final round of db.DefaultContext refactor (#27587) 2023-10-14 08:37:24 +00:00
feed More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
forgejo [UPGRADE] run sanity checks before the database is upgraded 2024-02-05 14:44:33 +01:00
forms Allow users to hide all "Add more units..." hints 2024-03-21 08:15:51 +01:00
gitdiff Fix incorrect diff expander for deletion of last lines in a file (#29501) 2024-03-06 12:10:45 +08:00
indexer Fix missing issue search index update when changing status (#28325) 2023-12-03 12:22:44 +01:00
issue Allow non-admin users to delete review requests (#29057) 2024-02-26 22:30:27 +01:00
lfs Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
mailer Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-20 08:46:28 +01:00
markup Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
migrations [Windows] prevent ? in testdata path 2024-03-15 13:15:46 +01:00
mirror Use repo object format name instead of detecting from git repository (#29702) 2024-03-20 08:46:28 +01:00
notify [GITEA] notifies admins on new user registration 2024-02-05 16:09:28 +01:00
org Delete repos of org when purge delete user (#27273) 2023-10-19 13:16:11 +00:00
packages packages: skip error logging on duplicate 2024-03-24 07:12:31 +01:00
pull fix commit_status 2024-03-24 07:11:19 +01:00
release Use repo object format name instead of detecting from git repository (#29702) 2024-03-20 08:46:28 +01:00
repository Fix schedule tasks bugs (#28691) 2024-03-25 16:25:02 +01:00
secrets Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
task Fix incorrect ctx usage in defer function (#27740) 2023-10-22 14:12:27 +00:00
uinotification Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
user Allow users to hide all "Add more units..." hints 2024-03-21 08:15:51 +01:00
webhook fix webhook fixtures 2024-03-24 07:11:19 +01:00
wiki Fix schedule tasks bugs (#28691) 2024-03-25 16:25:02 +01:00