You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services
Zettat123 31a0c4dfb4
Improve the handling of `jobs.<job_id>.if` (#31070)
Fix #25897
Fix #30322

#29464 cannot handle some complex `if` conditions correctly because it
only checks `always()` literally. In fact, it's not easy to evaluate the
`if` condition on the Gitea side because evaluating it requires a series
of contexts. But act_runner is able to evaluate the `if` condition
before running the job (for more information, see
[`gitea/act`](517d11c671/pkg/runner/run_context.go (L739-L753)))
. So we can use act_runner to check the `if` condition.

In this PR, how to handle a blocked job depends on its `needs` and `if`:
- If not all jobs in `needs` completed successfully and the job's `if`
is empty, set the job status to `StatusSkipped`
- In other cases, the job status will be set to `StatusWaiting`, and
then act_runner will check the `if` condition and run the job if the
condition is met
9 months ago
..
actions Improve the handling of `jobs.<job_id>.if` (#31070) 9 months ago
agit Performance optimization for git push (#30104) 11 months ago
asymkey Fix some pending problems (#29985) 11 months ago
attachment Add support for API blob upload of release attachments (#29507) 12 months ago
auth Fix tautological conditions (#30735) 10 months ago
automerge Fix automerge will not work because of some events haven't been triggered (#30780) 9 months ago
context Check if reverse proxy is correctly configured (#30890) 10 months ago
contexttest Check if reverse proxy is correctly configured (#30890) 10 months ago
convert Make gitea webhooks openproject compatible (#28435) 9 months ago
cron Move some asymkey functions to service layer (#28894) 12 months ago
doctor Resolve lint for unused parameter and unnecessary type arguments (#30750) 10 months ago
externalaccount Revert "Support SAML authentication (#25165)" (#29358) 1 year ago
feed More `db.DefaultContext` refactor (#27265) 1 year ago
forms Return `access_denied` error when an OAuth2 request is denied (#30974) 9 months ago
gitdiff Refactor sha1 and time-limited code (#31023) 9 months ago
indexer Update issue indexer after merging a PR (#30715) 10 months ago
issue Fix various problems around projects board view (#30696) 10 months ago
lfs Move context from modules to services (#29440) 1 year ago
mailer Fix incorrect message id for releaes email (#30825) 10 months ago
markup Enable more `revive` linter rules (#30608) 10 months ago
migrations Fix "force private" logic (#31012) 9 months ago
mirror Resolve lint for unused parameter and unnecessary type arguments (#30750) 10 months ago
notify Clean up log messages (#30313) 11 months ago
org Update misspell to 0.5.1 and add `misspellings.csv` (#30573) 10 months ago
packages remove util.OptionalBool and related functions (#29513) 12 months ago
pull Fix misspelling of mergable (#30896) 10 months ago
release Check if the release is converted from the tag when updating the release (#30984) 9 months ago
repository Fix automerge will not work because of some events haven't been triggered (#30780) 9 months ago
secrets Refactor deletion (#28610) 1 year ago
task Fix "force private" logic (#31012) 9 months ago
uinotification Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
user Fix bug on avatar (#31008) 9 months ago
webhook Enable more `revive` linter rules (#30608) 10 months ago
webtheme Initial support for colorblindness-friendly themes (#30625) 10 months ago
wiki Avoid showing `Failed to change the default wiki branch` if repo has no wiki when saving repo settings (#30329) 11 months ago