forgejo/routers/api/v1
nachtjasmin 8ee4a7d658 chore: ensure consistent import aliasing for services and models (#10253)
To make sure that the code stays maintainable, I added the `importas` linter to ensure that the imports for models and services stay consistent.

I realised that this might be needed after finding some discrepancies between singular/plural naming, and, especially in the case of the `forgejo.org/services/context` package, multiple different aliases like `gitea_ctx`, `app_context` and `forgejo_context`. I decided for `app_context`, as that seems to be the most commonly used naming.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10253
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: nachtjasmin <nachtjasmin@posteo.de>
Co-committed-by: nachtjasmin <nachtjasmin@posteo.de>
2025-11-30 17:00:57 +01:00
..
activitypub chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
admin fix(api): adminDEleteQuotaRule typo (#10217) 2025-11-24 00:44:49 +01:00
misc feat(sec): Add SSH signing support for instances (#6897) 2025-04-11 13:25:35 +00:00
notify feat: rework notification table (#9926) 2025-11-29 23:03:56 +01:00
org Update module github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.6.1 (forgejo) (#10053) 2025-11-11 07:04:35 +01:00
packages chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
settings chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
shared feat: return all pending jobs if labels parameter is absent (#9839) 2025-10-28 15:01:59 +01:00
swagger feat: add support for ephemeral runners compatible with autoscaling tools (#9409) 2025-10-01 00:38:35 +02:00
user feat: add support for ephemeral runners compatible with autoscaling tools (#9409) 2025-10-01 00:38:35 +02:00
utils fix(api): set all hook event types (#9997) 2025-11-07 07:04:21 +01:00
api.go feat: Add admin individual user email management endpoints (#9594) 2025-10-28 15:52:37 +01:00