forgejo/routers/web
Zettat123 8848b0ea2b
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" />

(cherry picked from commit 2f060c5834d81f0317c795fc281f9a07e03e5962)
2024-03-26 19:04:26 +01:00
..
admin Customizable "Open with" applications for repository clone (#29320) 2024-03-23 11:58:54 +01:00
auth Make "/user/login" page redirect if the current user has signed in (#29583) 2024-03-11 23:36:58 +07:00
devtest
events
explore Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
feed Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 2024-03-06 12:10:45 +08:00
healthcheck
misc
org Filter Repositories by type (#29231) 2024-03-06 12:10:46 +08:00
repo Fix bugs in rerunning jobs (#29955) 2024-03-26 19:04:26 +01:00
shared Fix missing code in the user profile (#29865) 2024-03-26 19:04:25 +01:00
user Refactor StringsToInt64s (#29967) 2024-03-26 19:04:26 +01:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Merge pull request 'Allow users to hide all "Add more units..." hints' (#2533) from algernon/forgejo:less-is-more into forgejo 2024-03-24 05:42:37 +00:00
webfinger.go