limiting-factor
2faaa4c5b4
chore: move all test blank imports in a single package ( #10662 )
...
- Create `modules/testimport/import.go` to centralize blank import needed for tests (in order to run the `init` function) to simplify maintenance.
- Remove the imports that are not needed.
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10662
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: limiting-factor <limiting-factor@posteo.com>
Co-committed-by: limiting-factor <limiting-factor@posteo.com>
2026-01-02 05:32:32 +01:00
Renovate Bot
fed2d81c44
Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) ( #7367 )
...
Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
2025-03-28 22:22:21 +00:00
Gusted
2457f5ff22
chore: branding import path ( #7337 )
...
- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`.
- Resolves forgejo/discussions#258
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7337
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-03-27 19:40:14 +00:00
Gusted
4c67023c7e
tests: improve actvititypub integration test code
...
- Make use of `test.MockVariableValue` to override variables for the
duration of the test.
- Don't needlessly call `onGiteaRun`, its only needed when a HTTP server
needs to be called by the code.
- When `onGiteaRun` is used, make use of the passed parameters, such as
the passed `*testing.T` variable and `*url.URL` (this also avoids
needing to serve the routers in the test code again).
- Use `(*url.URL).JoinPath` to craft new URLs.
- Don't override `setting.AppURL` & `setting.Database.LogSQL` when its
does not affect the test.
- Add empty fixture files for `FederatedUser` & `FederationHost` so they
are truncated and do not persist between tests.
2024-11-01 22:39:49 +01:00
TheFox0x7
4de909747b
Add testifylint to lint checks ( #4535 )
...
go-require lint is ignored for now
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4535
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
2024-07-30 19:41:10 +00:00
Earl Warren
3518a1d4cd
[SEMVER] store SemVer in ForgejoSemVer after a database upgrade
...
https://codeberg.org/forgejo/forgejo/pulls/1543
(cherry picked from commit 6146ef6263 )
(cherry picked from commit 45b9005ad9 )
(cherry picked from commit 4622cc5cc4 )
(cherry picked from commit ed39cdc54c )
(cherry picked from commit b837dbd434 )
(cherry picked from commit a0abe20b1b )
(cherry picked from commit 6f5c2f902e )
(cherry picked from commit efbae03e02 )
(cherry picked from commit a763b5949f )
(cherry picked from commit d611dc07ac )
(cherry picked from commit f31264ab57 )
(cherry picked from commit a32a1fcd94 )
(cherry picked from commit 568711e103 )
(cherry picked from commit 80ef964857 )
(cherry picked from commit 66af8f2ae8 )
(cherry picked from commit 7a1c9fa236 )
(cherry picked from commit f140388ae4 )
2024-02-05 14:44:33 +01:00
Earl Warren
f6ba73de4c
[UPGRADE] add sanity checks for [storage*]
...
Refs: https://forgejo.org/2023-08-release-v1-20-3-0/
(cherry picked from commit a266dd0ce3 )
(cherry picked from commit b9eb5eccd8 )
(cherry picked from commit 7fc2028ede )
(cherry picked from commit 0c988e6120 )
(cherry picked from commit 7ba05e8c2b )
(cherry picked from commit 2ed5068abe )
(cherry picked from commit 353913a26d )
(cherry picked from commit 4e63a01a8b )
(cherry picked from commit 99f612aed3 )
(cherry picked from commit b4fe189cae )
(cherry picked from commit bd35e3b7bc )
(cherry picked from commit f59d9f7088 )
(cherry picked from commit 0b2a93e044 )
(cherry picked from commit 8c5d8bfea0 )
(cherry picked from commit 2817ce027c )
(cherry picked from commit 162056cbcf )
(cherry picked from commit 07152a0ba6 )
(cherry picked from commit 72e3777915 )
(cherry picked from commit 3b1ebd95b9 )
(cherry picked from commit 14fc4f3fac )
(cherry picked from commit 9052c86e8c )
(cherry picked from commit 16f1cc21ea )
(cherry picked from commit 0fef12f5d8 )
(cherry picked from commit d187381f73 )
(cherry picked from commit 9dda715111 )
2024-02-05 14:44:33 +01:00
Earl Warren
081a155cc1
[SEMVER] store SemVer in ForgejoSemVer after a database upgrade
...
(cherry picked from commit b7fe7cf401 )
(cherry picked from commit cf339eed4f )
(cherry picked from commit 4f3a16168b )
(cherry picked from commit 6f5bbc53fc )
(cherry picked from commit aca42b422e )
(cherry picked from commit 5a7f7580e5 )
(cherry picked from commit 06c383c807 )
(cherry picked from commit fe831dcb53 )
(cherry picked from commit cd12cd0dbc )
(cherry picked from commit cc79163703 )
(cherry picked from commit 0102a5715e )
(cherry picked from commit 403f7520b3 )
(cherry picked from commit a3b61510a2 )
(cherry picked from commit f83f0f9feb )
(cherry picked from commit fd1c3a6d09 )
(cherry picked from commit f7cdc3d6f1 )
(cherry picked from commit 060121b644 )
(cherry picked from commit 62c847ff02 )
(cherry picked from commit 4d051b51c2 )
(cherry picked from commit 86e6981a93 )
(cherry picked from commit c1fc9e441b )
(cherry picked from commit 8bb2f0871a )
(cherry picked from commit 0cd9fe5251 )
(cherry picked from commit b0b44778b4 )
(cherry picked from commit 7c2f4f749f )
2024-02-05 14:44:33 +01:00