mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-07-12 20:48:40 +00:00
Fixes #12937. The intent of this change is to allow Forgejo to evaluate `if` without having to send jobs to a runner. When you send a job to a runner just for it to return "skipped!", it takes up 1 runner capacity for a `fetch_interval` period, which can be avoided if Forgejo can evaluate the `if` condition itself. ### Tests for Go changes - I added test coverage for Go changes... - [x] in their respective `*_test.go` for unit tests. - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server. - I ran... - [x] `make pr-go` before pushing ### Documentation - [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change. - [x] I did not document these changes and I do not expect someone else to do it. ### Release notes - [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change. - [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13030 Reviewed-by: Andreas Ahlenstorf <aahlenst@noreply.codeberg.org>
22 lines
790 B
YAML
22 lines
790 B
YAML
formatter: gofmt
|
|
template: testify
|
|
packages:
|
|
forgejo.org/modules/nosql:
|
|
config:
|
|
filename: mocks.go # make mocks public so that external packages can use
|
|
forgejo.org/services/auth:
|
|
config:
|
|
filename: mocks.go # make mocks public so that external packages can use
|
|
forgejo.org/services/notify:
|
|
config:
|
|
filename: mocks.go # make mocks public so that external packages can use
|
|
forgejo.org/services/authz:
|
|
config:
|
|
filename: authorization_reducer_mock.go # make mocks public so that external packages can use
|
|
code.forgejo.org/go-chi/cache:
|
|
interfaces:
|
|
Cache:
|
|
config:
|
|
pkgname: cache
|
|
dir: modules/cache
|
|
filename: mocks.go # make mocks public, not `_test.go`, so that external packages can mock caching
|