0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-01 12:34:36 +01:00
gitea/routers/web/repo
Zettat123 2f060c5834
Fix bugs in rerunning jobs (#29955)
Fix #28761
Fix #27884
Fix #28093

## Changes

### Rerun all jobs
When rerun all jobs, status of the jobs with `needs` will be set to
`blocked` instead of `waiting`. Therefore, these jobs will not run until
the required jobs are completed.

### Rerun a single job
When a single job is rerun, its dependents should also be rerun, just
like GitHub does
(https://github.com/go-gitea/gitea/issues/28761#issuecomment-2008620820).
In this case, only the specified job will be set to `waiting`, its
dependents will be set to `blocked` to wait the job.

### Show warning if every job has `needs`
If every job in a workflow has `needs`, all jobs will be blocked and no
job can be run. So I add a warning message.

<img
src="https://github.com/go-gitea/gitea/assets/15528715/88f43511-2360-465d-be96-ee92b57ff67b"
width="480px" />
2024-03-22 03:19:17 +00:00
..
actions Fix bugs in rerunning jobs (#29955) 2024-03-22 03:19:17 +00:00
setting Fix incorrect menu/link on webhook edit page (#29709) 2024-03-14 01:37:15 +00:00
activity.go
attachment.go
blame.go
branch.go
cherry_pick.go
code_frequency.go
commit.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
compare.go Fix missing error check of bufio.Scanner (#29882) 2024-03-19 02:20:36 +00:00
contributors.go
download.go
editor.go Editor error message misleading due to re-used key. (#29859) 2024-03-18 02:23:08 +00:00
editor_test.go
find.go
fork.go Move fork router functions to a standalone file (#29756) 2024-03-13 10:07:53 +00:00
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go Refactor StringsToInt64s (#29967) 2024-03-21 15:07:35 +00:00
issue_content_history.go
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
main_test.go
middlewares.go
migrate.go
milestone.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
packages.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
patch.go
projects.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
projects_test.go
pull.go Move fork router functions to a standalone file (#29756) 2024-03-13 10:07:53 +00:00
pull_review.go
pull_review_test.go Fix template error when comment review doesn't exist (#29888) 2024-03-19 04:19:48 +00:00
recent_commits.go
release.go
release_test.go
render.go
repo.go Refactor URL detection (#29960) 2024-03-21 12:02:34 +00:00
search.go Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
topic.go
treelist.go
view.go
view_test.go
wiki.go
wiki_test.go