0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 07:43:18 -05:00
forgejo/services/actions
Bo-Yi Wu 44781f9f5c
Implement auto-cancellation of concurrent jobs if the event is push (#25716)
- 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
..
clear_tasks.go Fix content holes in Actions task logs file (#25560) 2023-06-28 19:07:29 +02:00
commit_status.go Remove commit status running and warning to align GitHub (#25839) 2023-07-21 16:24:36 +08:00
init.go Improve queue and logger context (#24924) 2023-05-26 07:31:55 +00:00
job_emitter.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
job_emitter_test.go
notifier.go For API attachments, use API URL (#25639) 2023-07-10 09:31:19 +00:00
notifier_helper.go Implement auto-cancellation of concurrent jobs if the event is push (#25716) 2023-07-25 11:15:55 +08:00