forgejo/models/migrations
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
..
base Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
fixtures
v1_6 Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
v1_7
v1_8 Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
v1_9
v1_10 Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
v1_11 Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
v1_12
v1_13 Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
v1_14 Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
v1_15 Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
v1_16 Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
v1_17
v1_18
v1_19 Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
v1_20 Redesign Scoped Access Tokens (#24767) 2023-06-04 20:57:16 +02:00
v1_21 Implement auto-cancellation of concurrent jobs if the event is push (#25716) 2023-07-25 11:15:55 +08:00
migrations.go Implement auto-cancellation of concurrent jobs if the event is push (#25716) 2023-07-25 11:15:55 +08:00