gitea/models/actions
Zettat123 bb1f52347a
Add a doctor command to fix inconsistent run status (#35840)
#35783 fixes an actions rerun bug. Due to this bug, some runs may be
incorrectly marked as `StatusWaiting` even though all the jobs are in
done status. These runs cannot be run or cancelled. This PR adds a new
doctor command to fix the inconsistent run status.

```
gitea doctor check --run fix-actions-unfinished-run-status --fix
```

Thanks to @ChristopherHX  for the test.
2025-11-04 03:32:26 +07:00
..
artifact.go actions artifacts api list/download check status upload confirmed (#34273) 2025-04-28 16:31:53 +07:00
main_test.go Fix incorrect pull request counter (#35819) 2025-11-03 20:52:13 +07:00
run.go Fix incorrect pull request counter (#35819) 2025-11-03 20:52:13 +07:00
run_job.go Refactor ActionRunJob parsing into a reusable function (#35623) 2025-10-11 12:58:36 +07:00
run_job_list.go Support Actions `concurrency` syntax (#32751) 2025-10-10 18:58:55 +07:00
run_job_status_test.go Fix job status aggregation logic (#35000) 2025-07-17 21:12:02 +07:00
run_list.go Support Actions `concurrency` syntax (#32751) 2025-10-10 18:58:55 +07:00
run_test.go Add a doctor command to fix inconsistent run status (#35840) 2025-11-04 03:32:26 +07:00
runner.go Improve online runner check (#35722) 2025-10-24 12:02:52 +07:00
runner_list.go
runner_token.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +07:00
runner_token_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +07:00
schedule.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 +07:00
schedule_list.go Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) 2024-04-11 15:11:32 +07:00
schedule_spec.go Use UTC as default timezone when schedule Actions cron tasks (#31742) 2024-08-01 10:02:46 +07:00
schedule_spec_list.go Small refactor to reduce unnecessary database queries and remove duplicated functions (#33779) 2025-03-04 18:25:20 +07:00
schedule_spec_test.go Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +07:00
status.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
task.go Improve online runner check (#35722) 2025-10-24 12:02:52 +07:00
task_list.go Add endpoint deleting workflow run (#34337) 2025-05-13 19:18:13 +07:00
task_output.go
task_step.go
tasks_version.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 +07:00
utils.go Use run-name and evaluate workflow variables (#34301) 2025-05-20 02:24:10 +07:00
utils_test.go
variable.go Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +07:00