gitea/routers/web/repo/actions
Zettat123 04b6f90889
Fix actions rerun bug (#35783) (#35784)
Backport #35783

Fix #35780, fix #35782 

Rerunning a job or a run is only allowed when the job is done and the
run is done.

Related PR: #34970


98ff7d0773/routers/web/repo/actions/view.go (L239)

We don't need to check run status again in `rerunJob` because the run
status has been changed before `rerunJob`.

---

In fact, the bug described in the above issues will not occur on the
main branch. Because `getRunJobs` is called before updating the run.


98ff7d0773/routers/web/repo/actions/view.go (L425-L435)

So the run status that `rerunJob` checks is the old status.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-30 09:31:42 +01:00
..
actions_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
actions.go Add "Cancel workflow run" button to Actions list page (#34817) 2025-06-22 19:05:16 -04:00
badge.go Add flat-square action badge style (#34062) 2025-04-01 09:42:10 +00:00
main_test.go Fix bug on action list deleted branch (#32848) 2024-12-16 05:38:39 +08:00
view.go Fix actions rerun bug (#35783) (#35784) 2025-10-30 09:31:42 +01:00