0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 05:39:14 +01:00
gitea/services
Giteabot f91b4dd959
Fix bugs in rerunning jobs (#29955) (#29983)
Backport #29955 by @Zettat123

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" />

---------

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2024-03-22 03:57:10 +00:00
..
actions Fix bugs in rerunning jobs (#29955) (#29983) 2024-03-22 03:57:10 +00:00
agit
asymkey
attachment
auth Fix the bug that user may logout if GetUserByID return unknow error (#29964) 2024-03-21 14:30:55 +00:00
automerge
context Use strict protocol check when redirect (#29642) (#29644) 2024-03-07 03:53:33 +00:00
convert Performance improvements for pull request list page (#29900) (#29972) 2024-03-22 09:58:04 +08:00
cron
externalaccount
feed
forms
gitdiff
indexer
issue Notify reviewers added via CODEOWNERS (#29842) (#29902) 2024-03-20 06:02:24 +00:00
lfs
mailer Fix codeowner detected diff base branch to mergebase (#29783) (#29807) 2024-03-17 02:40:06 +01:00
markup
migrations
mirror
notify
org
packages Use general token signing secret (#29205) (#29325) 2024-02-22 17:07:41 +00:00
pull Performance improvements for pull request list page (#29900) (#29972) 2024-03-22 09:58:04 +08:00
release
repository Fix loadOneBranch panic (#29938) (#29939) 2024-03-20 22:31:32 +08:00
secrets
task
uinotification Fix codeowner detected diff base branch to mergebase (#29783) (#29807) 2024-03-17 02:40:06 +01:00
user
webhook
wiki