0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-01 09:54:43 +01:00
gitea/routers/api/v1
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
..
activitypub
admin Add get actions runner registration token for API routes, repo, org, user and global level (#27144) 2023-12-27 07:57:54 +00:00
misc
notify
org Add get actions runner registration token for API routes, repo, org, user and global level (#27144) 2023-12-27 07:57:54 +00:00
packages
repo Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00
settings
shared Add get actions runner registration token for API routes, repo, org, user and global level (#27144) 2023-12-27 07:57:54 +00:00
swagger
user Add get actions runner registration token for API routes, repo, org, user and global level (#27144) 2023-12-27 07:57:54 +00:00
utils Fix: system webhooks API bug (#28531) 2023-12-31 04:31:50 +00:00
api.go Require token for GET subscription endpoint (#28765) 2024-01-12 01:57:58 +00:00