forgejo/services/convert
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
..
action.go bug: unify RepoActionRun and ActionRun structs (#8250) 2025-06-23 07:54:32 +02:00
activity.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
activitypub_person.go Add ActivityPub Person follow from distant (#8720) 2025-08-03 11:55:01 +02:00
activitypub_user_action.go Sent user activities to distant federated server (#8792) 2025-08-06 16:16:13 +02:00
attachment.go fix(ui): Add pasted images to dropzone 2025-06-30 12:42:22 +02:00
attachment_test.go fix(ui): Add pasted images to dropzone 2025-06-30 12:42:22 +02:00
convert.go chore: two small refactors in git module (#10109) 2025-11-15 13:24:00 +01:00
convert_test.go fix: prevent commit API from leaking user's hidden email address on valid GPG signed commits 2025-10-24 11:35:51 -06:00
git_commit.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
git_commit_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
issue.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_comment.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
issue_test.go test: prevent XSS for label rendering 2025-06-27 13:27:06 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mirror.go feat: add configuration to only push mirror selected branches (#7823) 2025-07-12 00:39:35 +02:00
notification.go feat: rework notification table (#9926) 2025-11-29 23:03:56 +01:00
package.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
pull.go feat: improve getting shortstat (#9587) 2025-10-10 14:15:38 +02:00
pull_review.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
pull_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
quota.go chore: ensure consistent import aliasing for services and models (#10253) 2025-11-30 17:00:57 +01:00
release.go feat: make upload URL compatible with GitHub API (#9285) 2025-09-15 15:53:35 +02:00
release_test.go feat: make upload URL compatible with GitHub API (#9285) 2025-09-15 15:53:35 +02:00
repository.go fix: reduce deadlocks merging PRs by using caching for repo issue count stats (#9922) 2025-10-31 23:50:05 +01:00
status.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
utils.go Add support for migrating from Pagure (#8513) 2025-08-11 16:56:26 +02:00
utils_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
wiki.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00