0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 21:00:03 +01:00
gitea/models/actions
Jason Song b150ff0bab
Cancel previous runs of the same PR automatically (#29961)
Follow #25716. Also cancel previous runs for `pull_request_sync`.

It's not a bug since it original PR said "if the event is push".

The main change is
https://github.com/go-gitea/gitea/pull/29961/files#diff-08adda3f8ae0360937f46abb1f4418603bd3518522baa356be11c6c7ac4abcc3.

And also rename `CancelRunningJobs` to `CancelPreviousJobs` to make it
more clear.
2024-03-21 15:01:35 +08:00
..
artifact.go
main_test.go
run_job_list.go
run_job.go
run_list.go
run.go Cancel previous runs of the same PR automatically (#29961) 2024-03-21 15:01:35 +08:00
runner_list.go
runner_token_test.go
runner_token.go
runner.go
schedule_list.go
schedule_spec_list.go
schedule_spec.go
schedule.go Cancel previous runs of the same PR automatically (#29961) 2024-03-21 15:01:35 +08:00
status.go
task_list.go
task_output.go
task_step.go
task.go
tasks_version.go
utils_test.go
utils.go
variable.go