0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-18 21:40:08 +01:00
forgejo/services
Bo-Yi Wu 44781f9f5c
Implement auto-cancellation of concurrent jobs if the event is push ()
- cancel running jobs if the event is push
- Add a new function `CancelRunningJobs` to cancel all running jobs of a
run
- Update `FindRunOptions` struct to include `Ref` field and update its
condition in `toConds` function
- Implement auto cancellation of running jobs in the same workflow in
`notify` function

related task: https://github.com/go-gitea/gitea/pull/22751/

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: delvh <dev.lh@web.de>
2023-07-25 11:15:55 +08:00
..
actions Implement auto-cancellation of concurrent jobs if the event is push () 2023-07-25 11:15:55 +08:00
agit Add context parameter to some database functions () 2023-07-22 22:14:27 +08:00
asymkey
attachment
auth Bump github.com/golang-jwt/jwt to v5 () 2023-07-19 09:57:10 +00:00
automerge
context
convert Add context parameter to some database functions () 2023-07-22 22:14:27 +08:00
cron Replace gogs/cron with go-co-op/gocron () 2023-07-24 04:13:41 +00:00
externalaccount
forms Support copy protected branch from template repository () 2023-07-21 12:32:47 +08:00
gitdiff
issue Add context parameter to some database functions () 2023-07-22 22:14:27 +08:00
lfs Bump github.com/golang-jwt/jwt to v5 () 2023-07-19 09:57:10 +00:00
mailer
markup
migrations Add context parameter to some database functions () 2023-07-22 22:14:27 +08:00
mirror
org
packages Fix version in rpm repodata/primary.xml.gz () 2023-07-21 19:41:38 +00:00
pull Add context parameter to some database functions () 2023-07-22 22:14:27 +08:00
release
repository Add context parameter to some database functions () 2023-07-22 22:14:27 +08:00
task
user fix incorrect repo url when changed the case of ownername () 2023-07-14 13:42:10 +08:00
webhook
wiki