forgejo/services
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
..
actions Fix bugs in rerunning jobs (#29955) 2024-03-26 19:04:26 +01:00
agit Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-26 22:30:26 +01:00
asymkey Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
attachment Add support for API blob upload of release attachments (#29507) 2024-03-06 12:10:46 +08:00
auth Fix the bug that user may logout if he switch pages too fast (#29962) 2024-03-26 19:04:26 +01:00
automerge Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
context Merge pull request '[PORT] Unify search boxes (gitea#29530)' (#2688) from snematoda/port-29530 into forgejo 2024-03-24 05:33:13 +00:00
contexttest Make "/user/login" page redirect if the current user has signed in (#29583) 2024-03-11 23:36:58 +07:00
convert Performance improvements for pull request list page (#29900) 2024-03-26 19:04:26 +01:00
cron Refactor locale&string&template related code (#29165) 2024-02-16 15:20:52 +01:00
doctor Fix missing error check of bufio.Scanner (#29882) 2024-03-26 19:04:25 +01:00
externalaccount Final round of db.DefaultContext refactor (#27587) 2023-10-14 08:37:24 +00:00
feed More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
forgejo [UPGRADE] run sanity checks before the database is upgraded 2024-02-05 14:44:33 +01:00
forms Allow users to hide all "Add more units..." hints 2024-03-21 08:15:51 +01:00
gitdiff Fix incorrect diff expander for deletion of last lines in a file (#29501) 2024-03-06 12:10:45 +08:00
indexer Fix missing issue search index update when changing status (#28325) 2023-12-03 12:22:44 +01:00
issue Allow non-admin users to delete review requests (#29057) 2024-02-26 22:30:27 +01:00
lfs Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
mailer Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-20 08:46:28 +01:00
markup Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
migrations [Windows] prevent ? in testdata path 2024-03-15 13:15:46 +01:00
mirror Use repo object format name instead of detecting from git repository (#29702) 2024-03-20 08:46:28 +01:00
notify [GITEA] notifies admins on new user registration 2024-02-05 16:09:28 +01:00
org Delete repos of org when purge delete user (#27273) 2023-10-19 13:16:11 +00:00
packages packages: skip error logging on duplicate 2024-03-24 07:12:31 +01:00
pull Performance improvements for pull request list page (#29900) 2024-03-26 19:04:26 +01:00
release Use repo object format name instead of detecting from git repository (#29702) 2024-03-20 08:46:28 +01:00
repository Fix loadOneBranch panic (#29938) 2024-03-26 19:04:26 +01:00
secrets Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
task Fix incorrect ctx usage in defer function (#27740) 2023-10-22 14:12:27 +00:00
uinotification Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
user Allow users to hide all "Add more units..." hints 2024-03-21 08:15:51 +01:00
webhook fix telegram webhook (#29864) 2024-03-26 19:04:25 +01:00
wiki Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-11 23:36:59 +07:00