diff --git a/.deadcode-out b/.deadcode-out index 338d22e258..e366abee94 100644 --- a/.deadcode-out +++ b/.deadcode-out @@ -1,7 +1,7 @@ -code.gitea.io/gitea/cmd +forgejo.org/cmd NoMainListener -code.gitea.io/gitea/cmd/forgejo +forgejo.org/cmd/forgejo ContextSetNoInit ContextSetNoExit ContextSetStderr @@ -9,48 +9,48 @@ code.gitea.io/gitea/cmd/forgejo ContextSetStdout ContextSetStdin -code.gitea.io/gitea/models +forgejo.org/models IsErrSHANotFound IsErrMergeDivergingFastForwardOnly -code.gitea.io/gitea/models/auth +forgejo.org/models/auth WebAuthnCredentials -code.gitea.io/gitea/models/db +forgejo.org/models/db TruncateBeans InTransaction DumpTables -code.gitea.io/gitea/models/dbfs +forgejo.org/models/dbfs file.renameTo Create Rename -code.gitea.io/gitea/models/forgefed +forgejo.org/models/forgefed GetFederationHost -code.gitea.io/gitea/models/forgejo/semver +forgejo.org/models/forgejo/semver GetVersion SetVersionString SetVersion -code.gitea.io/gitea/models/git +forgejo.org/models/git RemoveDeletedBranchByID -code.gitea.io/gitea/models/issues +forgejo.org/models/issues IsErrUnknownDependencyType IsErrIssueWasClosed -code.gitea.io/gitea/models/organization +forgejo.org/models/organization SearchMembersOptions.ToConds -code.gitea.io/gitea/models/perm/access +forgejo.org/models/perm/access GetRepoWriters -code.gitea.io/gitea/models/repo +forgejo.org/models/repo WatchRepoMode -code.gitea.io/gitea/models/user +forgejo.org/models/user IsErrExternalLoginUserAlreadyExist IsErrExternalLoginUserNotExist NewFederatedUser @@ -58,35 +58,35 @@ code.gitea.io/gitea/models/user GetUserAllSettings DeleteUserSetting -code.gitea.io/gitea/modules/activitypub +forgejo.org/modules/activitypub NewContext Context.APClientFactory -code.gitea.io/gitea/modules/assetfs +forgejo.org/modules/assetfs Bindata -code.gitea.io/gitea/modules/auth/password/hash +forgejo.org/modules/auth/password/hash DummyHasher.HashWithSaltBytes NewDummyHasher -code.gitea.io/gitea/modules/auth/password/pwn +forgejo.org/modules/auth/password/pwn WithHTTP -code.gitea.io/gitea/modules/base +forgejo.org/modules/base SetupGiteaRoot -code.gitea.io/gitea/modules/cache +forgejo.org/modules/cache GetInt WithNoCacheContext RemoveContextData -code.gitea.io/gitea/modules/emoji +forgejo.org/modules/emoji ReplaceCodes -code.gitea.io/gitea/modules/eventsource +forgejo.org/modules/eventsource Event.String -code.gitea.io/gitea/modules/forgefed +forgejo.org/modules/forgefed NewForgeUndoLike ForgeUndoLike.UnmarshalJSON ForgeUndoLike.Validate @@ -96,7 +96,7 @@ code.gitea.io/gitea/modules/forgefed ToRepository OnRepository -code.gitea.io/gitea/modules/git +forgejo.org/modules/git AllowLFSFiltersArgs AddChanges AddChangesWithArgs @@ -106,55 +106,55 @@ code.gitea.io/gitea/modules/git openRepositoryWithDefaultContext ToEntryMode -code.gitea.io/gitea/modules/gitrepo +forgejo.org/modules/gitrepo GetBranchCommitID GetWikiDefaultBranch -code.gitea.io/gitea/modules/graceful +forgejo.org/modules/graceful Manager.TerminateContext Manager.Err Manager.Value Manager.Deadline -code.gitea.io/gitea/modules/hcaptcha +forgejo.org/modules/hcaptcha WithHTTP -code.gitea.io/gitea/modules/hostmatcher +forgejo.org/modules/hostmatcher HostMatchList.AppendPattern -code.gitea.io/gitea/modules/json +forgejo.org/modules/json StdJSON.Marshal StdJSON.Unmarshal StdJSON.NewEncoder StdJSON.NewDecoder StdJSON.Indent -code.gitea.io/gitea/modules/log +forgejo.org/modules/log NewEventWriterBuffer -code.gitea.io/gitea/modules/markup +forgejo.org/modules/markup GetRendererByType RenderString IsMarkupFile -code.gitea.io/gitea/modules/markup/console +forgejo.org/modules/markup/console Render RenderString -code.gitea.io/gitea/modules/markup/markdown +forgejo.org/modules/markup/markdown RenderRawString -code.gitea.io/gitea/modules/markup/mdstripper +forgejo.org/modules/markup/mdstripper stripRenderer.AddOptions StripMarkdown -code.gitea.io/gitea/modules/markup/orgmode +forgejo.org/modules/markup/orgmode RenderString -code.gitea.io/gitea/modules/process +forgejo.org/modules/process Manager.ExecTimeout -code.gitea.io/gitea/modules/queue +forgejo.org/modules/queue newBaseChannelSimple newBaseChannelUnique newBaseRedisSimple @@ -163,26 +163,26 @@ code.gitea.io/gitea/modules/queue testStateRecorder.Reset newWorkerPoolQueueForTest -code.gitea.io/gitea/modules/queue/lqinternal +forgejo.org/modules/queue/lqinternal QueueItemIDBytes QueueItemKeyBytes ListLevelQueueKeys -code.gitea.io/gitea/modules/setting +forgejo.org/modules/setting NewConfigProviderFromData GitConfigType.GetOption InitLoggersForTest -code.gitea.io/gitea/modules/sync +forgejo.org/modules/sync StatusTable.Start StatusTable.IsRunning -code.gitea.io/gitea/modules/timeutil +forgejo.org/modules/timeutil GetExecutableModTime MockSet MockUnset -code.gitea.io/gitea/modules/translation +forgejo.org/modules/translation MockLocale.Language MockLocale.TrString MockLocale.Tr @@ -192,42 +192,42 @@ code.gitea.io/gitea/modules/translation MockLocale.HasKey MockLocale.PrettyNumber -code.gitea.io/gitea/modules/util +forgejo.org/modules/util OptionalArg -code.gitea.io/gitea/modules/util/filebuffer +forgejo.org/modules/util/filebuffer CreateFromReader -code.gitea.io/gitea/modules/validation +forgejo.org/modules/validation IsErrNotValid -code.gitea.io/gitea/modules/web +forgejo.org/modules/web RouteMock RouteMockReset -code.gitea.io/gitea/modules/zstd +forgejo.org/modules/zstd NewWriter Writer.Write Writer.Close -code.gitea.io/gitea/routers/web +forgejo.org/routers/web NotFound -code.gitea.io/gitea/routers/web/org +forgejo.org/routers/web/org MustEnableProjects -code.gitea.io/gitea/services/context +forgejo.org/services/context GetPrivateContext -code.gitea.io/gitea/services/repository +forgejo.org/services/repository IsErrForkAlreadyExist -code.gitea.io/gitea/services/repository/files +forgejo.org/services/repository/files ContentType.String -code.gitea.io/gitea/services/repository/gitgraph +forgejo.org/services/repository/gitgraph Parser.Reset -code.gitea.io/gitea/services/webhook +forgejo.org/services/webhook NewNotifier diff --git a/.forgejo/testdata/build-release/go.mod b/.forgejo/testdata/build-release/go.mod index 729cb6f831..585dcc4f3d 100644 --- a/.forgejo/testdata/build-release/go.mod +++ b/.forgejo/testdata/build-release/go.mod @@ -1,3 +1,3 @@ -module code.gitea.io/gitea +module forgejo.org go 1.23.3 diff --git a/.gitignore b/.gitignore index 79a4108dab..744e24a09a 100644 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,7 @@ cpu.out /gitea-vet /debug /integrations.test +/forgejo /bin /dist diff --git a/.golangci.yml b/.golangci.yml index cceb7070e7..136c0e624a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -93,7 +93,7 @@ linters-settings: desc: use os or io instead - pkg: golang.org/x/exp desc: it's experimental and unreliable - - pkg: code.gitea.io/gitea/modules/git/internal + - pkg: forgejo.org/modules/git/internal desc: do not use the internal package, use AddXxx function instead - pkg: gopkg.in/ini.v1 desc: do not use the ini package, use gitea's config system instead diff --git a/Dockerfile b/Dockerfile index ebe41ed5c8..9a8877920a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,8 +30,8 @@ RUN cp /*-alpine-linux-musl*/lib/ld-musl-*.so.1 /lib || true RUN apk --no-cache add build-base git nodejs npm -COPY . ${GOPATH}/src/code.gitea.io/gitea -WORKDIR ${GOPATH}/src/code.gitea.io/gitea +COPY . ${GOPATH}/src/forgejo.org +WORKDIR ${GOPATH}/src/forgejo.org RUN make clean RUN make frontend @@ -47,9 +47,9 @@ RUN chmod 755 /tmp/local/usr/bin/entrypoint \ /tmp/local/etc/s6/gitea/* \ /tmp/local/etc/s6/openssh/* \ /tmp/local/etc/s6/.s6-svscan/* \ - /go/src/code.gitea.io/gitea/gitea \ - /go/src/code.gitea.io/gitea/environment-to-ini -RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete + /go/src/forgejo.org/gitea \ + /go/src/forgejo.org/environment-to-ini +RUN chmod 644 /go/src/forgejo.org/contrib/autocompletion/bash_autocomplete FROM data.forgejo.org/oci/alpine:3.21 ARG RELEASE_VERSION @@ -102,7 +102,7 @@ CMD ["/usr/bin/s6-svscan", "/etc/s6"] COPY --from=build-env /tmp/local / RUN cd /usr/local/bin ; ln -s gitea forgejo -COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea +COPY --from=build-env /go/src/forgejo.org/gitea /app/gitea/gitea RUN ln -s /app/gitea/gitea /app/gitea/forgejo-cli -COPY --from=build-env /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini -COPY --from=build-env /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh +COPY --from=build-env /go/src/forgejo.org/environment-to-ini /usr/local/bin/environment-to-ini +COPY --from=build-env /go/src/forgejo.org/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh diff --git a/Dockerfile.rootless b/Dockerfile.rootless index 93004610a7..47aae2798d 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -30,8 +30,8 @@ RUN cp /*-alpine-linux-musl*/lib/ld-musl-*.so.1 /lib || true RUN apk --no-cache add build-base git nodejs npm -COPY . ${GOPATH}/src/code.gitea.io/gitea -WORKDIR ${GOPATH}/src/code.gitea.io/gitea +COPY . ${GOPATH}/src/forgejo.org +WORKDIR ${GOPATH}/src/forgejo.org RUN make clean RUN make frontend @@ -45,9 +45,9 @@ COPY docker/rootless /tmp/local RUN chmod 755 /tmp/local/usr/local/bin/docker-entrypoint.sh \ /tmp/local/usr/local/bin/docker-setup.sh \ /tmp/local/usr/local/bin/gitea \ - /go/src/code.gitea.io/gitea/gitea \ - /go/src/code.gitea.io/gitea/environment-to-ini -RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete + /go/src/forgejo.org/gitea \ + /go/src/forgejo.org/environment-to-ini +RUN chmod 644 /go/src/forgejo.org/contrib/autocompletion/bash_autocomplete FROM data.forgejo.org/oci/alpine:3.21 ARG RELEASE_VERSION @@ -91,10 +91,10 @@ RUN chown git:git /var/lib/gitea /etc/gitea COPY --from=build-env /tmp/local / RUN cd /usr/local/bin ; ln -s gitea forgejo -COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea +COPY --from=build-env --chown=root:root /go/src/forgejo.org/gitea /app/gitea/gitea RUN ln -s /app/gitea/gitea /app/gitea/forgejo-cli -COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini -COPY --from=build-env /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh +COPY --from=build-env --chown=root:root /go/src/forgejo.org/environment-to-ini /usr/local/bin/environment-to-ini +COPY --from=build-env /go/src/forgejo.org/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh #git:git USER 1000:1000 diff --git a/Makefile b/Makefile index ff9de004c9..4fb06db918 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ else DIST := dist DIST_DIRS := $(DIST)/binaries $(DIST)/release -IMPORT := code.gitea.io/gitea +IMPORT := forgejo.org GO ?= $(shell go env GOROOT)/bin/go SHASUM ?= shasum -a 256 @@ -125,10 +125,10 @@ LDFLAGS := $(LDFLAGS) -X "main.ReleaseVersion=$(RELEASE_VERSION)" -X "main.MakeV LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64 ifeq ($(HAS_GO), yes) - GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list code.gitea.io/gitea/models/migrations/...) $(shell $(GO) list code.gitea.io/gitea/models/forgejo_migrations/...) code.gitea.io/gitea/tests/integration/migration-test code.gitea.io/gitea/tests code.gitea.io/gitea/tests/integration code.gitea.io/gitea/tests/e2e,$(shell $(GO) list ./...)) + GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO) list forgejo.org/models/migrations/...) $(shell $(GO) list forgejo.org/models/forgejo_migrations/...) forgejo.org/tests/integration/migration-test forgejo.org/tests forgejo.org/tests/integration forgejo.org/tests/e2e,$(shell $(GO) list ./...)) endif REMOTE_CACHER_MODULES ?= cache nosql session queue -GO_TEST_REMOTE_CACHER_PACKAGES ?= $(addprefix code.gitea.io/gitea/modules/,$(REMOTE_CACHER_MODULES)) +GO_TEST_REMOTE_CACHER_PACKAGES ?= $(addprefix forgejo.org/modules/,$(REMOTE_CACHER_MODULES)) FOMANTIC_WORK_DIR := web_src/fomantic @@ -169,7 +169,7 @@ GO_SOURCES += $(GENERATED_GO_DEST) GO_SOURCES_NO_BINDATA := $(GO_SOURCES) ifeq ($(HAS_GO), yes) - MIGRATION_PACKAGES := $(shell $(GO) list code.gitea.io/gitea/models/migrations/... code.gitea.io/gitea/models/forgejo_migrations/...) + MIGRATION_PACKAGES := $(shell $(GO) list forgejo.org/models/migrations/... forgejo.org/models/forgejo_migrations/...) endif ifeq ($(filter $(TAGS_SPLIT),bindata),bindata) @@ -476,7 +476,7 @@ lint-spell: lint-codespell lint-spell-fix: lint-codespell-fix @go run $(MISSPELL_PACKAGE) -w $(SPELLCHECK_FILES) -RUN_DEADCODE = $(GO) run $(DEADCODE_PACKAGE) -generated=false -f='{{println .Path}}{{range .Funcs}}{{printf "\t%s\n" .Name}}{{end}}{{println}}' -test code.gitea.io/gitea +RUN_DEADCODE = $(GO) run $(DEADCODE_PACKAGE) -generated=false -f='{{println .Path}}{{range .Funcs}}{{printf "\t%s\n" .Name}}{{end}}{{println}}' -test forgejo.org .PHONY: lint-go lint-go: @@ -610,7 +610,7 @@ tidy-check: tidy go-licenses: $(GO_LICENSE_FILE) $(GO_LICENSE_FILE): go.mod go.sum - -$(GO) run $(GO_LICENSES_PACKAGE) save . --force --ignore code.gitea.io/gitea --save_path=$(GO_LICENSE_TMP_DIR) 2>/dev/null + -$(GO) run $(GO_LICENSES_PACKAGE) save . --force --ignore forgejo.org --save_path=$(GO_LICENSE_TMP_DIR) 2>/dev/null $(GO) run build/generate-go-licenses.go $(GO_LICENSE_TMP_DIR) $(GO_LICENSE_FILE) @rm -rf $(GO_LICENSE_TMP_DIR) @@ -740,33 +740,33 @@ integration-test-coverage-sqlite: integrations.cover.sqlite.test generate-ini-sq GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini ./integrations.cover.sqlite.test -test.coverprofile=integration.coverage.out integrations.mysql.test: git-check $(GO_SOURCES) - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/integration -o integrations.mysql.test + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/integration -o integrations.mysql.test integrations.pgsql.test: git-check $(GO_SOURCES) - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/integration -o integrations.pgsql.test + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/integration -o integrations.pgsql.test integrations.sqlite.test: git-check $(GO_SOURCES) - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/integration -o integrations.sqlite.test -tags '$(TEST_TAGS)' + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/integration -o integrations.sqlite.test -tags '$(TEST_TAGS)' integrations.cover.test: git-check $(GO_SOURCES) - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/integration -coverpkg $(shell echo $(GO_TEST_PACKAGES) | tr ' ' ',') -o integrations.cover.test + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/integration -coverpkg $(shell echo $(GO_TEST_PACKAGES) | tr ' ' ',') -o integrations.cover.test integrations.cover.sqlite.test: git-check $(GO_SOURCES) - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/integration -coverpkg $(shell echo $(GO_TEST_PACKAGES) | tr ' ' ',') -o integrations.cover.sqlite.test -tags '$(TEST_TAGS)' + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/integration -coverpkg $(shell echo $(GO_TEST_PACKAGES) | tr ' ' ',') -o integrations.cover.sqlite.test -tags '$(TEST_TAGS)' .PHONY: migrations.mysql.test migrations.mysql.test: $(GO_SOURCES) generate-ini-mysql - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/integration/migration-test -o migrations.mysql.test + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/integration/migration-test -o migrations.mysql.test GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/mysql.ini $(GOTESTCOMPILEDRUNPREFIX) ./migrations.mysql.test $(GOTESTCOMPILEDRUNSUFFIX) .PHONY: migrations.pgsql.test migrations.pgsql.test: $(GO_SOURCES) generate-ini-pgsql - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/integration/migration-test -o migrations.pgsql.test + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/integration/migration-test -o migrations.pgsql.test GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/pgsql.ini $(GOTESTCOMPILEDRUNPREFIX) ./migrations.pgsql.test $(GOTESTCOMPILEDRUNSUFFIX) .PHONY: migrations.sqlite.test migrations.sqlite.test: $(GO_SOURCES) generate-ini-sqlite - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/integration/migration-test -o migrations.sqlite.test -tags '$(TEST_TAGS)' + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/integration/migration-test -o migrations.sqlite.test -tags '$(TEST_TAGS)' GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini $(GOTESTCOMPILEDRUNPREFIX) ./migrations.sqlite.test $(GOTESTCOMPILEDRUNSUFFIX) .PHONY: migrations.individual.mysql.test @@ -777,7 +777,7 @@ migrations.individual.mysql.test: $(GO_SOURCES) .PHONY: migrations.individual.sqlite.test\#% migrations.individual.sqlite.test\#%: $(GO_SOURCES) generate-ini-sqlite - GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini $(GOTEST) $(GOTESTFLAGS) -tags '$(TEST_TAGS)' code.gitea.io/gitea/models/migrations/$* + GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini $(GOTEST) $(GOTESTFLAGS) -tags '$(TEST_TAGS)' forgejo.org/models/migrations/$* .PHONY: migrations.individual.pgsql.test migrations.individual.pgsql.test: $(GO_SOURCES) @@ -787,7 +787,7 @@ migrations.individual.pgsql.test: $(GO_SOURCES) .PHONY: migrations.individual.pgsql.test\#% migrations.individual.pgsql.test\#%: $(GO_SOURCES) generate-ini-pgsql - GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/pgsql.ini $(GOTEST) $(GOTESTFLAGS) -tags '$(TEST_TAGS)' code.gitea.io/gitea/models/migrations/$* + GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/pgsql.ini $(GOTEST) $(GOTESTFLAGS) -tags '$(TEST_TAGS)' forgejo.org/models/migrations/$* .PHONY: migrations.individual.sqlite.test migrations.individual.sqlite.test: $(GO_SOURCES) generate-ini-sqlite @@ -797,16 +797,16 @@ migrations.individual.sqlite.test: $(GO_SOURCES) generate-ini-sqlite .PHONY: migrations.individual.sqlite.test\#% migrations.individual.sqlite.test\#%: $(GO_SOURCES) generate-ini-sqlite - GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini $(GOTEST) $(GOTESTFLAGS) -tags '$(TEST_TAGS)' code.gitea.io/gitea/models/migrations/$* + GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini $(GOTEST) $(GOTESTFLAGS) -tags '$(TEST_TAGS)' forgejo.org/models/migrations/$* e2e.mysql.test: $(GO_SOURCES) - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/e2e -o e2e.mysql.test + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/e2e -o e2e.mysql.test e2e.pgsql.test: $(GO_SOURCES) - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/e2e -o e2e.pgsql.test + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/e2e -o e2e.pgsql.test e2e.sqlite.test: $(GO_SOURCES) - $(GOTEST) $(GOTESTFLAGS) -c code.gitea.io/gitea/tests/e2e -o e2e.sqlite.test -tags '$(TEST_TAGS)' + $(GOTEST) $(GOTESTFLAGS) -c forgejo.org/tests/e2e -o e2e.sqlite.test -tags '$(TEST_TAGS)' .PHONY: check check: test @@ -1013,7 +1013,7 @@ generate-gitignore: .PHONY: generate-gomock generate-gomock: - $(GO) run $(GOMOCK_PACKAGE) -package mock -destination ./modules/queue/mock/redisuniversalclient.go code.gitea.io/gitea/modules/nosql RedisClient + $(GO) run $(GOMOCK_PACKAGE) -package mock -destination ./modules/queue/mock/redisuniversalclient.go forgejo.org/modules/nosql RedisClient .PHONY: generate-images generate-images: | node_modules diff --git a/README.md b/README.md index 3ba47dcce6..a5b2f38d53 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,6 @@ Our promise: **Independent Free/Libre Software forever!** ## What does Forgejo offer? - - If you like any of the following, Forgejo is literally meant for you: - Lightweight: Forgejo can easily be hosted on nearly **every machine**. diff --git a/build/backport-locales.go b/build/backport-locales.go index 3df83ea6d9..3125f19014 100644 --- a/build/backport-locales.go +++ b/build/backport-locales.go @@ -12,8 +12,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/container" + "forgejo.org/modules/setting" ) func main() { diff --git a/build/code-batch-process.go b/build/code-batch-process.go index cc2ab68026..516736b65c 100644 --- a/build/code-batch-process.go +++ b/build/code-batch-process.go @@ -15,7 +15,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/build/codeformat" + "forgejo.org/build/codeformat" ) // Windows has a limitation for command line arguments, the size can not exceed 32KB. diff --git a/build/codeformat/formatimports.go b/build/codeformat/formatimports.go index c9fc2a27b4..acedd13234 100644 --- a/build/codeformat/formatimports.go +++ b/build/codeformat/formatimports.go @@ -13,8 +13,8 @@ import ( ) var importPackageGroupOrders = map[string]int{ - "": 1, // internal - "code.gitea.io/gitea/": 2, + "": 1, // internal + "forgejo.org/": 2, } var errInvalidCommentBetweenImports = errors.New("comments between imported packages are invalid, please move comments to the end of the package line") diff --git a/build/codeformat/formatimports_test.go b/build/codeformat/formatimports_test.go index 1abc9f8ab7..03c780911f 100644 --- a/build/codeformat/formatimports_test.go +++ b/build/codeformat/formatimports_test.go @@ -58,8 +58,8 @@ import ( "code.gitea.io/other/package" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/the/package" @@ -82,8 +82,8 @@ import ( _ "image/jpeg" // for processing jpeg images _ "image/png" // for processing png images - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "code.gitea.io/other/package" "github.com/issue9/identicon" diff --git a/build/generate-emoji.go b/build/generate-emoji.go index 98c2f15d75..0ad49a6541 100644 --- a/build/generate-emoji.go +++ b/build/generate-emoji.go @@ -20,7 +20,7 @@ import ( "strings" "unicode/utf8" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) const ( diff --git a/build/generate-gitignores.go b/build/generate-gitignores.go index 1e09c83a6a..7acfd6cbe4 100644 --- a/build/generate-gitignores.go +++ b/build/generate-gitignores.go @@ -15,7 +15,7 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) func main() { diff --git a/build/generate-go-licenses.go b/build/generate-go-licenses.go index 22ef817ebc..3f4d62a2cc 100644 --- a/build/generate-go-licenses.go +++ b/build/generate-go-licenses.go @@ -16,7 +16,7 @@ import ( "sort" "strings" - "code.gitea.io/gitea/modules/container" + "forgejo.org/modules/container" ) // regexp is based on go-license, excluding README and NOTICE @@ -102,9 +102,9 @@ func main() { pkgName := path.Dir(pkgPath) // There might be a bug somewhere in go-licenses that sometimes interprets the - // root package as "." and sometimes as "code.gitea.io/gitea". Workaround by + // root package as "." and sometimes as "forgejo.org". Workaround by // removing both of them for the sake of stable output. - if pkgName == "." || pkgName == "code.gitea.io/gitea" { + if pkgName == "." || pkgName == "forgejo.org" { continue } diff --git a/build/generate-licenses.go b/build/generate-licenses.go index 9a111bc811..e925d8af02 100644 --- a/build/generate-licenses.go +++ b/build/generate-licenses.go @@ -15,7 +15,7 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) func main() { diff --git a/build/lint-locale-usage/lint-locale-usage.go b/build/lint-locale-usage/lint-locale-usage.go index f42bc59cbb..8aeae26c4c 100644 --- a/build/lint-locale-usage/lint-locale-usage.go +++ b/build/lint-locale-usage/lint-locale-usage.go @@ -17,17 +17,15 @@ import ( "text/template" tmplParser "text/template/parse" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/locale" - fjTemplates "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/container" + "forgejo.org/modules/locale" + fjTemplates "forgejo.org/modules/templates" + "forgejo.org/modules/util" ) // this works by first gathering all valid source string IDs from `en-US` reference files // and then checking if all used source strings are actually defined -type OnMsgidHandler func(fset *token.FileSet, pos token.Pos, msgid string) - type LocatedError struct { Location string Kind string @@ -49,8 +47,24 @@ func (e LocatedError) Error() string { return sb.String() } -func isLocaleTrFunction(funcname string) bool { - return funcname == "Tr" || funcname == "TrN" +func InitLocaleTrFunctions() map[string][]uint { + ret := make(map[string][]uint) + + f0 := []uint{0} + ret["Tr"] = f0 + ret["TrString"] = f0 + ret["TrHTML"] = f0 + + ret["TrPluralString"] = []uint{1} + ret["TrN"] = []uint{1, 2} + + return ret +} + +type Handler struct { + OnMsgid func(fset *token.FileSet, pos token.Pos, msgid string) + OnUnexpectedInvoke func(fset *token.FileSet, pos token.Pos, funcname string, argc int) + LocaleTrFunctions map[string][]uint } // the `Handle*File` functions follow the following calling convention: @@ -58,7 +72,7 @@ func isLocaleTrFunction(funcname string) bool { // * `src` is either `nil` (then the function invokes `ReadFile` to read the file) // or the contents of the file as {`[]byte`, or a `string`} -func (omh OnMsgidHandler) HandleGoFile(fname string, src any) error { +func (handler Handler) HandleGoFile(fname string, src any) error { fset := token.NewFileSet() node, err := goParser.ParseFile(fset, fname, src, goParser.SkipObjectResolution) if err != nil { @@ -70,31 +84,47 @@ func (omh OnMsgidHandler) HandleGoFile(fname string, src any) error { } ast.Inspect(node, func(n ast.Node) bool { - // search for function calls of the form `anything.Tr(any-string-lit)` + // search for function calls of the form `anything.Tr(any-string-lit, ...)` call, ok := n.(*ast.CallExpr) - if !ok || len(call.Args) != 1 { + if !ok || len(call.Args) < 1 { return true } funSel, ok := call.Fun.(*ast.SelectorExpr) - if (!ok) || !isLocaleTrFunction(funSel.Sel.Name) { + if !ok { return true } - argLit, ok := call.Args[0].(*ast.BasicLit) - if (!ok) || argLit.Kind != token.STRING { + ltf, ok := handler.LocaleTrFunctions[funSel.Sel.Name] + if !ok { return true } - // extract string content - arg, err := strconv.Unquote(argLit.Value) - if err != nil { - return true + var gotUnexpectedInvoke *int + + for _, argNum := range ltf { + if len(call.Args) >= int(argNum+1) { + argLit, ok := call.Args[int(argNum)].(*ast.BasicLit) + if !ok || argLit.Kind != token.STRING { + continue + } + + // extract string content + arg, err := strconv.Unquote(argLit.Value) + if err == nil { + // found interesting strings + handler.OnMsgid(fset, argLit.ValuePos, arg) + } + } else { + argc := len(call.Args) + gotUnexpectedInvoke = &argc + } } - // found interesting string - omh(fset, argLit.ValuePos, arg) + if gotUnexpectedInvoke != nil { + handler.OnUnexpectedInvoke(fset, funSel.Sel.NamePos, funSel.Sel.Name, *gotUnexpectedInvoke) + } return true }) @@ -103,33 +133,33 @@ func (omh OnMsgidHandler) HandleGoFile(fname string, src any) error { } // derived from source: modules/templates/scopedtmpl/scopedtmpl.go, L169-L213 -func (omh OnMsgidHandler) handleTemplateNode(fset *token.FileSet, node tmplParser.Node) { +func (handler Handler) handleTemplateNode(fset *token.FileSet, node tmplParser.Node) { switch node.Type() { case tmplParser.NodeAction: - omh.handleTemplatePipeNode(fset, node.(*tmplParser.ActionNode).Pipe) + handler.handleTemplatePipeNode(fset, node.(*tmplParser.ActionNode).Pipe) case tmplParser.NodeList: nodeList := node.(*tmplParser.ListNode) - omh.handleTemplateFileNodes(fset, nodeList.Nodes) + handler.handleTemplateFileNodes(fset, nodeList.Nodes) case tmplParser.NodePipe: - omh.handleTemplatePipeNode(fset, node.(*tmplParser.PipeNode)) + handler.handleTemplatePipeNode(fset, node.(*tmplParser.PipeNode)) case tmplParser.NodeTemplate: - omh.handleTemplatePipeNode(fset, node.(*tmplParser.TemplateNode).Pipe) + handler.handleTemplatePipeNode(fset, node.(*tmplParser.TemplateNode).Pipe) case tmplParser.NodeIf: nodeIf := node.(*tmplParser.IfNode) - omh.handleTemplateBranchNode(fset, nodeIf.BranchNode) + handler.handleTemplateBranchNode(fset, nodeIf.BranchNode) case tmplParser.NodeRange: nodeRange := node.(*tmplParser.RangeNode) - omh.handleTemplateBranchNode(fset, nodeRange.BranchNode) + handler.handleTemplateBranchNode(fset, nodeRange.BranchNode) case tmplParser.NodeWith: nodeWith := node.(*tmplParser.WithNode) - omh.handleTemplateBranchNode(fset, nodeWith.BranchNode) + handler.handleTemplateBranchNode(fset, nodeWith.BranchNode) case tmplParser.NodeCommand: nodeCommand := node.(*tmplParser.CommandNode) - omh.handleTemplateFileNodes(fset, nodeCommand.Args) + handler.handleTemplateFileNodes(fset, nodeCommand.Args) - if len(nodeCommand.Args) != 2 { + if len(nodeCommand.Args) < 2 { return } @@ -138,54 +168,66 @@ func (omh OnMsgidHandler) handleTemplateNode(fset *token.FileSet, node tmplParse return } - nodeString, ok := nodeCommand.Args[1].(*tmplParser.StringNode) + nodeIdent, ok := nodeChain.Node.(*tmplParser.IdentifierNode) + if !ok || nodeIdent.Ident != "ctx" || len(nodeChain.Field) != 2 || nodeChain.Field[0] != "Locale" { + return + } + + ltf, ok := handler.LocaleTrFunctions[nodeChain.Field[1]] if !ok { return } - nodeIdent, ok := nodeChain.Node.(*tmplParser.IdentifierNode) - if !ok || nodeIdent.Ident != "ctx" { - return + var gotUnexpectedInvoke *int + + for _, argNum := range ltf { + if len(nodeCommand.Args) >= int(argNum+2) { + nodeString, ok := nodeCommand.Args[int(argNum+1)].(*tmplParser.StringNode) + if ok { + // found interesting strings + // the column numbers are a bit "off", but much better than nothing + handler.OnMsgid(fset, token.Pos(nodeString.Pos), nodeString.Text) + } + } else { + argc := len(nodeCommand.Args) - 1 + gotUnexpectedInvoke = &argc + } } - if len(nodeChain.Field) != 2 || nodeChain.Field[0] != "Locale" || !isLocaleTrFunction(nodeChain.Field[1]) { - return + if gotUnexpectedInvoke != nil { + handler.OnUnexpectedInvoke(fset, token.Pos(nodeChain.Pos), nodeChain.Field[1], *gotUnexpectedInvoke) } - // found interesting string - // the column numbers are a bit "off", but much better than nothing - omh(fset, token.Pos(nodeString.Pos), nodeString.Text) - default: } } -func (omh OnMsgidHandler) handleTemplatePipeNode(fset *token.FileSet, pipeNode *tmplParser.PipeNode) { +func (handler Handler) handleTemplatePipeNode(fset *token.FileSet, pipeNode *tmplParser.PipeNode) { if pipeNode == nil { return } // NOTE: we can't pass `pipeNode.Cmds` to handleTemplateFileNodes due to incompatible argument types for _, node := range pipeNode.Cmds { - omh.handleTemplateNode(fset, node) + handler.handleTemplateNode(fset, node) } } -func (omh OnMsgidHandler) handleTemplateBranchNode(fset *token.FileSet, branchNode tmplParser.BranchNode) { - omh.handleTemplatePipeNode(fset, branchNode.Pipe) - omh.handleTemplateFileNodes(fset, branchNode.List.Nodes) +func (handler Handler) handleTemplateBranchNode(fset *token.FileSet, branchNode tmplParser.BranchNode) { + handler.handleTemplatePipeNode(fset, branchNode.Pipe) + handler.handleTemplateFileNodes(fset, branchNode.List.Nodes) if branchNode.ElseList != nil { - omh.handleTemplateFileNodes(fset, branchNode.ElseList.Nodes) + handler.handleTemplateFileNodes(fset, branchNode.ElseList.Nodes) } } -func (omh OnMsgidHandler) handleTemplateFileNodes(fset *token.FileSet, nodes []tmplParser.Node) { +func (handler Handler) handleTemplateFileNodes(fset *token.FileSet, nodes []tmplParser.Node) { for _, node := range nodes { - omh.handleTemplateNode(fset, node) + handler.handleTemplateNode(fset, node) } } -func (omh OnMsgidHandler) HandleTemplateFile(fname string, src any) error { +func (handler Handler) HandleTemplateFile(fname string, src any) error { var tmplContent []byte switch src2 := src.(type) { case nil: @@ -222,7 +264,7 @@ func (omh OnMsgidHandler) HandleTemplateFile(fname string, src any) error { Err: err, } } - omh.handleTemplateFileNodes(fset, tmplParsed.Tree.Root.Nodes) + handler.handleTemplateFileNodes(fset, tmplParsed.Tree.Root.Nodes) return nil } @@ -289,12 +331,19 @@ func main() { gotAnyMsgidError := false - omh := OnMsgidHandler(func(fset *token.FileSet, pos token.Pos, msgid string) { - if !msgids.Contains(msgid) { + handler := Handler{ + OnMsgid: func(fset *token.FileSet, pos token.Pos, msgid string) { + if !msgids.Contains(msgid) { + gotAnyMsgidError = true + fmt.Printf("%s:\tmissing msgid: %s\n", fset.Position(pos).String(), msgid) + } + }, + OnUnexpectedInvoke: func(fset *token.FileSet, pos token.Pos, funcname string, argc int) { gotAnyMsgidError = true - fmt.Printf("%s:\tmissing msgid: %s\n", fset.Position(pos).String(), msgid) - } - }) + fmt.Printf("%s:\tunexpected invocation of %s with %d arguments\n", fset.Position(pos).String(), funcname, argc) + }, + LocaleTrFunctions: InitLocaleTrFunctions(), + } if err := filepath.WalkDir(".", func(fpath string, d fs.DirEntry, err error) error { if err != nil { @@ -308,15 +357,15 @@ func main() { if name == "docker" || name == ".git" || name == "node_modules" { return fs.SkipDir } - } else if name == "bindata.go" { + } else if name == "bindata.go" || fpath == "modules/translation/i18n/i18n_test.go" { // skip false positives } else if strings.HasSuffix(name, ".go") { - onError(omh.HandleGoFile(fpath, nil)) + onError(handler.HandleGoFile(fpath, nil)) } else if strings.HasSuffix(name, ".tmpl") { if strings.HasPrefix(fpath, "tests") && strings.HasSuffix(name, ".ini.tmpl") { // skip false positives } else { - onError(omh.HandleTemplateFile(fpath, nil)) + onError(handler.HandleTemplateFile(fpath, nil)) } } return nil diff --git a/build/lint-locale-usage/lint-locale-usage_test.go b/build/lint-locale-usage/lint-locale-usage_test.go index 3b3b746053..e573fb196e 100644 --- a/build/lint-locale-usage/lint-locale-usage_test.go +++ b/build/lint-locale-usage/lint-locale-usage_test.go @@ -11,21 +11,27 @@ import ( "github.com/stretchr/testify/require" ) +func buildHandler(ret *[]string) Handler { + return Handler{ + OnMsgid: func(fset *token.FileSet, pos token.Pos, msgid string) { + *ret = append(*ret, msgid) + }, + OnUnexpectedInvoke: func(fset *token.FileSet, pos token.Pos, funcname string, argc int) {}, + LocaleTrFunctions: InitLocaleTrFunctions(), + } +} + func HandleGoFileWrapped(t *testing.T, fname, src string) []string { var ret []string - omh := OnMsgidHandler(func(fset *token.FileSet, pos token.Pos, msgid string) { - ret = append(ret, msgid) - }) - require.NoError(t, omh.HandleGoFile(fname, src)) + handler := buildHandler(&ret) + require.NoError(t, handler.HandleGoFile(fname, src)) return ret } func HandleTemplateFileWrapped(t *testing.T, fname, src string) []string { var ret []string - omh := OnMsgidHandler(func(fset *token.FileSet, pos token.Pos, msgid string) { - ret = append(ret, msgid) - }) - require.NoError(t, omh.HandleTemplateFile(fname, src)) + handler := buildHandler(&ret) + require.NoError(t, handler.HandleTemplateFile(fname, src)) return ret } diff --git a/build/lint-locale/lint-locale.go b/build/lint-locale/lint-locale.go index a738fbd684..94ce941e62 100644 --- a/build/lint-locale/lint-locale.go +++ b/build/lint-locale/lint-locale.go @@ -14,7 +14,7 @@ import ( "slices" "strings" - "code.gitea.io/gitea/modules/locale" + "forgejo.org/modules/locale" "github.com/microcosm-cc/bluemonday" "github.com/sergi/go-diff/diffmatchpatch" diff --git a/cmd/actions.go b/cmd/actions.go index 10ae6243c3..54b5154cfa 100644 --- a/cmd/actions.go +++ b/cmd/actions.go @@ -6,8 +6,8 @@ package cmd import ( "fmt" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin.go b/cmd/admin.go index 6c9480e76e..e04a5bc530 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -8,12 +8,12 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_auth.go b/cmd/admin_auth.go index 4777a92908..b5e0212df7 100644 --- a/cmd/admin_auth.go +++ b/cmd/admin_auth.go @@ -9,9 +9,9 @@ import ( "os" "text/tabwriter" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - auth_service "code.gitea.io/gitea/services/auth" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + auth_service "forgejo.org/services/auth" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_auth_ldap.go b/cmd/admin_auth_ldap.go index aff2a12855..637769b153 100644 --- a/cmd/admin_auth_ldap.go +++ b/cmd/admin_auth_ldap.go @@ -8,8 +8,8 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/services/auth/source/ldap" + "forgejo.org/models/auth" + "forgejo.org/services/auth/source/ldap" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_auth_ldap_test.go b/cmd/admin_auth_ldap_test.go index d5385d09e8..269af55d96 100644 --- a/cmd/admin_auth_ldap_test.go +++ b/cmd/admin_auth_ldap_test.go @@ -7,8 +7,8 @@ import ( "context" "testing" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/services/auth/source/ldap" + "forgejo.org/models/auth" + "forgejo.org/services/auth/source/ldap" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/cmd/admin_auth_oauth.go b/cmd/admin_auth_oauth.go index 8e6239ac33..58238794b8 100644 --- a/cmd/admin_auth_oauth.go +++ b/cmd/admin_auth_oauth.go @@ -8,8 +8,8 @@ import ( "fmt" "net/url" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/services/auth/source/oauth2" + auth_model "forgejo.org/models/auth" + "forgejo.org/services/auth/source/oauth2" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_auth_stmp.go b/cmd/admin_auth_stmp.go index d724746905..e166cc38cd 100644 --- a/cmd/admin_auth_stmp.go +++ b/cmd/admin_auth_stmp.go @@ -7,9 +7,9 @@ import ( "errors" "strings" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/auth/source/smtp" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/util" + "forgejo.org/services/auth/source/smtp" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_regenerate.go b/cmd/admin_regenerate.go index 0db505ff9c..4e7f685843 100644 --- a/cmd/admin_regenerate.go +++ b/cmd/admin_regenerate.go @@ -4,9 +4,9 @@ package cmd import ( - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/modules/graceful" - repo_service "code.gitea.io/gitea/services/repository" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/modules/graceful" + repo_service "forgejo.org/services/repository" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_user_change_password.go b/cmd/admin_user_change_password.go index bd9063a8e4..563ad96afd 100644 --- a/cmd/admin_user_change_password.go +++ b/cmd/admin_user_change_password.go @@ -7,11 +7,11 @@ import ( "errors" "fmt" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - user_service "code.gitea.io/gitea/services/user" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/password" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + user_service "forgejo.org/services/user" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_user_create.go b/cmd/admin_user_create.go index 781148e734..33e61c0753 100644 --- a/cmd/admin_user_create.go +++ b/cmd/admin_user_create.go @@ -7,12 +7,12 @@ import ( "errors" "fmt" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - pwd "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + pwd "forgejo.org/modules/auth/password" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_user_delete.go b/cmd/admin_user_delete.go index 520557554a..9a4cc22a77 100644 --- a/cmd/admin_user_delete.go +++ b/cmd/admin_user_delete.go @@ -8,9 +8,9 @@ import ( "fmt" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/storage" - user_service "code.gitea.io/gitea/services/user" + user_model "forgejo.org/models/user" + "forgejo.org/modules/storage" + user_service "forgejo.org/services/user" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_user_generate_access_token.go b/cmd/admin_user_generate_access_token.go index 6c2c10494e..abb874bd5f 100644 --- a/cmd/admin_user_generate_access_token.go +++ b/cmd/admin_user_generate_access_token.go @@ -7,8 +7,8 @@ import ( "errors" "fmt" - auth_model "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" + auth_model "forgejo.org/models/auth" + user_model "forgejo.org/models/user" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_user_list.go b/cmd/admin_user_list.go index 4c2b26d1df..6044ce7c3f 100644 --- a/cmd/admin_user_list.go +++ b/cmd/admin_user_list.go @@ -8,7 +8,7 @@ import ( "os" "text/tabwriter" - user_model "code.gitea.io/gitea/models/user" + user_model "forgejo.org/models/user" "github.com/urfave/cli/v2" ) diff --git a/cmd/admin_user_must_change_password.go b/cmd/admin_user_must_change_password.go index 2794414259..920f5c7b21 100644 --- a/cmd/admin_user_must_change_password.go +++ b/cmd/admin_user_must_change_password.go @@ -7,7 +7,7 @@ import ( "errors" "fmt" - user_model "code.gitea.io/gitea/models/user" + user_model "forgejo.org/models/user" "github.com/urfave/cli/v2" ) diff --git a/cmd/cmd.go b/cmd/cmd.go index 423dce2674..c887d0ed52 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -15,10 +15,10 @@ import ( "strings" "syscall" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/urfave/cli/v2" ) diff --git a/cmd/doctor.go b/cmd/doctor.go index 9957053365..b3420982f5 100644 --- a/cmd/doctor.go +++ b/cmd/doctor.go @@ -11,13 +11,13 @@ import ( "strings" "text/tabwriter" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/migrations" - migrate_base "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/doctor" + "forgejo.org/models/db" + "forgejo.org/models/migrations" + migrate_base "forgejo.org/models/migrations/base" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/doctor" "github.com/urfave/cli/v2" "xorm.io/xorm" diff --git a/cmd/doctor_convert.go b/cmd/doctor_convert.go index 190b2fc2ef..06883264a3 100644 --- a/cmd/doctor_convert.go +++ b/cmd/doctor_convert.go @@ -6,9 +6,9 @@ package cmd import ( "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/doctor_test.go b/cmd/doctor_test.go index e6daae18b9..bfb4b9d803 100644 --- a/cmd/doctor_test.go +++ b/cmd/doctor_test.go @@ -7,8 +7,8 @@ import ( "context" "testing" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/doctor" + "forgejo.org/modules/log" + "forgejo.org/services/doctor" "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" diff --git a/cmd/dump.go b/cmd/dump.go index 14f9a00b58..ac72a2bb18 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -13,12 +13,12 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" "code.forgejo.org/go-chi/session" "github.com/mholt/archiver/v3" diff --git a/cmd/dump_repo.go b/cmd/dump_repo.go index 3a24cf6c5f..197445f908 100644 --- a/cmd/dump_repo.go +++ b/cmd/dump_repo.go @@ -10,14 +10,14 @@ import ( "os" "strings" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/migrations" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/services/convert" + "forgejo.org/services/migrations" "github.com/urfave/cli/v2" ) diff --git a/cmd/embedded.go b/cmd/embedded.go index 9f03f7be7c..c8b9d13d25 100644 --- a/cmd/embedded.go +++ b/cmd/embedded.go @@ -10,13 +10,13 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/options" - "code.gitea.io/gitea/modules/public" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/log" + "forgejo.org/modules/options" + "forgejo.org/modules/public" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/util" "github.com/gobwas/glob" "github.com/urfave/cli/v2" diff --git a/cmd/forgejo/actions.go b/cmd/forgejo/actions.go index 1560b10fac..dbe7398bcf 100644 --- a/cmd/forgejo/actions.go +++ b/cmd/forgejo/actions.go @@ -11,10 +11,10 @@ import ( "os" "strings" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" - private_routers "code.gitea.io/gitea/routers/private" + actions_model "forgejo.org/models/actions" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" + private_routers "forgejo.org/routers/private" "github.com/urfave/cli/v2" ) diff --git a/cmd/forgejo/actions_test.go b/cmd/forgejo/actions_test.go index 897af98315..b58f52184c 100644 --- a/cmd/forgejo/actions_test.go +++ b/cmd/forgejo/actions_test.go @@ -7,7 +7,7 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/services/context" + "forgejo.org/services/context" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/cmd/forgejo/f3.go b/cmd/forgejo/f3.go index 5a0d0ac036..bfd14cd1a4 100644 --- a/cmd/forgejo/f3.go +++ b/cmd/forgejo/f3.go @@ -8,14 +8,14 @@ import ( "context" "errors" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/services/f3/util" + "forgejo.org/models" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/services/f3/util" - _ "code.gitea.io/gitea/services/f3/driver" // register the driver + _ "forgejo.org/services/f3/driver" // register the driver f3_cmd "code.forgejo.org/f3/gof3/v3/cmd" f3_logger "code.forgejo.org/f3/gof3/v3/logger" diff --git a/cmd/forgejo/forgejo.go b/cmd/forgejo/forgejo.go index 1b7e16ca8f..3b95c80991 100644 --- a/cmd/forgejo/forgejo.go +++ b/cmd/forgejo/forgejo.go @@ -11,10 +11,10 @@ import ( "os/signal" "syscall" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/generate.go b/cmd/generate.go index 806946244b..8d3c221ec5 100644 --- a/cmd/generate.go +++ b/cmd/generate.go @@ -8,7 +8,7 @@ import ( "fmt" "os" - "code.gitea.io/gitea/modules/generate" + "forgejo.org/modules/generate" "github.com/mattn/go-isatty" "github.com/urfave/cli/v2" diff --git a/cmd/hook.go b/cmd/hook.go index 93dfd9d648..1630c41edd 100644 --- a/cmd/hook.go +++ b/cmd/hook.go @@ -14,12 +14,12 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/git/pushoptions" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/git/pushoptions" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/hook_test.go b/cmd/hook_test.go index 4fa249a316..89bd3cf737 100644 --- a/cmd/hook_test.go +++ b/cmd/hook_test.go @@ -14,8 +14,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/cmd/keys.go b/cmd/keys.go index 81425a5722..b12daee1bc 100644 --- a/cmd/keys.go +++ b/cmd/keys.go @@ -8,8 +8,8 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" + "forgejo.org/modules/log" + "forgejo.org/modules/private" "github.com/urfave/cli/v2" ) diff --git a/cmd/mailer.go b/cmd/mailer.go index 0c5f2c8c8d..cddebd6d36 100644 --- a/cmd/mailer.go +++ b/cmd/mailer.go @@ -6,8 +6,8 @@ package cmd import ( "fmt" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/main.go b/cmd/main.go index 9a28722b4b..5f48814cd0 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -10,9 +10,9 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/cmd/forgejo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/cmd/forgejo" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/main_test.go b/cmd/main_test.go index 8a9ec14b2e..5e0b36d028 100644 --- a/cmd/main_test.go +++ b/cmd/main_test.go @@ -10,9 +10,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/cmd/manager.go b/cmd/manager.go index b74771e53d..0cb1e60f73 100644 --- a/cmd/manager.go +++ b/cmd/manager.go @@ -7,7 +7,7 @@ import ( "os" "time" - "code.gitea.io/gitea/modules/private" + "forgejo.org/modules/private" "github.com/urfave/cli/v2" ) diff --git a/cmd/manager_logging.go b/cmd/manager_logging.go index 6049b00d5e..ac2c1eb418 100644 --- a/cmd/manager_logging.go +++ b/cmd/manager_logging.go @@ -8,8 +8,8 @@ import ( "fmt" "os" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" + "forgejo.org/modules/log" + "forgejo.org/modules/private" "github.com/urfave/cli/v2" ) diff --git a/cmd/migrate.go b/cmd/migrate.go index 53c496a36c..ab291cfb66 100644 --- a/cmd/migrate.go +++ b/cmd/migrate.go @@ -6,10 +6,10 @@ package cmd import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/migrations" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/migrations" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/migrate_storage.go b/cmd/migrate_storage.go index 3a69b555e0..1b839e7169 100644 --- a/cmd/migrate_storage.go +++ b/cmd/migrate_storage.go @@ -10,17 +10,17 @@ import ( "io/fs" "strings" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/migrations" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/migrations" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" "github.com/urfave/cli/v2" ) diff --git a/cmd/migrate_storage_test.go b/cmd/migrate_storage_test.go index 245f0cacff..28af63f4c8 100644 --- a/cmd/migrate_storage_test.go +++ b/cmd/migrate_storage_test.go @@ -9,16 +9,16 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - packages_module "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/test" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + packages_module "forgejo.org/modules/packages" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/test" + packages_service "forgejo.org/services/packages" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/cmd/restore_repo.go b/cmd/restore_repo.go index 37b32aa304..1e53ce26ba 100644 --- a/cmd/restore_repo.go +++ b/cmd/restore_repo.go @@ -6,8 +6,8 @@ package cmd import ( "strings" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/cmd/serv.go b/cmd/serv.go index db67e36fa3..0884d6c36b 100644 --- a/cmd/serv.go +++ b/cmd/serv.go @@ -18,18 +18,18 @@ import ( "time" "unicode" - asymkey_model "code.gitea.io/gitea/models/asymkey" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/pprof" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/process" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/lfs" + asymkey_model "forgejo.org/models/asymkey" + git_model "forgejo.org/models/git" + "forgejo.org/models/perm" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/pprof" + "forgejo.org/modules/private" + "forgejo.org/modules/process" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/services/lfs" "github.com/golang-jwt/jwt/v5" "github.com/kballard/go-shellquote" diff --git a/cmd/web.go b/cmd/web.go index 787411939c..3e7fdee4bf 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -16,14 +16,14 @@ import ( _ "net/http/pprof" // Used for debugging if enabled and a web server is running - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/public" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/routers/install" + "forgejo.org/modules/container" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/public" + "forgejo.org/modules/setting" + "forgejo.org/routers" + "forgejo.org/routers/install" "github.com/felixge/fgprof" "github.com/urfave/cli/v2" diff --git a/cmd/web_acme.go b/cmd/web_acme.go index 90e4a02764..b2d7435be2 100644 --- a/cmd/web_acme.go +++ b/cmd/web_acme.go @@ -12,10 +12,10 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" "github.com/caddyserver/certmagic" ) diff --git a/cmd/web_graceful.go b/cmd/web_graceful.go index 996537be3b..b0145d4fc7 100644 --- a/cmd/web_graceful.go +++ b/cmd/web_graceful.go @@ -9,9 +9,9 @@ import ( "net/http/fcgi" "strings" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) func runHTTP(network, listenAddr, name string, m http.Handler, useProxyProtocol bool) error { diff --git a/cmd/web_https.go b/cmd/web_https.go index 70d35cd40d..bebc5f7c8f 100644 --- a/cmd/web_https.go +++ b/cmd/web_https.go @@ -9,9 +9,9 @@ import ( "os" "strings" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/klauspost/cpuid/v2" ) diff --git a/contrib/environment-to-ini/environment-to-ini.go b/contrib/environment-to-ini/environment-to-ini.go index f8593e49c3..95f34527ac 100644 --- a/contrib/environment-to-ini/environment-to-ini.go +++ b/contrib/environment-to-ini/environment-to-ini.go @@ -6,8 +6,8 @@ package main import ( "os" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/urfave/cli/v2" ) diff --git a/go.mod b/go.mod index b49ef7436f..b4ca6c444d 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module code.gitea.io/gitea +module forgejo.org go 1.24 @@ -103,7 +103,7 @@ require ( go.uber.org/mock v0.5.0 golang.org/x/crypto v0.36.0 golang.org/x/image v0.25.0 - golang.org/x/net v0.37.0 + golang.org/x/net v0.38.0 golang.org/x/oauth2 v0.28.0 golang.org/x/sync v0.12.0 golang.org/x/sys v0.31.0 diff --git a/go.sum b/go.sum index 67a1642186..3e0bcb61b2 100644 --- a/go.sum +++ b/go.sum @@ -1647,8 +1647,8 @@ golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= -golang.org/x/net v0.37.0 h1:1zLorHbz+LYj7MQlSf1+2tPIIgibq2eL5xkrGk6f+2c= -golang.org/x/net v0.37.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= +golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/main.go b/main.go index b8cc5668e1..3f0283db7f 100644 --- a/main.go +++ b/main.go @@ -10,16 +10,16 @@ import ( "strings" "time" - "code.gitea.io/gitea/cmd" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/cmd" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" // register supported doc types - _ "code.gitea.io/gitea/modules/markup/asciicast" - _ "code.gitea.io/gitea/modules/markup/console" - _ "code.gitea.io/gitea/modules/markup/csv" - _ "code.gitea.io/gitea/modules/markup/markdown" - _ "code.gitea.io/gitea/modules/markup/orgmode" + _ "forgejo.org/modules/markup/asciicast" + _ "forgejo.org/modules/markup/console" + _ "forgejo.org/modules/markup/csv" + _ "forgejo.org/modules/markup/markdown" + _ "forgejo.org/modules/markup/orgmode" "github.com/urfave/cli/v2" ) diff --git a/models/actions/artifact.go b/models/actions/artifact.go index 0bc66ba24e..10cd3868a1 100644 --- a/models/actions/artifact.go +++ b/models/actions/artifact.go @@ -11,9 +11,9 @@ import ( "errors" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/actions/forgejo.go b/models/actions/forgejo.go index 5ea77f4473..ce3f8b0c8b 100644 --- a/models/actions/forgejo.go +++ b/models/actions/forgejo.go @@ -7,9 +7,9 @@ import ( "crypto/subtle" "fmt" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/util" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/util" gouuid "github.com/google/uuid" ) diff --git a/models/actions/forgejo_test.go b/models/actions/forgejo_test.go index 9295fc698e..fc4ccfa628 100644 --- a/models/actions/forgejo_test.go +++ b/models/actions/forgejo_test.go @@ -6,9 +6,9 @@ import ( "crypto/subtle" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/actions/main_test.go b/models/actions/main_test.go index 3cfb395e62..27916f29ac 100644 --- a/models/actions/main_test.go +++ b/models/actions/main_test.go @@ -6,7 +6,7 @@ package actions import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/models/actions/run.go b/models/actions/run.go index c5512106b9..671177a892 100644 --- a/models/actions/run.go +++ b/models/actions/run.go @@ -10,15 +10,15 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" "github.com/nektos/act/pkg/jobparser" "xorm.io/builder" diff --git a/models/actions/run_job.go b/models/actions/run_job.go index 9f8edfe4fc..fffbb6670b 100644 --- a/models/actions/run_job.go +++ b/models/actions/run_job.go @@ -9,10 +9,10 @@ import ( "slices" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/container" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/actions/run_job_list.go b/models/actions/run_job_list.go index 6c5d3b3252..cbcb4beb8e 100644 --- a/models/actions/run_job_list.go +++ b/models/actions/run_job_list.go @@ -6,9 +6,9 @@ package actions import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/container" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/models/actions/run_list.go b/models/actions/run_list.go index b9b9324e07..92be510569 100644 --- a/models/actions/run_list.go +++ b/models/actions/run_list.go @@ -6,12 +6,12 @@ package actions import ( "context" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/translation" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/translation" + webhook_module "forgejo.org/modules/webhook" "xorm.io/builder" ) diff --git a/models/actions/runner.go b/models/actions/runner.go index b24950d014..99173000fb 100644 --- a/models/actions/runner.go +++ b/models/actions/runner.go @@ -11,15 +11,15 @@ import ( "strings" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/shared/types" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/shared/types" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" runnerv1 "code.gitea.io/actions-proto-go/runner/v1" "xorm.io/builder" diff --git a/models/actions/runner_list.go b/models/actions/runner_list.go index 3ef8ebb254..6a64c46596 100644 --- a/models/actions/runner_list.go +++ b/models/actions/runner_list.go @@ -6,10 +6,10 @@ package actions import ( "context" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" ) type RunnerList []*ActionRunner diff --git a/models/actions/runner_test.go b/models/actions/runner_test.go index 2c8d430f94..0623e66046 100644 --- a/models/actions/runner_test.go +++ b/models/actions/runner_test.go @@ -7,9 +7,9 @@ import ( "fmt" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/actions/runner_token.go b/models/actions/runner_token.go index fd6ba7ecad..a59304d8e8 100644 --- a/models/actions/runner_token.go +++ b/models/actions/runner_token.go @@ -7,11 +7,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) // ActionRunnerToken represents runner tokens diff --git a/models/actions/runner_token_test.go b/models/actions/runner_token_test.go index 35c9a9d3c3..65d83a8fd0 100644 --- a/models/actions/runner_token_test.go +++ b/models/actions/runner_token_test.go @@ -6,8 +6,8 @@ package actions import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/actions/schedule.go b/models/actions/schedule.go index 1ef9978185..633582e017 100644 --- a/models/actions/schedule.go +++ b/models/actions/schedule.go @@ -8,12 +8,12 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" "xorm.io/builder" ) diff --git a/models/actions/schedule_spec.go b/models/actions/schedule_spec.go index 923e5f7807..83bdceb850 100644 --- a/models/actions/schedule_spec.go +++ b/models/actions/schedule_spec.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/timeutil" "github.com/robfig/cron/v3" ) diff --git a/models/actions/schedule_spec_list.go b/models/actions/schedule_spec_list.go index 78ba622dc3..0a09a60acb 100644 --- a/models/actions/schedule_spec_list.go +++ b/models/actions/schedule_spec_list.go @@ -6,9 +6,9 @@ package actions import ( "context" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/container" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/container" "xorm.io/builder" ) diff --git a/models/actions/status.go b/models/actions/status.go index eda2234137..f4357af731 100644 --- a/models/actions/status.go +++ b/models/actions/status.go @@ -4,7 +4,7 @@ package actions import ( - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/translation" runnerv1 "code.gitea.io/actions-proto-go/runner/v1" ) diff --git a/models/actions/task.go b/models/actions/task.go index 31655d2f1d..63cbc6e586 100644 --- a/models/actions/task.go +++ b/models/actions/task.go @@ -9,13 +9,13 @@ import ( "fmt" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unit" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" runnerv1 "code.gitea.io/actions-proto-go/runner/v1" lru "github.com/hashicorp/golang-lru/v2" diff --git a/models/actions/task_list.go b/models/actions/task_list.go index 502d29e1a3..fe4c028c2c 100644 --- a/models/actions/task_list.go +++ b/models/actions/task_list.go @@ -6,9 +6,9 @@ package actions import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/container" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/models/actions/task_output.go b/models/actions/task_output.go index eab5b93118..fa13cadd53 100644 --- a/models/actions/task_output.go +++ b/models/actions/task_output.go @@ -6,7 +6,7 @@ package actions import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) // ActionTaskOutput represents an output of ActionTask. diff --git a/models/actions/task_step.go b/models/actions/task_step.go index 3af1fe3f5a..1f20157271 100644 --- a/models/actions/task_step.go +++ b/models/actions/task_step.go @@ -7,8 +7,8 @@ import ( "context" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" ) // ActionTaskStep represents a step of ActionTask diff --git a/models/actions/tasks_version.go b/models/actions/tasks_version.go index d8df353593..a5c357888f 100644 --- a/models/actions/tasks_version.go +++ b/models/actions/tasks_version.go @@ -6,9 +6,9 @@ package actions import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" ) // ActionTasksVersion diff --git a/models/actions/utils.go b/models/actions/utils.go index 12657942fc..7dd3f7ec12 100644 --- a/models/actions/utils.go +++ b/models/actions/utils.go @@ -12,9 +12,9 @@ import ( "io" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) func generateSaltedToken() (string, string, string, string, error) { diff --git a/models/actions/utils_test.go b/models/actions/utils_test.go index 98c048d4ef..af6fd04a6a 100644 --- a/models/actions/utils_test.go +++ b/models/actions/utils_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/actions/variable.go b/models/actions/variable.go index 39cea95c4b..203065487c 100644 --- a/models/actions/variable.go +++ b/models/actions/variable.go @@ -7,9 +7,9 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/models/activities/action.go b/models/activities/action.go index dd67b98242..ef99132e6c 100644 --- a/models/activities/action.go +++ b/models/activities/action.go @@ -14,20 +14,20 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" "xorm.io/builder" "xorm.io/xorm/schemas" diff --git a/models/activities/action_list.go b/models/activities/action_list.go index aafb7f8a26..64b92bbda1 100644 --- a/models/activities/action_list.go +++ b/models/activities/action_list.go @@ -8,12 +8,12 @@ import ( "fmt" "strconv" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/activities/action_test.go b/models/activities/action_test.go index 4ce030dd48..ebc40cffa5 100644 --- a/models/activities/action_test.go +++ b/models/activities/action_test.go @@ -8,13 +8,13 @@ import ( "path" "testing" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - issue_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + issue_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/activities/main_test.go b/models/activities/main_test.go index bda5593d02..a5245ab1d3 100644 --- a/models/activities/main_test.go +++ b/models/activities/main_test.go @@ -6,11 +6,11 @@ package activities_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/models/activities/notification.go b/models/activities/notification.go index 09cc640224..4d13900459 100644 --- a/models/activities/notification.go +++ b/models/activities/notification.go @@ -9,14 +9,14 @@ import ( "net/url" "strconv" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/activities/notification_list.go b/models/activities/notification_list.go index 32d2a5c051..9b09dde7ab 100644 --- a/models/activities/notification_list.go +++ b/models/activities/notification_list.go @@ -6,14 +6,14 @@ package activities import ( "context" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/log" "xorm.io/builder" ) diff --git a/models/activities/notification_test.go b/models/activities/notification_test.go index 3ff223d870..305a2ae430 100644 --- a/models/activities/notification_test.go +++ b/models/activities/notification_test.go @@ -7,11 +7,11 @@ import ( "context" "testing" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/activities/repo_activity.go b/models/activities/repo_activity.go index ffa709ad19..3d15c22e19 100644 --- a/models/activities/repo_activity.go +++ b/models/activities/repo_activity.go @@ -9,12 +9,12 @@ import ( "sort" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" "xorm.io/xorm" ) diff --git a/models/activities/repo_activity_test.go b/models/activities/repo_activity_test.go index 06cd0e1e8a..c111c50208 100644 --- a/models/activities/repo_activity_test.go +++ b/models/activities/repo_activity_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/activities/statistic.go b/models/activities/statistic.go index ff81ad78a1..4c15cb2898 100644 --- a/models/activities/statistic.go +++ b/models/activities/statistic.go @@ -6,18 +6,18 @@ package activities import ( "context" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/setting" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/auth" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/models/webhook" + "forgejo.org/modules/setting" ) // Statistic contains the database statistics diff --git a/models/activities/user_heatmap.go b/models/activities/user_heatmap.go index 080075d793..0cc3f759c6 100644 --- a/models/activities/user_heatmap.go +++ b/models/activities/user_heatmap.go @@ -6,11 +6,11 @@ package activities import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" ) // UserHeatmapData represents the data needed to create a heatmap diff --git a/models/activities/user_heatmap_test.go b/models/activities/user_heatmap_test.go index d62565a27c..d922f9a78b 100644 --- a/models/activities/user_heatmap_test.go +++ b/models/activities/user_heatmap_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/timeutil" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/admin/task.go b/models/admin/task.go index 5c2f7af49c..b4e1ac0134 100644 --- a/models/admin/task.go +++ b/models/admin/task.go @@ -7,16 +7,16 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/secret" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/migration" + "forgejo.org/modules/secret" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) // Task represents a task diff --git a/models/asymkey/error.go b/models/asymkey/error.go index e38ba121c6..fc0dd88232 100644 --- a/models/asymkey/error.go +++ b/models/asymkey/error.go @@ -6,7 +6,7 @@ package asymkey import ( "fmt" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // ErrKeyUnableVerify represents a "KeyUnableVerify" kind of error. diff --git a/models/asymkey/gpg_key.go b/models/asymkey/gpg_key.go index 6e2914e476..b7e10ce85c 100644 --- a/models/asymkey/gpg_key.go +++ b/models/asymkey/gpg_key.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" "github.com/ProtonMail/go-crypto/openpgp" "github.com/ProtonMail/go-crypto/openpgp/packet" diff --git a/models/asymkey/gpg_key_add.go b/models/asymkey/gpg_key_add.go index 6c0f6e01a7..06cfd09a3e 100644 --- a/models/asymkey/gpg_key_add.go +++ b/models/asymkey/gpg_key_add.go @@ -7,8 +7,8 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + "forgejo.org/modules/log" "github.com/ProtonMail/go-crypto/openpgp" ) diff --git a/models/asymkey/gpg_key_commit_verification.go b/models/asymkey/gpg_key_commit_verification.go index 9aa606405e..73b066b17c 100644 --- a/models/asymkey/gpg_key_commit_verification.go +++ b/models/asymkey/gpg_key_commit_verification.go @@ -6,9 +6,9 @@ package asymkey import ( "context" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" ) // __________________ ________ ____ __. diff --git a/models/asymkey/gpg_key_import.go b/models/asymkey/gpg_key_import.go index c9d46d29e5..8a63ea4a35 100644 --- a/models/asymkey/gpg_key_import.go +++ b/models/asymkey/gpg_key_import.go @@ -6,7 +6,7 @@ package asymkey import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) // __________________ ________ ____ __. diff --git a/models/asymkey/gpg_key_list.go b/models/asymkey/gpg_key_list.go index 89548e495e..b2d4fb11f6 100644 --- a/models/asymkey/gpg_key_list.go +++ b/models/asymkey/gpg_key_list.go @@ -6,7 +6,7 @@ package asymkey import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) type GPGKeyList []*GPGKey diff --git a/models/asymkey/gpg_key_object_verification.go b/models/asymkey/gpg_key_object_verification.go index 24d72a52c1..407a29c221 100644 --- a/models/asymkey/gpg_key_object_verification.go +++ b/models/asymkey/gpg_key_object_verification.go @@ -10,12 +10,12 @@ import ( "hash" "strings" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/ProtonMail/go-crypto/openpgp/packet" ) diff --git a/models/asymkey/gpg_key_tag_verification.go b/models/asymkey/gpg_key_tag_verification.go index 5fd3983e54..f054525e8f 100644 --- a/models/asymkey/gpg_key_tag_verification.go +++ b/models/asymkey/gpg_key_tag_verification.go @@ -6,7 +6,7 @@ package asymkey import ( "context" - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" ) func ParseTagWithSignature(ctx context.Context, gitRepo *git.Repository, t *git.Tag) *ObjectVerification { diff --git a/models/asymkey/gpg_key_test.go b/models/asymkey/gpg_key_test.go index e9aa9cf5ec..4db07b84c2 100644 --- a/models/asymkey/gpg_key_test.go +++ b/models/asymkey/gpg_key_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "github.com/ProtonMail/go-crypto/openpgp/packet" "github.com/stretchr/testify/assert" diff --git a/models/asymkey/gpg_key_verify.go b/models/asymkey/gpg_key_verify.go index 01812a2d54..2b5ea7a1ac 100644 --- a/models/asymkey/gpg_key_verify.go +++ b/models/asymkey/gpg_key_verify.go @@ -8,10 +8,10 @@ import ( "strconv" "time" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" ) // __________________ ________ ____ __. diff --git a/models/asymkey/main_test.go b/models/asymkey/main_test.go index 87b5c22c4a..316e8f1d54 100644 --- a/models/asymkey/main_test.go +++ b/models/asymkey/main_test.go @@ -6,7 +6,7 @@ package asymkey import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/models/asymkey/ssh_key.go b/models/asymkey/ssh_key.go index 7a18732c32..7f76009e7f 100644 --- a/models/asymkey/ssh_key.go +++ b/models/asymkey/ssh_key.go @@ -10,13 +10,13 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/perm" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "golang.org/x/crypto/ssh" "xorm.io/builder" diff --git a/models/asymkey/ssh_key_authorized_keys.go b/models/asymkey/ssh_key_authorized_keys.go index 57baf89c0c..d3bf6fe886 100644 --- a/models/asymkey/ssh_key_authorized_keys.go +++ b/models/asymkey/ssh_key_authorized_keys.go @@ -14,10 +14,10 @@ import ( "sync" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // _____ __ .__ .__ .___ diff --git a/models/asymkey/ssh_key_authorized_principals.go b/models/asymkey/ssh_key_authorized_principals.go index f85de12aae..0b4fe13ba7 100644 --- a/models/asymkey/ssh_key_authorized_principals.go +++ b/models/asymkey/ssh_key_authorized_principals.go @@ -13,10 +13,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // _____ __ .__ .__ .___ diff --git a/models/asymkey/ssh_key_deploy.go b/models/asymkey/ssh_key_deploy.go index 429635330d..22e80840af 100644 --- a/models/asymkey/ssh_key_deploy.go +++ b/models/asymkey/ssh_key_deploy.go @@ -8,9 +8,9 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/models/perm" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/models/asymkey/ssh_key_fingerprint.go b/models/asymkey/ssh_key_fingerprint.go index 1ed3b5df2a..11112e4bc3 100644 --- a/models/asymkey/ssh_key_fingerprint.go +++ b/models/asymkey/ssh_key_fingerprint.go @@ -8,11 +8,11 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "golang.org/x/crypto/ssh" "xorm.io/builder" diff --git a/models/asymkey/ssh_key_object_verification.go b/models/asymkey/ssh_key_object_verification.go index 5ad6fdb0a9..e0476fe5a8 100644 --- a/models/asymkey/ssh_key_object_verification.go +++ b/models/asymkey/ssh_key_object_verification.go @@ -9,9 +9,9 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" "github.com/42wim/sshsig" ) diff --git a/models/asymkey/ssh_key_object_verification_test.go b/models/asymkey/ssh_key_object_verification_test.go index 0d5ebabb70..5d1b7edc27 100644 --- a/models/asymkey/ssh_key_object_verification_test.go +++ b/models/asymkey/ssh_key_object_verification_test.go @@ -6,12 +6,12 @@ package asymkey import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/asymkey/ssh_key_parse.go b/models/asymkey/ssh_key_parse.go index 3cb51b2b22..305e464b4b 100644 --- a/models/asymkey/ssh_key_parse.go +++ b/models/asymkey/ssh_key_parse.go @@ -16,10 +16,10 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "golang.org/x/crypto/ssh" ) diff --git a/models/asymkey/ssh_key_principals.go b/models/asymkey/ssh_key_principals.go index 4e7dee2c91..ba2a1a8c7d 100644 --- a/models/asymkey/ssh_key_principals.go +++ b/models/asymkey/ssh_key_principals.go @@ -8,11 +8,11 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/perm" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // AddPrincipalKey adds new principal to database and authorized_principals file. diff --git a/models/asymkey/ssh_key_test.go b/models/asymkey/ssh_key_test.go index 9a4ef665af..f3c3e41955 100644 --- a/models/asymkey/ssh_key_test.go +++ b/models/asymkey/ssh_key_test.go @@ -12,9 +12,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" "github.com/42wim/sshsig" "github.com/stretchr/testify/assert" diff --git a/models/asymkey/ssh_key_verify.go b/models/asymkey/ssh_key_verify.go index 208288c77b..5dd26ccc9a 100644 --- a/models/asymkey/ssh_key_verify.go +++ b/models/asymkey/ssh_key_verify.go @@ -7,8 +7,8 @@ import ( "bytes" "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + "forgejo.org/modules/log" "github.com/42wim/sshsig" ) diff --git a/models/auth/access_token.go b/models/auth/access_token.go index 3ac18940a8..31d88c6b20 100644 --- a/models/auth/access_token.go +++ b/models/auth/access_token.go @@ -11,10 +11,10 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" lru "github.com/hashicorp/golang-lru/v2" "xorm.io/builder" diff --git a/models/auth/access_token_scope.go b/models/auth/access_token_scope.go index 003ca5c9ab..802ad5aa07 100644 --- a/models/auth/access_token_scope.go +++ b/models/auth/access_token_scope.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/perm" + "forgejo.org/models/perm" ) // AccessTokenScopeCategory represents the scope category for an access token diff --git a/models/auth/access_token_test.go b/models/auth/access_token_test.go index 976ff37493..913118433c 100644 --- a/models/auth/access_token_test.go +++ b/models/auth/access_token_test.go @@ -6,9 +6,9 @@ package auth_test import ( "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/auth/auth_token.go b/models/auth/auth_token.go index c64af3e41f..a3ac9c4c1a 100644 --- a/models/auth/auth_token.go +++ b/models/auth/auth_token.go @@ -10,9 +10,9 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) type AuthorizationPurpose string diff --git a/models/auth/main_test.go b/models/auth/main_test.go index 7b374b38da..b30db24483 100644 --- a/models/auth/main_test.go +++ b/models/auth/main_test.go @@ -6,14 +6,14 @@ package auth_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/auth" - _ "code.gitea.io/gitea/models/forgefed" - _ "code.gitea.io/gitea/models/perm/access" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/auth" + _ "forgejo.org/models/forgefed" + _ "forgejo.org/models/perm/access" ) func TestMain(m *testing.M) { diff --git a/models/auth/oauth2.go b/models/auth/oauth2.go index 9a7854408f..fb0a451566 100644 --- a/models/auth/oauth2.go +++ b/models/auth/oauth2.go @@ -14,11 +14,11 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/container" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" uuid "github.com/google/uuid" "golang.org/x/crypto/bcrypt" diff --git a/models/auth/oauth2_list.go b/models/auth/oauth2_list.go index c55f10b3c8..6f508833a0 100644 --- a/models/auth/oauth2_list.go +++ b/models/auth/oauth2_list.go @@ -4,7 +4,7 @@ package auth import ( - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "xorm.io/builder" ) diff --git a/models/auth/oauth2_test.go b/models/auth/oauth2_test.go index 9b562c8648..877541e0ff 100644 --- a/models/auth/oauth2_test.go +++ b/models/auth/oauth2_test.go @@ -8,10 +8,10 @@ import ( "slices" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/auth/session.go b/models/auth/session.go index 75a205f702..b3724dafb6 100644 --- a/models/auth/session.go +++ b/models/auth/session.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/models/auth/session_test.go b/models/auth/session_test.go index 3b57239704..ab6415f289 100644 --- a/models/auth/session_test.go +++ b/models/auth/session_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/auth/source.go b/models/auth/source.go index d7ed6b97a8..ecd3abc39d 100644 --- a/models/auth/source.go +++ b/models/auth/source.go @@ -9,11 +9,11 @@ import ( "fmt" "reflect" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/auth/source_test.go b/models/auth/source_test.go index 522fecc25f..ed21aef253 100644 --- a/models/auth/source_test.go +++ b/models/auth/source_test.go @@ -7,10 +7,10 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/json" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/auth/twofactor.go b/models/auth/twofactor.go index 67be23320e..f4c1e36b3f 100644 --- a/models/auth/twofactor.go +++ b/models/auth/twofactor.go @@ -11,10 +11,10 @@ import ( "encoding/hex" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/keying" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/keying" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "github.com/pquerna/otp/totp" "golang.org/x/crypto/pbkdf2" diff --git a/models/auth/webauthn.go b/models/auth/webauthn.go index b230e1665a..5b86a6e6f2 100644 --- a/models/auth/webauthn.go +++ b/models/auth/webauthn.go @@ -8,9 +8,9 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "github.com/go-webauthn/webauthn/webauthn" ) diff --git a/models/auth/webauthn_test.go b/models/auth/webauthn_test.go index e1cd652009..abf8e34408 100644 --- a/models/auth/webauthn_test.go +++ b/models/auth/webauthn_test.go @@ -6,9 +6,9 @@ package auth_test import ( "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/go-webauthn/webauthn/webauthn" "github.com/stretchr/testify/assert" diff --git a/models/avatars/avatar.go b/models/avatars/avatar.go index 9eb34dcbcc..ad59bd8769 100644 --- a/models/avatars/avatar.go +++ b/models/avatars/avatar.go @@ -14,10 +14,10 @@ import ( "strings" "sync/atomic" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/cache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "code.forgejo.org/forgejo-contrib/go-libravatar" ) diff --git a/models/avatars/avatar_test.go b/models/avatars/avatar_test.go index 85c40c3fa1..7850d2c096 100644 --- a/models/avatars/avatar_test.go +++ b/models/avatars/avatar_test.go @@ -6,11 +6,11 @@ package avatars_test import ( "testing" - avatars_model "code.gitea.io/gitea/models/avatars" - "code.gitea.io/gitea/models/db" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/setting/config" + avatars_model "forgejo.org/models/avatars" + "forgejo.org/models/db" + system_model "forgejo.org/models/system" + "forgejo.org/modules/setting" + "forgejo.org/modules/setting/config" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/avatars/main_test.go b/models/avatars/main_test.go index c721a7dc2a..bdc66954b1 100644 --- a/models/avatars/main_test.go +++ b/models/avatars/main_test.go @@ -6,11 +6,11 @@ package avatars_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/perm/access" + _ "forgejo.org/models" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/perm/access" ) func TestMain(m *testing.M) { diff --git a/models/db/collation.go b/models/db/collation.go index 39d28fa2ff..768ada89e6 100644 --- a/models/db/collation.go +++ b/models/db/collation.go @@ -8,9 +8,9 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/db/common.go b/models/db/common.go index f3fd3e72ae..c9b012597c 100644 --- a/models/db/common.go +++ b/models/db/common.go @@ -6,8 +6,8 @@ package db import ( "strings" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/db/context_test.go b/models/db/context_test.go index 855f360b75..7ab327b7e9 100644 --- a/models/db/context_test.go +++ b/models/db/context_test.go @@ -7,8 +7,8 @@ import ( "context" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/db/convert.go b/models/db/convert.go index 956e17d411..1f37e49176 100644 --- a/models/db/convert.go +++ b/models/db/convert.go @@ -8,8 +8,8 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/db/engine.go b/models/db/engine.go index 822618a7e3..ca6576da8a 100755 --- a/models/db/engine.go +++ b/models/db/engine.go @@ -15,8 +15,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" "xorm.io/xorm/contexts" diff --git a/models/db/engine_test.go b/models/db/engine_test.go index 230ee3f2b1..5d20e3d602 100644 --- a/models/db/engine_test.go +++ b/models/db/engine_test.go @@ -8,14 +8,14 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" - _ "code.gitea.io/gitea/cmd" // for TestPrimaryKeys + _ "forgejo.org/cmd" // for TestPrimaryKeys "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -64,7 +64,7 @@ func TestPrimaryKeys(t *testing.T) { // https://github.com/go-gitea/gitea/issues/21086 // https://github.com/go-gitea/gitea/issues/16802 // To avoid creating tables without primary key again, this test will check them. - // Import "code.gitea.io/gitea/cmd" to make sure each db.RegisterModel in init functions has been called. + // Import "forgejo.org/cmd" to make sure each db.RegisterModel in init functions has been called. beans, err := db.NamesToBean() if err != nil { diff --git a/models/db/error.go b/models/db/error.go index 665e970e17..6b70c40eb3 100644 --- a/models/db/error.go +++ b/models/db/error.go @@ -6,7 +6,7 @@ package db import ( "fmt" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // ErrCancelled represents an error due to context cancellation diff --git a/models/db/index.go b/models/db/index.go index 259ddd6ade..4c15dbe8a1 100644 --- a/models/db/index.go +++ b/models/db/index.go @@ -9,7 +9,7 @@ import ( "fmt" "strconv" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // ResourceIndex represents a resource index which could be used as issue/release and others diff --git a/models/db/index_test.go b/models/db/index_test.go index 11fbc70d8d..929e514329 100644 --- a/models/db/index_test.go +++ b/models/db/index_test.go @@ -9,8 +9,8 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/db/install/db.go b/models/db/install/db.go index d4c1139637..104a7a8e39 100644 --- a/models/db/install/db.go +++ b/models/db/install/db.go @@ -4,8 +4,8 @@ package install import ( - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/db/iterate.go b/models/db/iterate.go index e1caefa72b..450c7d3389 100644 --- a/models/db/iterate.go +++ b/models/db/iterate.go @@ -6,7 +6,7 @@ package db import ( "context" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/builder" ) diff --git a/models/db/iterate_test.go b/models/db/iterate_test.go index 7535d01d56..47b6a956f4 100644 --- a/models/db/iterate_test.go +++ b/models/db/iterate_test.go @@ -7,9 +7,9 @@ import ( "context" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/db/list.go b/models/db/list.go index 5c005a0350..057221936c 100644 --- a/models/db/list.go +++ b/models/db/list.go @@ -6,7 +6,7 @@ package db import ( "context" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/db/list_test.go b/models/db/list_test.go index 82240d205b..f13958496a 100644 --- a/models/db/list_test.go +++ b/models/db/list_test.go @@ -6,9 +6,9 @@ package db_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/db/log.go b/models/db/log.go index 457ee80ff5..b94af8e39c 100644 --- a/models/db/log.go +++ b/models/db/log.go @@ -7,7 +7,7 @@ import ( "fmt" "sync/atomic" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" xormlog "xorm.io/xorm/log" ) diff --git a/models/db/main_test.go b/models/db/main_test.go index 7d80b400fe..4b06923950 100644 --- a/models/db/main_test.go +++ b/models/db/main_test.go @@ -6,10 +6,10 @@ package db_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/repo" + _ "forgejo.org/models" + _ "forgejo.org/models/repo" ) func TestMain(m *testing.M) { diff --git a/models/db/name.go b/models/db/name.go index 51be33a8bc..29b60b2373 100644 --- a/models/db/name.go +++ b/models/db/name.go @@ -9,7 +9,7 @@ import ( "strings" "unicode/utf8" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) var ( diff --git a/models/db/paginator/main_test.go b/models/db/paginator/main_test.go index 47993aed6b..e2528be121 100644 --- a/models/db/paginator/main_test.go +++ b/models/db/paginator/main_test.go @@ -6,7 +6,7 @@ package paginator import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/models/db/paginator/paginator_test.go b/models/db/paginator/paginator_test.go index 20602212d9..c6d0569aaa 100644 --- a/models/db/paginator/paginator_test.go +++ b/models/db/paginator/paginator_test.go @@ -6,8 +6,8 @@ package paginator import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/models/db/sequence.go b/models/db/sequence.go index f49ad935de..1740e74c52 100644 --- a/models/db/sequence.go +++ b/models/db/sequence.go @@ -8,7 +8,7 @@ import ( "fmt" "regexp" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // CountBadSequences looks for broken sequences from recreate-table mistakes diff --git a/models/db/sql_postgres_with_schema.go b/models/db/sql_postgres_with_schema.go index ec63447f6f..376f984dc6 100644 --- a/models/db/sql_postgres_with_schema.go +++ b/models/db/sql_postgres_with_schema.go @@ -8,7 +8,7 @@ import ( "database/sql/driver" "sync" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/lib/pq" "xorm.io/xorm/dialects" diff --git a/models/dbfs/dbfile.go b/models/dbfs/dbfile.go index dd27b5c36b..12c0398abc 100644 --- a/models/dbfs/dbfile.go +++ b/models/dbfs/dbfile.go @@ -14,7 +14,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) var defaultFileBlockSize int64 = 32 * 1024 diff --git a/models/dbfs/dbfs.go b/models/dbfs/dbfs.go index f68b4a2b70..ba57e50151 100644 --- a/models/dbfs/dbfs.go +++ b/models/dbfs/dbfs.go @@ -10,7 +10,7 @@ import ( "path" "time" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) /* diff --git a/models/dbfs/dbfs_test.go b/models/dbfs/dbfs_test.go index 3ad273a732..8e42c54f31 100644 --- a/models/dbfs/dbfs_test.go +++ b/models/dbfs/dbfs_test.go @@ -9,7 +9,7 @@ import ( "os" "testing" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/dbfs/main_test.go b/models/dbfs/main_test.go index 537ba0935d..3d4b2bc235 100644 --- a/models/dbfs/main_test.go +++ b/models/dbfs/main_test.go @@ -6,7 +6,7 @@ package dbfs import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/models/error.go b/models/error.go index 658bdc165c..e8962f386b 100644 --- a/models/error.go +++ b/models/error.go @@ -7,9 +7,9 @@ package models import ( "fmt" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/util" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/util" ) // ErrUserOwnRepos represents a "UserOwnRepos" kind of error. diff --git a/models/forgefed/federationhost.go b/models/forgefed/federationhost.go index b60c0c39cf..00f13ea399 100644 --- a/models/forgefed/federationhost.go +++ b/models/forgefed/federationhost.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/validation" ) // FederationHost data type diff --git a/models/forgefed/federationhost_repository.go b/models/forgefed/federationhost_repository.go index 03d8741c58..b04a5cd882 100644 --- a/models/forgefed/federationhost_repository.go +++ b/models/forgefed/federationhost_repository.go @@ -8,8 +8,8 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/models/db" + "forgejo.org/modules/validation" ) func init() { diff --git a/models/forgefed/federationhost_test.go b/models/forgefed/federationhost_test.go index ea5494c6e9..7e48a41d3b 100644 --- a/models/forgefed/federationhost_test.go +++ b/models/forgefed/federationhost_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ) func Test_FederationHostValidation(t *testing.T) { diff --git a/models/forgefed/nodeinfo.go b/models/forgefed/nodeinfo.go index 66d2eca7aa..2461b5e499 100644 --- a/models/forgefed/nodeinfo.go +++ b/models/forgefed/nodeinfo.go @@ -6,7 +6,7 @@ package forgefed import ( "net/url" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" "github.com/valyala/fastjson" ) diff --git a/models/forgefed/nodeinfo_test.go b/models/forgefed/nodeinfo_test.go index 4c73bb44d8..9e37e77100 100644 --- a/models/forgefed/nodeinfo_test.go +++ b/models/forgefed/nodeinfo_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ) func Test_NodeInfoWellKnownUnmarshalJSON(t *testing.T) { diff --git a/models/forgejo/semver/main_test.go b/models/forgejo/semver/main_test.go index 10875f14fe..dcc9d588cd 100644 --- a/models/forgejo/semver/main_test.go +++ b/models/forgejo/semver/main_test.go @@ -5,12 +5,12 @@ package semver import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/models/forgejo/semver/semver.go b/models/forgejo/semver/semver.go index 7f122d2301..24a3db9181 100644 --- a/models/forgejo/semver/semver.go +++ b/models/forgejo/semver/semver.go @@ -5,7 +5,7 @@ package semver import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "github.com/hashicorp/go-version" ) diff --git a/models/forgejo/semver/semver_test.go b/models/forgejo/semver/semver_test.go index a508c69b18..2d055e86bb 100644 --- a/models/forgejo/semver/semver_test.go +++ b/models/forgejo/semver/semver_test.go @@ -5,8 +5,8 @@ package semver import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/hashicorp/go-version" "github.com/stretchr/testify/assert" diff --git a/models/forgejo_migrations/main_test.go b/models/forgejo_migrations/main_test.go index 2297f74f73..031fe8090d 100644 --- a/models/forgejo_migrations/main_test.go +++ b/models/forgejo_migrations/main_test.go @@ -6,7 +6,7 @@ package forgejo_migrations //nolint:revive import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/forgejo_migrations/migrate.go b/models/forgejo_migrations/migrate.go index 935b072331..a4cbca70c1 100644 --- a/models/forgejo_migrations/migrate.go +++ b/models/forgejo_migrations/migrate.go @@ -8,12 +8,12 @@ import ( "fmt" "os" - "code.gitea.io/gitea/models/forgejo/semver" - forgejo_v1_20 "code.gitea.io/gitea/models/forgejo_migrations/v1_20" - forgejo_v1_22 "code.gitea.io/gitea/models/forgejo_migrations/v1_22" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/forgejo/semver" + forgejo_v1_20 "forgejo.org/models/forgejo_migrations/v1_20" + forgejo_v1_22 "forgejo.org/models/forgejo_migrations/v1_22" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" "xorm.io/xorm/names" diff --git a/models/forgejo_migrations/migrate_test.go b/models/forgejo_migrations/migrate_test.go index 48ee4f77b1..20653929a3 100644 --- a/models/forgejo_migrations/migrate_test.go +++ b/models/forgejo_migrations/migrate_test.go @@ -6,7 +6,7 @@ package forgejo_migrations //nolint:revive import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/require" ) diff --git a/models/forgejo_migrations/v14.go b/models/forgejo_migrations/v14.go index f6dd35ecf0..53f1ef2223 100644 --- a/models/forgejo_migrations/v14.go +++ b/models/forgejo_migrations/v14.go @@ -4,7 +4,7 @@ package forgejo_migrations //nolint:revive import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/forgejo_migrations/v15.go b/models/forgejo_migrations/v15.go index d7ed19ca7c..5e5588dd05 100644 --- a/models/forgejo_migrations/v15.go +++ b/models/forgejo_migrations/v15.go @@ -6,7 +6,7 @@ package forgejo_migrations //nolint:revive import ( "time" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/forgejo_migrations/v1_20/v1.go b/models/forgejo_migrations/v1_20/v1.go index 1097613655..72beaf23de 100644 --- a/models/forgejo_migrations/v1_20/v1.go +++ b/models/forgejo_migrations/v1_20/v1.go @@ -4,7 +4,7 @@ package forgejo_v1_20 //nolint:revive import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/forgejo_migrations/v1_20/v3.go b/models/forgejo_migrations/v1_20/v3.go index caa4f1aa99..cce227e6eb 100644 --- a/models/forgejo_migrations/v1_20/v3.go +++ b/models/forgejo_migrations/v1_20/v3.go @@ -4,7 +4,7 @@ package forgejo_v1_20 //nolint:revive import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/forgejo_migrations/v1_22/main_test.go b/models/forgejo_migrations/v1_22/main_test.go index 097110893f..03c4c5272c 100644 --- a/models/forgejo_migrations/v1_22/main_test.go +++ b/models/forgejo_migrations/v1_22/main_test.go @@ -6,7 +6,7 @@ package v1_22 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/forgejo_migrations/v1_22/v11.go b/models/forgejo_migrations/v1_22/v11.go index c693993565..17bb592379 100644 --- a/models/forgejo_migrations/v1_22/v11.go +++ b/models/forgejo_migrations/v1_22/v11.go @@ -4,7 +4,7 @@ package v1_22 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/forgejo_migrations/v1_22/v8_test.go b/models/forgejo_migrations/v1_22/v8_test.go index 128fd08ab0..2af9e431b1 100644 --- a/models/forgejo_migrations/v1_22/v8_test.go +++ b/models/forgejo_migrations/v1_22/v8_test.go @@ -6,7 +6,7 @@ package v1_22 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/forgejo_migrations/v25.go b/models/forgejo_migrations/v25.go index 5e3dff80b3..8e3032a40c 100644 --- a/models/forgejo_migrations/v25.go +++ b/models/forgejo_migrations/v25.go @@ -9,11 +9,11 @@ import ( "encoding/base64" "fmt" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/secret" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/secret" + "forgejo.org/modules/setting" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/forgejo_migrations/v25_test.go b/models/forgejo_migrations/v25_test.go index 73b97f7a35..e7402fd021 100644 --- a/models/forgejo_migrations/v25_test.go +++ b/models/forgejo_migrations/v25_test.go @@ -6,10 +6,10 @@ package forgejo_migrations //nolint:revive import ( "testing" - "code.gitea.io/gitea/models/auth" - migration_tests "code.gitea.io/gitea/models/migrations/test" - "code.gitea.io/gitea/modules/keying" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/auth" + migration_tests "forgejo.org/models/migrations/test" + "forgejo.org/modules/keying" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/forgejo_migrations/v27.go b/models/forgejo_migrations/v27.go index b3a93a9aad..2efa3485a8 100644 --- a/models/forgejo_migrations/v27.go +++ b/models/forgejo_migrations/v27.go @@ -4,7 +4,7 @@ package forgejo_migrations //nolint:revive import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/git/branch.go b/models/git/branch.go index 702d767c75..a73a0f2a20 100644 --- a/models/git/branch.go +++ b/models/git/branch.go @@ -8,14 +8,14 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/git/branch_list.go b/models/git/branch_list.go index 81a43eaea3..4b678f15c0 100644 --- a/models/git/branch_list.go +++ b/models/git/branch_list.go @@ -6,10 +6,10 @@ package git import ( "context" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/optional" "xorm.io/builder" ) diff --git a/models/git/branch_test.go b/models/git/branch_test.go index 81839eb774..5c1762750e 100644 --- a/models/git/branch_test.go +++ b/models/git/branch_test.go @@ -7,13 +7,13 @@ import ( "context" "testing" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/modules/optional" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/git/commit_status.go b/models/git/commit_status.go index f6ac1dcc54..a679703ffd 100644 --- a/models/git/commit_status.go +++ b/models/git/commit_status.go @@ -13,16 +13,16 @@ import ( "strings" "time" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/translation" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/translation" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/git/commit_status_summary.go b/models/git/commit_status_summary.go index 7603e7aa65..448aa5aed7 100644 --- a/models/git/commit_status_summary.go +++ b/models/git/commit_status_summary.go @@ -6,9 +6,9 @@ package git import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" "xorm.io/builder" ) diff --git a/models/git/commit_status_test.go b/models/git/commit_status_test.go index 9a039bfc39..c062bbbbb9 100644 --- a/models/git/commit_status_test.go +++ b/models/git/commit_status_test.go @@ -8,15 +8,15 @@ import ( "testing" "time" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/structs" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/git/lfs.go b/models/git/lfs.go index 635d70d9bc..9ec1ca7d8a 100644 --- a/models/git/lfs.go +++ b/models/git/lfs.go @@ -7,16 +7,16 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/git/lfs_lock.go b/models/git/lfs_lock.go index 07ce7d4abf..9dc0a947c3 100644 --- a/models/git/lfs_lock.go +++ b/models/git/lfs_lock.go @@ -10,14 +10,14 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // LFSLock represents a git lfs lock of repository. diff --git a/models/git/lfs_lock_list.go b/models/git/lfs_lock_list.go index cab1e61cab..ffa4db21c4 100644 --- a/models/git/lfs_lock_list.go +++ b/models/git/lfs_lock_list.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" ) // LFSLockList is a list of LFSLock diff --git a/models/git/lfs_test.go b/models/git/lfs_test.go index afb73ecf4e..8a2d3c8caf 100644 --- a/models/git/lfs_test.go +++ b/models/git/lfs_test.go @@ -8,10 +8,10 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/git/main_test.go b/models/git/main_test.go index f25ad42584..63a3c363ab 100644 --- a/models/git/main_test.go +++ b/models/git/main_test.go @@ -6,12 +6,12 @@ package git_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/models/git/protected_branch.go b/models/git/protected_branch.go index 4fc08020e0..c1eb750230 100644 --- a/models/git/protected_branch.go +++ b/models/git/protected_branch.go @@ -10,16 +10,16 @@ import ( "slices" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "github.com/gobwas/glob" "github.com/gobwas/glob/syntax" diff --git a/models/git/protected_branch_list.go b/models/git/protected_branch_list.go index 613333a5a2..c7a3154884 100644 --- a/models/git/protected_branch_list.go +++ b/models/git/protected_branch_list.go @@ -7,8 +7,8 @@ import ( "context" "sort" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + "forgejo.org/modules/optional" "github.com/gobwas/glob" ) diff --git a/models/git/protected_tag.go b/models/git/protected_tag.go index 9a6646c742..eeaae41868 100644 --- a/models/git/protected_tag.go +++ b/models/git/protected_tag.go @@ -9,9 +9,9 @@ import ( "slices" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/modules/timeutil" "github.com/gobwas/glob" ) diff --git a/models/git/protected_tag_test.go b/models/git/protected_tag_test.go index 796e1594b9..eec13fdc1f 100644 --- a/models/git/protected_tag_test.go +++ b/models/git/protected_tag_test.go @@ -6,9 +6,9 @@ package git_test import ( "testing" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/action_aggregator.go b/models/issues/action_aggregator.go index 722696fbb2..cf5be753f1 100644 --- a/models/issues/action_aggregator.go +++ b/models/issues/action_aggregator.go @@ -6,8 +6,8 @@ package issues import ( "slices" - "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/organization" + user_model "forgejo.org/models/user" ) type ActionAggregator struct { diff --git a/models/issues/assignees.go b/models/issues/assignees.go index a83cb250fa..b1099b6b63 100644 --- a/models/issues/assignees.go +++ b/models/issues/assignees.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/assignees_test.go b/models/issues/assignees_test.go index 47fb81a237..a5e8f0cb09 100644 --- a/models/issues/assignees_test.go +++ b/models/issues/assignees_test.go @@ -6,10 +6,10 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/comment.go b/models/issues/comment.go index f77b2bcc8d..ce4cb6ea93 100644 --- a/models/issues/comment.go +++ b/models/issues/comment.go @@ -12,22 +12,22 @@ import ( "strconv" "unicode/utf8" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/organization" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/references" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/organization" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/references" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/comment_code.go b/models/issues/comment_code.go index 2f6f57e0da..3c87a1b41a 100644 --- a/models/issues/comment_code.go +++ b/models/issues/comment_code.go @@ -6,10 +6,10 @@ package issues import ( "context" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" "xorm.io/builder" ) diff --git a/models/issues/comment_list.go b/models/issues/comment_list.go index 7a133d1c16..7285e347b4 100644 --- a/models/issues/comment_list.go +++ b/models/issues/comment_list.go @@ -6,11 +6,11 @@ package issues import ( "context" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/log" ) // CommentList defines a list of comments diff --git a/models/issues/comment_list_test.go b/models/issues/comment_list_test.go index 5ad1cd19c9..062a710b84 100644 --- a/models/issues/comment_list_test.go +++ b/models/issues/comment_list_test.go @@ -6,10 +6,10 @@ package issues import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/comment_test.go b/models/issues/comment_test.go index 88d2200bd1..0e257f533c 100644 --- a/models/issues/comment_test.go +++ b/models/issues/comment_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/content_history.go b/models/issues/content_history.go index cd3e217b21..476c6e0f90 100644 --- a/models/issues/content_history.go +++ b/models/issues/content_history.go @@ -7,11 +7,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/avatars" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/avatars" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/content_history_test.go b/models/issues/content_history_test.go index dde6f195bc..4e158da1cc 100644 --- a/models/issues/content_history_test.go +++ b/models/issues/content_history_test.go @@ -6,10 +6,10 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/dependency.go b/models/issues/dependency.go index 146dd1887d..fab35dad12 100644 --- a/models/issues/dependency.go +++ b/models/issues/dependency.go @@ -7,10 +7,10 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) // ErrDependencyExists represents a "DependencyAlreadyExists" kind of error. diff --git a/models/issues/dependency_test.go b/models/issues/dependency_test.go index 1e73c581ee..46f3ad10e5 100644 --- a/models/issues/dependency_test.go +++ b/models/issues/dependency_test.go @@ -6,10 +6,10 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/issue.go b/models/issues/issue.go index 79701c7be8..142f2de182 100644 --- a/models/issues/issue.go +++ b/models/issues/issue.go @@ -11,16 +11,16 @@ import ( "regexp" "slices" - "code.gitea.io/gitea/models/db" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/issue_index.go b/models/issues/issue_index.go index 9386027f74..5012067d70 100644 --- a/models/issues/issue_index.go +++ b/models/issues/issue_index.go @@ -6,7 +6,7 @@ package issues import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) func GetMaxIssueIndexForRepo(ctx context.Context, repoID int64) (int64, error) { diff --git a/models/issues/issue_index_test.go b/models/issues/issue_index_test.go index eb79a0806c..6de3f0bc95 100644 --- a/models/issues/issue_index_test.go +++ b/models/issues/issue_index_test.go @@ -6,10 +6,10 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/issue_label.go b/models/issues/issue_label.go index 04e1fa3d7d..c9e792ed0f 100644 --- a/models/issues/issue_label.go +++ b/models/issues/issue_label.go @@ -8,9 +8,9 @@ import ( "fmt" "sort" - "code.gitea.io/gitea/models/db" - access_model "code.gitea.io/gitea/models/perm/access" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + access_model "forgejo.org/models/perm/access" + user_model "forgejo.org/models/user" "xorm.io/builder" ) diff --git a/models/issues/issue_label_test.go b/models/issues/issue_label_test.go index 67f4874c8f..753e389c7b 100644 --- a/models/issues/issue_label_test.go +++ b/models/issues/issue_label_test.go @@ -6,10 +6,10 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/issue_list.go b/models/issues/issue_list.go index fe6c630a31..5a02baa428 100644 --- a/models/issues/issue_list.go +++ b/models/issues/issue_list.go @@ -7,11 +7,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" + "forgejo.org/models/db" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" "xorm.io/builder" ) diff --git a/models/issues/issue_list_test.go b/models/issues/issue_list_test.go index 32cc0fe423..7aa5222958 100644 --- a/models/issues/issue_list_test.go +++ b/models/issues/issue_list_test.go @@ -6,11 +6,11 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/issue_lock.go b/models/issues/issue_lock.go index b21629b529..1e4a5906d9 100644 --- a/models/issues/issue_lock.go +++ b/models/issues/issue_lock.go @@ -6,8 +6,8 @@ package issues import ( "context" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" ) // IssueLockOptions defines options for locking and/or unlocking an issue/PR diff --git a/models/issues/issue_project.go b/models/issues/issue_project.go index 697ef7fad6..3c6ce0ca1c 100644 --- a/models/issues/issue_project.go +++ b/models/issues/issue_project.go @@ -6,12 +6,12 @@ package issues import ( "context" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - project_model "code.gitea.io/gitea/models/project" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + project_model "forgejo.org/models/project" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/util" ) // LoadProject load the project the issue was assigned to diff --git a/models/issues/issue_project_test.go b/models/issues/issue_project_test.go index d724922946..f518679f34 100644 --- a/models/issues/issue_project_test.go +++ b/models/issues/issue_project_test.go @@ -6,14 +6,14 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/project" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/issues" + "forgejo.org/models/organization" + "forgejo.org/models/project" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/issue_search.go b/models/issues/issue_search.go index 6592f3708c..bf4b89ee0b 100644 --- a/models/issues/issue_search.go +++ b/models/issues/issue_search.go @@ -9,13 +9,13 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/optional" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/issues/issue_stats.go b/models/issues/issue_stats.go index fdc06b05d1..eee8760b9f 100644 --- a/models/issues/issue_stats.go +++ b/models/issues/issue_stats.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/issues/issue_stats_test.go b/models/issues/issue_stats_test.go index 9967557337..549dc04433 100644 --- a/models/issues/issue_stats_test.go +++ b/models/issues/issue_stats_test.go @@ -6,9 +6,9 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/issue_test.go b/models/issues/issue_test.go index d121435f0a..afca27dfcf 100644 --- a/models/issues/issue_test.go +++ b/models/issues/issue_test.go @@ -10,12 +10,12 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/issue_update.go b/models/issues/issue_update.go index ad59b767ab..9d0bc84454 100644 --- a/models/issues/issue_update.go +++ b/models/issues/issue_update.go @@ -8,20 +8,20 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/references" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + system_model "forgejo.org/models/system" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/references" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/issue_user.go b/models/issues/issue_user.go index 6b59e0725e..70e162411f 100644 --- a/models/issues/issue_user.go +++ b/models/issues/issue_user.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" ) // IssueUser represents an issue-user relation. diff --git a/models/issues/issue_user_test.go b/models/issues/issue_user_test.go index e059e43e8b..77e6c5bc5a 100644 --- a/models/issues/issue_user_test.go +++ b/models/issues/issue_user_test.go @@ -6,10 +6,10 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/require" ) diff --git a/models/issues/issue_watch.go b/models/issues/issue_watch.go index 560be17eb6..ecc09e1e81 100644 --- a/models/issues/issue_watch.go +++ b/models/issues/issue_watch.go @@ -6,10 +6,10 @@ package issues import ( "context" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" ) // IssueWatch is connection request for receiving issue notification. diff --git a/models/issues/issue_watch_test.go b/models/issues/issue_watch_test.go index 573215d577..a5c01693fa 100644 --- a/models/issues/issue_watch_test.go +++ b/models/issues/issue_watch_test.go @@ -6,9 +6,9 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/issue_xref.go b/models/issues/issue_xref.go index 9c9d5d66cd..4c753a58eb 100644 --- a/models/issues/issue_xref.go +++ b/models/issues/issue_xref.go @@ -7,12 +7,12 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/references" + "forgejo.org/models/db" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/references" ) type crossReference struct { diff --git a/models/issues/issue_xref_test.go b/models/issues/issue_xref_test.go index a24d1b04ee..e74717be1e 100644 --- a/models/issues/issue_xref_test.go +++ b/models/issues/issue_xref_test.go @@ -7,12 +7,12 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/references" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/references" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/label.go b/models/issues/label.go index cb5fdd577d..264ca8cc3d 100644 --- a/models/issues/label.go +++ b/models/issues/label.go @@ -11,11 +11,11 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/label" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/label" + "forgejo.org/modules/optional" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/label_test.go b/models/issues/label_test.go index 3e3d097458..f2ba28a6d2 100644 --- a/models/issues/label_test.go +++ b/models/issues/label_test.go @@ -6,12 +6,12 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/main_test.go b/models/issues/main_test.go index baabd6646a..05d854c964 100644 --- a/models/issues/main_test.go +++ b/models/issues/main_test.go @@ -6,14 +6,14 @@ package issues_test import ( "testing" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/repo" - _ "code.gitea.io/gitea/models/user" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/repo" + _ "forgejo.org/models/user" "github.com/stretchr/testify/require" ) diff --git a/models/issues/milestone.go b/models/issues/milestone.go index 03fab8b3ee..52433e735d 100644 --- a/models/issues/milestone.go +++ b/models/issues/milestone.go @@ -9,12 +9,12 @@ import ( "html/template" "strings" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/optional" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/optional" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/milestone_list.go b/models/issues/milestone_list.go index 955ab2356d..e2079fb324 100644 --- a/models/issues/milestone_list.go +++ b/models/issues/milestone_list.go @@ -7,8 +7,8 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + "forgejo.org/modules/optional" "xorm.io/builder" ) diff --git a/models/issues/milestone_test.go b/models/issues/milestone_test.go index c83450e9db..bfb4f38ad0 100644 --- a/models/issues/milestone_test.go +++ b/models/issues/milestone_test.go @@ -7,14 +7,14 @@ import ( "sort" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/pull.go b/models/issues/pull.go index 708dff9b8e..c46961447c 100644 --- a/models/issues/pull.go +++ b/models/issues/pull.go @@ -12,17 +12,17 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - org_model "code.gitea.io/gitea/models/organization" - pull_model "code.gitea.io/gitea/models/pull" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + org_model "forgejo.org/models/organization" + pull_model "forgejo.org/models/pull" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/pull_list.go b/models/issues/pull_list.go index 123ff18d81..a448673454 100644 --- a/models/issues/pull_list.go +++ b/models/issues/pull_list.go @@ -7,14 +7,14 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/util" "xorm.io/xorm" ) diff --git a/models/issues/pull_test.go b/models/issues/pull_test.go index 8e0c020ad9..a2dde055a6 100644 --- a/models/issues/pull_test.go +++ b/models/issues/pull_test.go @@ -8,13 +8,13 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/reaction.go b/models/issues/reaction.go index 11b3c6be20..522040c022 100644 --- a/models/issues/reaction.go +++ b/models/issues/reaction.go @@ -8,13 +8,13 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/reaction_test.go b/models/issues/reaction_test.go index e02e6d7e0c..0ae201c500 100644 --- a/models/issues/reaction_test.go +++ b/models/issues/reaction_test.go @@ -6,12 +6,12 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/review.go b/models/issues/review.go index cd3190f119..db5cd65e2e 100644 --- a/models/issues/review.go +++ b/models/issues/review.go @@ -9,16 +9,16 @@ import ( "slices" "strings" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/issues/review_list.go b/models/issues/review_list.go index a5ceb21791..45480832d8 100644 --- a/models/issues/review_list.go +++ b/models/issues/review_list.go @@ -6,11 +6,11 @@ package issues import ( "context" - "code.gitea.io/gitea/models/db" - organization_model "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + organization_model "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/optional" "xorm.io/builder" ) diff --git a/models/issues/review_test.go b/models/issues/review_test.go index 51cb940579..33d131c225 100644 --- a/models/issues/review_test.go +++ b/models/issues/review_test.go @@ -6,11 +6,11 @@ package issues_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/stopwatch.go b/models/issues/stopwatch.go index 68e59d59f4..2ff2a17d92 100644 --- a/models/issues/stopwatch.go +++ b/models/issues/stopwatch.go @@ -8,11 +8,11 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) // ErrIssueStopwatchNotExist represents an error that stopwatch is not exist diff --git a/models/issues/stopwatch_test.go b/models/issues/stopwatch_test.go index af86e8b1d8..8920023a3b 100644 --- a/models/issues/stopwatch_test.go +++ b/models/issues/stopwatch_test.go @@ -7,12 +7,12 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/issues/tracked_time.go b/models/issues/tracked_time.go index ea404d36cd..05d7b15815 100644 --- a/models/issues/tracked_time.go +++ b/models/issues/tracked_time.go @@ -9,11 +9,11 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/issues/tracked_time_test.go b/models/issues/tracked_time_test.go index 4d4e232012..770b43abd7 100644 --- a/models/issues/tracked_time_test.go +++ b/models/issues/tracked_time_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/main_test.go b/models/main_test.go index f9e019f5e2..0edcf8f49d 100644 --- a/models/main_test.go +++ b/models/main_test.go @@ -6,15 +6,15 @@ package models import ( "testing" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" - _ "code.gitea.io/gitea/models/system" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" + _ "forgejo.org/models/system" "github.com/stretchr/testify/require" ) diff --git a/models/migrations/base/db.go b/models/migrations/base/db.go index 333fa3151f..897ad016ab 100644 --- a/models/migrations/base/db.go +++ b/models/migrations/base/db.go @@ -10,8 +10,8 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/base/db_test.go b/models/migrations/base/db_test.go index 4010a14311..4a610e065d 100644 --- a/models/migrations/base/db_test.go +++ b/models/migrations/base/db_test.go @@ -6,8 +6,8 @@ package base import ( "testing" - migrations_tests "code.gitea.io/gitea/models/migrations/test" - "code.gitea.io/gitea/modules/timeutil" + migrations_tests "forgejo.org/models/migrations/test" + "forgejo.org/modules/timeutil" "xorm.io/xorm/names" ) diff --git a/models/migrations/base/main_test.go b/models/migrations/base/main_test.go index c625ef02b8..2b3889441a 100644 --- a/models/migrations/base/main_test.go +++ b/models/migrations/base/main_test.go @@ -6,7 +6,7 @@ package base import ( "testing" - migrations_tests "code.gitea.io/gitea/models/migrations/test" + migrations_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 1674af08cd..11933014d7 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -8,29 +8,29 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/forgejo_migrations" - "code.gitea.io/gitea/models/migrations/v1_10" - "code.gitea.io/gitea/models/migrations/v1_11" - "code.gitea.io/gitea/models/migrations/v1_12" - "code.gitea.io/gitea/models/migrations/v1_13" - "code.gitea.io/gitea/models/migrations/v1_14" - "code.gitea.io/gitea/models/migrations/v1_15" - "code.gitea.io/gitea/models/migrations/v1_16" - "code.gitea.io/gitea/models/migrations/v1_17" - "code.gitea.io/gitea/models/migrations/v1_18" - "code.gitea.io/gitea/models/migrations/v1_19" - "code.gitea.io/gitea/models/migrations/v1_20" - "code.gitea.io/gitea/models/migrations/v1_21" - "code.gitea.io/gitea/models/migrations/v1_22" - "code.gitea.io/gitea/models/migrations/v1_23" - "code.gitea.io/gitea/models/migrations/v1_6" - "code.gitea.io/gitea/models/migrations/v1_7" - "code.gitea.io/gitea/models/migrations/v1_8" - "code.gitea.io/gitea/models/migrations/v1_9" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - forgejo_services "code.gitea.io/gitea/services/forgejo" + "forgejo.org/models/forgejo_migrations" + "forgejo.org/models/migrations/v1_10" + "forgejo.org/models/migrations/v1_11" + "forgejo.org/models/migrations/v1_12" + "forgejo.org/models/migrations/v1_13" + "forgejo.org/models/migrations/v1_14" + "forgejo.org/models/migrations/v1_15" + "forgejo.org/models/migrations/v1_16" + "forgejo.org/models/migrations/v1_17" + "forgejo.org/models/migrations/v1_18" + "forgejo.org/models/migrations/v1_19" + "forgejo.org/models/migrations/v1_20" + "forgejo.org/models/migrations/v1_21" + "forgejo.org/models/migrations/v1_22" + "forgejo.org/models/migrations/v1_23" + "forgejo.org/models/migrations/v1_6" + "forgejo.org/models/migrations/v1_7" + "forgejo.org/models/migrations/v1_8" + "forgejo.org/models/migrations/v1_9" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + forgejo_services "forgejo.org/services/forgejo" "xorm.io/xorm" "xorm.io/xorm/names" diff --git a/models/migrations/migrations_test.go b/models/migrations/migrations_test.go index 78c2898996..ea941b9a09 100644 --- a/models/migrations/migrations_test.go +++ b/models/migrations/migrations_test.go @@ -6,7 +6,7 @@ package migrations import ( "testing" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" ) diff --git a/models/migrations/test/tests.go b/models/migrations/test/tests.go index 177e33c56a..07487cf58a 100644 --- a/models/migrations/test/tests.go +++ b/models/migrations/test/tests.go @@ -15,14 +15,14 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/testlogger" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/testlogger" + "forgejo.org/modules/util" "github.com/stretchr/testify/require" "xorm.io/xorm" diff --git a/models/migrations/v1_10/v96.go b/models/migrations/v1_10/v96.go index 34c8240031..3bfb770f24 100644 --- a/models/migrations/v1_10/v96.go +++ b/models/migrations/v1_10/v96.go @@ -6,8 +6,8 @@ package v1_10 //nolint import ( "path/filepath" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/xorm" ) diff --git a/models/migrations/v1_10/v99.go b/models/migrations/v1_10/v99.go index ebe6597f7c..7f287b77aa 100644 --- a/models/migrations/v1_10/v99.go +++ b/models/migrations/v1_10/v99.go @@ -4,7 +4,7 @@ package v1_10 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_11/v102.go b/models/migrations/v1_11/v102.go index 9358e4cef3..a585d9c423 100644 --- a/models/migrations/v1_11/v102.go +++ b/models/migrations/v1_11/v102.go @@ -4,7 +4,7 @@ package v1_11 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_11/v104.go b/models/migrations/v1_11/v104.go index 3e8ee64bc1..af3578ca4a 100644 --- a/models/migrations/v1_11/v104.go +++ b/models/migrations/v1_11/v104.go @@ -4,7 +4,7 @@ package v1_11 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_11/v112.go b/models/migrations/v1_11/v112.go index 0857663119..6112ab51a5 100644 --- a/models/migrations/v1_11/v112.go +++ b/models/migrations/v1_11/v112.go @@ -7,8 +7,8 @@ import ( "fmt" "path/filepath" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/migrations/v1_11/v115.go b/models/migrations/v1_11/v115.go index 8c631cfd0b..3d4b41017b 100644 --- a/models/migrations/v1_11/v115.go +++ b/models/migrations/v1_11/v115.go @@ -12,10 +12,10 @@ import ( "path/filepath" "time" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/xorm" ) diff --git a/models/migrations/v1_12/v127.go b/models/migrations/v1_12/v127.go index 00e391dc87..11a4042973 100644 --- a/models/migrations/v1_12/v127.go +++ b/models/migrations/v1_12/v127.go @@ -6,7 +6,7 @@ package v1_12 //nolint import ( "fmt" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_12/v128.go b/models/migrations/v1_12/v128.go index 6eea1337ef..6d7307f470 100644 --- a/models/migrations/v1_12/v128.go +++ b/models/migrations/v1_12/v128.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_12/v130.go b/models/migrations/v1_12/v130.go index 391810c7ca..bfa856796a 100644 --- a/models/migrations/v1_12/v130.go +++ b/models/migrations/v1_12/v130.go @@ -4,8 +4,8 @@ package v1_12 //nolint import ( - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_12/v134.go b/models/migrations/v1_12/v134.go index 23c2916ba8..bba996fd40 100644 --- a/models/migrations/v1_12/v134.go +++ b/models/migrations/v1_12/v134.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_12/v136.go b/models/migrations/v1_12/v136.go index d91ff92feb..db6fc6dea1 100644 --- a/models/migrations/v1_12/v136.go +++ b/models/migrations/v1_12/v136.go @@ -10,10 +10,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_12/v139.go b/models/migrations/v1_12/v139.go index 5b6576951d..cd7963524e 100644 --- a/models/migrations/v1_12/v139.go +++ b/models/migrations/v1_12/v139.go @@ -4,7 +4,7 @@ package v1_12 //nolint import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_13/v140.go b/models/migrations/v1_13/v140.go index 2d3337012d..d74f808e9f 100644 --- a/models/migrations/v1_13/v140.go +++ b/models/migrations/v1_13/v140.go @@ -6,8 +6,8 @@ package v1_13 //nolint import ( "fmt" - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_13/v142.go b/models/migrations/v1_13/v142.go index 7c7c01ad47..7490e0f3b4 100644 --- a/models/migrations/v1_13/v142.go +++ b/models/migrations/v1_13/v142.go @@ -4,7 +4,7 @@ package v1_13 //nolint import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/migrations/v1_13/v143.go b/models/migrations/v1_13/v143.go index 885768dff3..1f9120e2ba 100644 --- a/models/migrations/v1_13/v143.go +++ b/models/migrations/v1_13/v143.go @@ -4,7 +4,7 @@ package v1_13 //nolint import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "xorm.io/xorm" ) diff --git a/models/migrations/v1_13/v144.go b/models/migrations/v1_13/v144.go index f5a0bc5751..7e801eab8a 100644 --- a/models/migrations/v1_13/v144.go +++ b/models/migrations/v1_13/v144.go @@ -4,7 +4,7 @@ package v1_13 //nolint import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/migrations/v1_13/v145.go b/models/migrations/v1_13/v145.go index 5b38f1cd80..a01f577ed1 100644 --- a/models/migrations/v1_13/v145.go +++ b/models/migrations/v1_13/v145.go @@ -6,7 +6,7 @@ package v1_13 //nolint import ( "fmt" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_13/v146.go b/models/migrations/v1_13/v146.go index 7d9a878704..a1b54ee3aa 100644 --- a/models/migrations/v1_13/v146.go +++ b/models/migrations/v1_13/v146.go @@ -4,7 +4,7 @@ package v1_13 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_13/v147.go b/models/migrations/v1_13/v147.go index 510ef39b28..cc57504c74 100644 --- a/models/migrations/v1_13/v147.go +++ b/models/migrations/v1_13/v147.go @@ -4,7 +4,7 @@ package v1_13 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_13/v149.go b/models/migrations/v1_13/v149.go index 2a1db04cbb..3a0c5909d5 100644 --- a/models/migrations/v1_13/v149.go +++ b/models/migrations/v1_13/v149.go @@ -6,7 +6,7 @@ package v1_13 //nolint import ( "fmt" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_13/v150.go b/models/migrations/v1_13/v150.go index d5ba489566..be14fd130c 100644 --- a/models/migrations/v1_13/v150.go +++ b/models/migrations/v1_13/v150.go @@ -4,8 +4,8 @@ package v1_13 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_13/v151.go b/models/migrations/v1_13/v151.go index ea4a8eae31..60339962cb 100644 --- a/models/migrations/v1_13/v151.go +++ b/models/migrations/v1_13/v151.go @@ -8,8 +8,8 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_13/v154.go b/models/migrations/v1_13/v154.go index 60cc56713e..cf31190781 100644 --- a/models/migrations/v1_13/v154.go +++ b/models/migrations/v1_13/v154.go @@ -4,7 +4,7 @@ package v1_13 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/main_test.go b/models/migrations/v1_14/main_test.go index cf7fcb56a6..c01faedc35 100644 --- a/models/migrations/v1_14/main_test.go +++ b/models/migrations/v1_14/main_test.go @@ -6,7 +6,7 @@ package v1_14 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_14/v156.go b/models/migrations/v1_14/v156.go index 2cf4954a15..b6dc91a054 100644 --- a/models/migrations/v1_14/v156.go +++ b/models/migrations/v1_14/v156.go @@ -8,9 +8,9 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/v158.go b/models/migrations/v1_14/v158.go index 2d688b1706..9849d5a9ea 100644 --- a/models/migrations/v1_14/v158.go +++ b/models/migrations/v1_14/v158.go @@ -7,8 +7,8 @@ import ( "fmt" "strconv" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/v159.go b/models/migrations/v1_14/v159.go index 149ae0f6a8..fdd7e12449 100644 --- a/models/migrations/v1_14/v159.go +++ b/models/migrations/v1_14/v159.go @@ -4,8 +4,8 @@ package v1_14 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/v161.go b/models/migrations/v1_14/v161.go index ac7e821a80..6e904cfab6 100644 --- a/models/migrations/v1_14/v161.go +++ b/models/migrations/v1_14/v161.go @@ -6,7 +6,7 @@ package v1_14 //nolint import ( "context" - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/v162.go b/models/migrations/v1_14/v162.go index 2e4e0b8eb0..5d6d7c2e3f 100644 --- a/models/migrations/v1_14/v162.go +++ b/models/migrations/v1_14/v162.go @@ -4,7 +4,7 @@ package v1_14 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/v163.go b/models/migrations/v1_14/v163.go index 0cd8ba68c8..60fc98c0a4 100644 --- a/models/migrations/v1_14/v163.go +++ b/models/migrations/v1_14/v163.go @@ -4,7 +4,7 @@ package v1_14 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/v165.go b/models/migrations/v1_14/v165.go index 5b1a779294..9315e44197 100644 --- a/models/migrations/v1_14/v165.go +++ b/models/migrations/v1_14/v165.go @@ -4,7 +4,7 @@ package v1_14 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_14/v172.go b/models/migrations/v1_14/v172.go index 0f9bef902a..d49b70f5ad 100644 --- a/models/migrations/v1_14/v172.go +++ b/models/migrations/v1_14/v172.go @@ -4,7 +4,7 @@ package v1_14 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/v175.go b/models/migrations/v1_14/v175.go index 70d72b2600..3cda5772a0 100644 --- a/models/migrations/v1_14/v175.go +++ b/models/migrations/v1_14/v175.go @@ -7,8 +7,8 @@ import ( "fmt" "regexp" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_14/v176_test.go b/models/migrations/v1_14/v176_test.go index f5e644e501..d88ff207e7 100644 --- a/models/migrations/v1_14/v176_test.go +++ b/models/migrations/v1_14/v176_test.go @@ -6,7 +6,7 @@ package v1_14 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" ) diff --git a/models/migrations/v1_14/v177_test.go b/models/migrations/v1_14/v177_test.go index cf5e745d39..199a71186a 100644 --- a/models/migrations/v1_14/v177_test.go +++ b/models/migrations/v1_14/v177_test.go @@ -6,8 +6,8 @@ package v1_14 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" - "code.gitea.io/gitea/modules/timeutil" + migration_tests "forgejo.org/models/migrations/test" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_15/main_test.go b/models/migrations/v1_15/main_test.go index e4960658d3..6c04d3f5ee 100644 --- a/models/migrations/v1_15/main_test.go +++ b/models/migrations/v1_15/main_test.go @@ -6,7 +6,7 @@ package v1_15 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_15/v179.go b/models/migrations/v1_15/v179.go index f6b142eb42..b990583303 100644 --- a/models/migrations/v1_15/v179.go +++ b/models/migrations/v1_15/v179.go @@ -4,7 +4,7 @@ package v1_15 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_15/v180.go b/models/migrations/v1_15/v180.go index c71e771861..02fbd57cdb 100644 --- a/models/migrations/v1_15/v180.go +++ b/models/migrations/v1_15/v180.go @@ -4,8 +4,8 @@ package v1_15 //nolint import ( - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/json" + "forgejo.org/modules/util" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/migrations/v1_15/v181_test.go b/models/migrations/v1_15/v181_test.go index ead26f5fcf..4544ca6520 100644 --- a/models/migrations/v1_15/v181_test.go +++ b/models/migrations/v1_15/v181_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_15/v182_test.go b/models/migrations/v1_15/v182_test.go index eb21311339..6865cafac4 100644 --- a/models/migrations/v1_15/v182_test.go +++ b/models/migrations/v1_15/v182_test.go @@ -6,7 +6,7 @@ package v1_15 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_15/v183.go b/models/migrations/v1_15/v183.go index effad1b467..aaad64c220 100644 --- a/models/migrations/v1_15/v183.go +++ b/models/migrations/v1_15/v183.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_15/v184.go b/models/migrations/v1_15/v184.go index 871c9db18a..41b64d4743 100644 --- a/models/migrations/v1_15/v184.go +++ b/models/migrations/v1_15/v184.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_15/v186.go b/models/migrations/v1_15/v186.go index 01aab3add5..ad75822de5 100644 --- a/models/migrations/v1_15/v186.go +++ b/models/migrations/v1_15/v186.go @@ -4,7 +4,7 @@ package v1_15 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_15/v187.go b/models/migrations/v1_15/v187.go index 21cd6772b7..b573fc52ef 100644 --- a/models/migrations/v1_15/v187.go +++ b/models/migrations/v1_15/v187.go @@ -4,7 +4,7 @@ package v1_15 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_16/main_test.go b/models/migrations/v1_16/main_test.go index 49611776dd..6f891f3e94 100644 --- a/models/migrations/v1_16/main_test.go +++ b/models/migrations/v1_16/main_test.go @@ -6,7 +6,7 @@ package v1_16 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_16/v189.go b/models/migrations/v1_16/v189.go index 5649645051..1ee72d9c39 100644 --- a/models/migrations/v1_16/v189.go +++ b/models/migrations/v1_16/v189.go @@ -7,8 +7,8 @@ import ( "encoding/binary" "fmt" - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/json" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/json" "xorm.io/xorm" ) diff --git a/models/migrations/v1_16/v189_test.go b/models/migrations/v1_16/v189_test.go index 88c6ebd2b1..e72c385168 100644 --- a/models/migrations/v1_16/v189_test.go +++ b/models/migrations/v1_16/v189_test.go @@ -6,8 +6,8 @@ package v1_16 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" - "code.gitea.io/gitea/modules/json" + migration_tests "forgejo.org/models/migrations/test" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_16/v191.go b/models/migrations/v1_16/v191.go index c618783c08..567f88d6d1 100644 --- a/models/migrations/v1_16/v191.go +++ b/models/migrations/v1_16/v191.go @@ -4,7 +4,7 @@ package v1_16 //nolint import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_16/v192.go b/models/migrations/v1_16/v192.go index 2d5d158a09..731b9fb43a 100644 --- a/models/migrations/v1_16/v192.go +++ b/models/migrations/v1_16/v192.go @@ -4,7 +4,7 @@ package v1_16 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_16/v193_test.go b/models/migrations/v1_16/v193_test.go index 0da670888b..ab39bcd98c 100644 --- a/models/migrations/v1_16/v193_test.go +++ b/models/migrations/v1_16/v193_test.go @@ -6,7 +6,7 @@ package v1_16 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_16/v195_test.go b/models/migrations/v1_16/v195_test.go index 9a62fc9649..71234a6fb3 100644 --- a/models/migrations/v1_16/v195_test.go +++ b/models/migrations/v1_16/v195_test.go @@ -6,7 +6,7 @@ package v1_16 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_16/v198.go b/models/migrations/v1_16/v198.go index 115bb313a0..8b3c73addc 100644 --- a/models/migrations/v1_16/v198.go +++ b/models/migrations/v1_16/v198.go @@ -6,7 +6,7 @@ package v1_16 //nolint import ( "fmt" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_16/v205.go b/models/migrations/v1_16/v205.go index d6c577083c..a064b9830d 100644 --- a/models/migrations/v1_16/v205.go +++ b/models/migrations/v1_16/v205.go @@ -4,7 +4,7 @@ package v1_16 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_16/v210.go b/models/migrations/v1_16/v210.go index db45b11aed..375a008e18 100644 --- a/models/migrations/v1_16/v210.go +++ b/models/migrations/v1_16/v210.go @@ -10,7 +10,7 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_16/v210_test.go b/models/migrations/v1_16/v210_test.go index 7321350de2..010cd8a770 100644 --- a/models/migrations/v1_16/v210_test.go +++ b/models/migrations/v1_16/v210_test.go @@ -7,8 +7,8 @@ import ( "encoding/hex" "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" - "code.gitea.io/gitea/modules/timeutil" + migration_tests "forgejo.org/models/migrations/test" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_17/main_test.go b/models/migrations/v1_17/main_test.go index 8a787f68b6..0a8e05ab5f 100644 --- a/models/migrations/v1_17/main_test.go +++ b/models/migrations/v1_17/main_test.go @@ -6,7 +6,7 @@ package v1_17 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_17/v212.go b/models/migrations/v1_17/v212.go index e3f9437121..2337adcc80 100644 --- a/models/migrations/v1_17/v212.go +++ b/models/migrations/v1_17/v212.go @@ -4,7 +4,7 @@ package v1_17 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_17/v215.go b/models/migrations/v1_17/v215.go index b338f85417..5aae798562 100644 --- a/models/migrations/v1_17/v215.go +++ b/models/migrations/v1_17/v215.go @@ -4,8 +4,8 @@ package v1_17 //nolint import ( - "code.gitea.io/gitea/models/pull" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/pull" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_17/v217.go b/models/migrations/v1_17/v217.go index 3f970b68a5..5f096d4824 100644 --- a/models/migrations/v1_17/v217.go +++ b/models/migrations/v1_17/v217.go @@ -4,7 +4,7 @@ package v1_17 //nolint import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_17/v218.go b/models/migrations/v1_17/v218.go index 4c05a9b539..5e3dcd0841 100644 --- a/models/migrations/v1_17/v218.go +++ b/models/migrations/v1_17/v218.go @@ -4,8 +4,8 @@ package v1_17 //nolint import ( - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_17/v219.go b/models/migrations/v1_17/v219.go index d266029fd9..e90656090f 100644 --- a/models/migrations/v1_17/v219.go +++ b/models/migrations/v1_17/v219.go @@ -6,8 +6,8 @@ package v1_17 //nolint import ( "time" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/repo" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_17/v220.go b/models/migrations/v1_17/v220.go index d4007163ab..61bbf19725 100644 --- a/models/migrations/v1_17/v220.go +++ b/models/migrations/v1_17/v220.go @@ -4,8 +4,8 @@ package v1_17 //nolint import ( - packages_model "code.gitea.io/gitea/models/packages" - container_module "code.gitea.io/gitea/modules/packages/container" + packages_model "forgejo.org/models/packages" + container_module "forgejo.org/modules/packages/container" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_17/v221.go b/models/migrations/v1_17/v221.go index 9e159388bd..84e9a238af 100644 --- a/models/migrations/v1_17/v221.go +++ b/models/migrations/v1_17/v221.go @@ -7,7 +7,7 @@ import ( "encoding/base32" "fmt" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_17/v221_test.go b/models/migrations/v1_17/v221_test.go index 0f6db2a54f..02607d6b32 100644 --- a/models/migrations/v1_17/v221_test.go +++ b/models/migrations/v1_17/v221_test.go @@ -7,7 +7,7 @@ import ( "encoding/base32" "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_17/v222.go b/models/migrations/v1_17/v222.go index 2ffb94eb1c..c9a33f007d 100644 --- a/models/migrations/v1_17/v222.go +++ b/models/migrations/v1_17/v222.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_17/v223.go b/models/migrations/v1_17/v223.go index 3592eb1be6..7d92dcf5ae 100644 --- a/models/migrations/v1_17/v223.go +++ b/models/migrations/v1_17/v223.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_18/main_test.go b/models/migrations/v1_18/main_test.go index 329aa2003a..33f5c51222 100644 --- a/models/migrations/v1_18/main_test.go +++ b/models/migrations/v1_18/main_test.go @@ -6,7 +6,7 @@ package v1_18 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_18/v225.go b/models/migrations/v1_18/v225.go index b0ac3777fc..86bcb1323d 100644 --- a/models/migrations/v1_18/v225.go +++ b/models/migrations/v1_18/v225.go @@ -4,7 +4,7 @@ package v1_18 //nolint import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_18/v227.go b/models/migrations/v1_18/v227.go index 5fe5dcd0c9..b6250fb76c 100644 --- a/models/migrations/v1_18/v227.go +++ b/models/migrations/v1_18/v227.go @@ -4,7 +4,7 @@ package v1_18 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_18/v228.go b/models/migrations/v1_18/v228.go index 3e7a36de15..1161c8a4c9 100644 --- a/models/migrations/v1_18/v228.go +++ b/models/migrations/v1_18/v228.go @@ -4,7 +4,7 @@ package v1_18 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_18/v229.go b/models/migrations/v1_18/v229.go index 10d9f35097..f96dde9840 100644 --- a/models/migrations/v1_18/v229.go +++ b/models/migrations/v1_18/v229.go @@ -6,7 +6,7 @@ package v1_18 //nolint import ( "fmt" - "code.gitea.io/gitea/models/issues" + "forgejo.org/models/issues" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/migrations/v1_18/v229_test.go b/models/migrations/v1_18/v229_test.go index b20d0ff3a2..ac5e726a79 100644 --- a/models/migrations/v1_18/v229_test.go +++ b/models/migrations/v1_18/v229_test.go @@ -6,8 +6,8 @@ package v1_18 //nolint import ( "testing" - "code.gitea.io/gitea/models/issues" - migration_tests "code.gitea.io/gitea/models/migrations/test" + "forgejo.org/models/issues" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_18/v230_test.go b/models/migrations/v1_18/v230_test.go index 82b3b8f2b0..7dd6675673 100644 --- a/models/migrations/v1_18/v230_test.go +++ b/models/migrations/v1_18/v230_test.go @@ -6,7 +6,7 @@ package v1_18 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_19/main_test.go b/models/migrations/v1_19/main_test.go index 18696a7f69..7c56926f4c 100644 --- a/models/migrations/v1_19/main_test.go +++ b/models/migrations/v1_19/main_test.go @@ -6,7 +6,7 @@ package v1_19 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_19/v232.go b/models/migrations/v1_19/v232.go index 9caf587c1e..7fb4a5ac8d 100644 --- a/models/migrations/v1_19/v232.go +++ b/models/migrations/v1_19/v232.go @@ -4,7 +4,7 @@ package v1_19 //nolint import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_19/v233.go b/models/migrations/v1_19/v233.go index ba4cd8e20b..191afd4868 100644 --- a/models/migrations/v1_19/v233.go +++ b/models/migrations/v1_19/v233.go @@ -6,10 +6,10 @@ package v1_19 //nolint import ( "fmt" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/secret" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/json" + "forgejo.org/modules/secret" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/migrations/v1_19/v233_test.go b/models/migrations/v1_19/v233_test.go index 94e9bc3a11..de025ca2b7 100644 --- a/models/migrations/v1_19/v233_test.go +++ b/models/migrations/v1_19/v233_test.go @@ -6,11 +6,11 @@ package v1_19 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/secret" - "code.gitea.io/gitea/modules/setting" - webhook_module "code.gitea.io/gitea/modules/webhook" + migration_tests "forgejo.org/models/migrations/test" + "forgejo.org/modules/json" + "forgejo.org/modules/secret" + "forgejo.org/modules/setting" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_19/v234.go b/models/migrations/v1_19/v234.go index 728a580807..c610a423dd 100644 --- a/models/migrations/v1_19/v234.go +++ b/models/migrations/v1_19/v234.go @@ -4,7 +4,7 @@ package v1_19 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_19/v236.go b/models/migrations/v1_19/v236.go index f172a85b1f..fa01a6ab80 100644 --- a/models/migrations/v1_19/v236.go +++ b/models/migrations/v1_19/v236.go @@ -4,7 +4,7 @@ package v1_19 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_19/v238.go b/models/migrations/v1_19/v238.go index 266e6cea58..7c912a8341 100644 --- a/models/migrations/v1_19/v238.go +++ b/models/migrations/v1_19/v238.go @@ -4,7 +4,7 @@ package v1_19 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_19/v240.go b/models/migrations/v1_19/v240.go index 4505f86299..4ca5becede 100644 --- a/models/migrations/v1_19/v240.go +++ b/models/migrations/v1_19/v240.go @@ -4,8 +4,8 @@ package v1_19 //nolint import ( - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_19/v242.go b/models/migrations/v1_19/v242.go index 4470835214..bbf227ef77 100644 --- a/models/migrations/v1_19/v242.go +++ b/models/migrations/v1_19/v242.go @@ -4,7 +4,7 @@ package v1_19 //nolint import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/main_test.go b/models/migrations/v1_20/main_test.go index e8d95b0e1e..f870dca429 100644 --- a/models/migrations/v1_20/main_test.go +++ b/models/migrations/v1_20/main_test.go @@ -6,7 +6,7 @@ package v1_20 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_20/v245.go b/models/migrations/v1_20/v245.go index b0d4c21502..7e6585388b 100644 --- a/models/migrations/v1_20/v245.go +++ b/models/migrations/v1_20/v245.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v247.go b/models/migrations/v1_20/v247.go index 59fc5c46b5..9ed810a623 100644 --- a/models/migrations/v1_20/v247.go +++ b/models/migrations/v1_20/v247.go @@ -4,7 +4,7 @@ package v1_20 //nolint import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v249.go b/models/migrations/v1_20/v249.go index 02951a74d6..d2b096bf58 100644 --- a/models/migrations/v1_20/v249.go +++ b/models/migrations/v1_20/v249.go @@ -4,7 +4,7 @@ package v1_20 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_20/v250.go b/models/migrations/v1_20/v250.go index 86388ef0b8..cfcde2fc9b 100644 --- a/models/migrations/v1_20/v250.go +++ b/models/migrations/v1_20/v250.go @@ -6,7 +6,7 @@ package v1_20 //nolint import ( "strings" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v251.go b/models/migrations/v1_20/v251.go index 7743248a3f..c8665ba7eb 100644 --- a/models/migrations/v1_20/v251.go +++ b/models/migrations/v1_20/v251.go @@ -4,7 +4,7 @@ package v1_20 //nolint import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v252.go b/models/migrations/v1_20/v252.go index ab61cd9b8b..bb85c78309 100644 --- a/models/migrations/v1_20/v252.go +++ b/models/migrations/v1_20/v252.go @@ -4,7 +4,7 @@ package v1_20 //nolint import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v253.go b/models/migrations/v1_20/v253.go index 96c494bd8d..5f4057e9d9 100644 --- a/models/migrations/v1_20/v253.go +++ b/models/migrations/v1_20/v253.go @@ -4,7 +4,7 @@ package v1_20 //nolint import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v255.go b/models/migrations/v1_20/v255.go index 14b70f8f96..49b0ecf220 100644 --- a/models/migrations/v1_20/v255.go +++ b/models/migrations/v1_20/v255.go @@ -4,7 +4,7 @@ package v1_20 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v257.go b/models/migrations/v1_20/v257.go index 6c6ca4c748..70f229d73f 100644 --- a/models/migrations/v1_20/v257.go +++ b/models/migrations/v1_20/v257.go @@ -4,7 +4,7 @@ package v1_20 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v259.go b/models/migrations/v1_20/v259.go index 5b8ced4ad7..f10b94fa9c 100644 --- a/models/migrations/v1_20/v259.go +++ b/models/migrations/v1_20/v259.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "xorm.io/xorm" ) diff --git a/models/migrations/v1_20/v259_test.go b/models/migrations/v1_20/v259_test.go index ae219ea814..d67cc9dd81 100644 --- a/models/migrations/v1_20/v259_test.go +++ b/models/migrations/v1_20/v259_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_21/main_test.go b/models/migrations/v1_21/main_test.go index 0148170458..7104887afb 100644 --- a/models/migrations/v1_21/main_test.go +++ b/models/migrations/v1_21/main_test.go @@ -6,7 +6,7 @@ package v1_21 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_21/v260.go b/models/migrations/v1_21/v260.go index 6ca52c5998..245f3011ab 100644 --- a/models/migrations/v1_21/v260.go +++ b/models/migrations/v1_21/v260.go @@ -4,7 +4,7 @@ package v1_21 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_21/v261.go b/models/migrations/v1_21/v261.go index 4ec1160d0b..743bef152d 100644 --- a/models/migrations/v1_21/v261.go +++ b/models/migrations/v1_21/v261.go @@ -4,7 +4,7 @@ package v1_21 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_21/v264.go b/models/migrations/v1_21/v264.go index e81a17ad6d..88eaf0d918 100644 --- a/models/migrations/v1_21/v264.go +++ b/models/migrations/v1_21/v264.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_21/v267.go b/models/migrations/v1_21/v267.go index bc0e954bdc..f94696a22b 100644 --- a/models/migrations/v1_21/v267.go +++ b/models/migrations/v1_21/v267.go @@ -4,7 +4,7 @@ package v1_21 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_21/v271.go b/models/migrations/v1_21/v271.go index 098f6499d5..f45c113c1f 100644 --- a/models/migrations/v1_21/v271.go +++ b/models/migrations/v1_21/v271.go @@ -3,7 +3,7 @@ package v1_21 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_21/v273.go b/models/migrations/v1_21/v273.go index 61c79f4a76..1ec6ade566 100644 --- a/models/migrations/v1_21/v273.go +++ b/models/migrations/v1_21/v273.go @@ -3,7 +3,7 @@ package v1_21 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_21/v274.go b/models/migrations/v1_21/v274.go index df5994f159..b74e5fed51 100644 --- a/models/migrations/v1_21/v274.go +++ b/models/migrations/v1_21/v274.go @@ -5,7 +5,7 @@ package v1_21 //nolint import ( "time" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_21/v276.go b/models/migrations/v1_21/v276.go index 67e950177d..0830c3bd92 100644 --- a/models/migrations/v1_21/v276.go +++ b/models/migrations/v1_21/v276.go @@ -4,8 +4,8 @@ package v1_21 //nolint import ( - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_22/main_test.go b/models/migrations/v1_22/main_test.go index 2005789b6d..dc991b78fe 100644 --- a/models/migrations/v1_22/main_test.go +++ b/models/migrations/v1_22/main_test.go @@ -6,7 +6,7 @@ package v1_22 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_22/v281.go b/models/migrations/v1_22/v281.go index fc1866aa83..5271c786be 100644 --- a/models/migrations/v1_22/v281.go +++ b/models/migrations/v1_22/v281.go @@ -4,7 +4,7 @@ package v1_22 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_22/v283_test.go b/models/migrations/v1_22/v283_test.go index 5f6c04a881..d8e147a131 100644 --- a/models/migrations/v1_22/v283_test.go +++ b/models/migrations/v1_22/v283_test.go @@ -6,7 +6,7 @@ package v1_22 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/require" ) diff --git a/models/migrations/v1_22/v286.go b/models/migrations/v1_22/v286.go index 97ff649dca..d0489e7aeb 100644 --- a/models/migrations/v1_22/v286.go +++ b/models/migrations/v1_22/v286.go @@ -5,8 +5,8 @@ package v1_22 //nolint import ( "fmt" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_22/v286_test.go b/models/migrations/v1_22/v286_test.go index 76b00e5b14..e6f8d4096e 100644 --- a/models/migrations/v1_22/v286_test.go +++ b/models/migrations/v1_22/v286_test.go @@ -6,7 +6,7 @@ package v1_22 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_22/v288.go b/models/migrations/v1_22/v288.go index 7c93bfcc66..44e4991851 100644 --- a/models/migrations/v1_22/v288.go +++ b/models/migrations/v1_22/v288.go @@ -4,7 +4,7 @@ package v1_22 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_22/v290.go b/models/migrations/v1_22/v290.go index e3c58b0515..594e417644 100644 --- a/models/migrations/v1_22/v290.go +++ b/models/migrations/v1_22/v290.go @@ -4,8 +4,8 @@ package v1_22 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/modules/timeutil" + webhook_module "forgejo.org/modules/webhook" "xorm.io/xorm" ) diff --git a/models/migrations/v1_22/v290_test.go b/models/migrations/v1_22/v290_test.go index ced200f83f..569d77bc16 100644 --- a/models/migrations/v1_22/v290_test.go +++ b/models/migrations/v1_22/v290_test.go @@ -7,9 +7,9 @@ import ( "strconv" "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" - "code.gitea.io/gitea/modules/timeutil" - webhook_module "code.gitea.io/gitea/modules/webhook" + migration_tests "forgejo.org/models/migrations/test" + "forgejo.org/modules/timeutil" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_22/v293.go b/models/migrations/v1_22/v293.go index 53cc719294..9f38c3db56 100644 --- a/models/migrations/v1_22/v293.go +++ b/models/migrations/v1_22/v293.go @@ -4,8 +4,8 @@ package v1_22 //nolint import ( - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_22/v293_test.go b/models/migrations/v1_22/v293_test.go index 85bb46421b..444146737d 100644 --- a/models/migrations/v1_22/v293_test.go +++ b/models/migrations/v1_22/v293_test.go @@ -6,9 +6,9 @@ package v1_22 //nolint import ( "testing" - "code.gitea.io/gitea/models/db" - migration_tests "code.gitea.io/gitea/models/migrations/test" - "code.gitea.io/gitea/models/project" + "forgejo.org/models/db" + migration_tests "forgejo.org/models/migrations/test" + "forgejo.org/models/project" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_22/v294_test.go b/models/migrations/v1_22/v294_test.go index c465d53738..ef7b67ca5b 100644 --- a/models/migrations/v1_22/v294_test.go +++ b/models/migrations/v1_22/v294_test.go @@ -7,7 +7,7 @@ import ( "slices" "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/migrations/v1_23/main_test.go b/models/migrations/v1_23/main_test.go index e3425e4625..0fd90a4a67 100644 --- a/models/migrations/v1_23/main_test.go +++ b/models/migrations/v1_23/main_test.go @@ -6,7 +6,7 @@ package v1_23 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" ) func TestMain(m *testing.M) { diff --git a/models/migrations/v1_23/v302.go b/models/migrations/v1_23/v302.go index d7ea03eb3d..c8ed786d63 100644 --- a/models/migrations/v1_23/v302.go +++ b/models/migrations/v1_23/v302.go @@ -4,7 +4,7 @@ package v1_23 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_23/v303.go b/models/migrations/v1_23/v303.go index 2fb37ac843..fae0131bdd 100644 --- a/models/migrations/v1_23/v303.go +++ b/models/migrations/v1_23/v303.go @@ -4,7 +4,7 @@ package v1_23 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_23/v303_test.go b/models/migrations/v1_23/v303_test.go index 752eacee0c..f105d11830 100644 --- a/models/migrations/v1_23/v303_test.go +++ b/models/migrations/v1_23/v303_test.go @@ -6,7 +6,7 @@ package v1_23 //nolint import ( "testing" - migration_tests "code.gitea.io/gitea/models/migrations/test" + migration_tests "forgejo.org/models/migrations/test" "github.com/stretchr/testify/require" "xorm.io/xorm/schemas" diff --git a/models/migrations/v1_6/v70.go b/models/migrations/v1_6/v70.go index 74434a84a1..ec6bd09bb5 100644 --- a/models/migrations/v1_6/v70.go +++ b/models/migrations/v1_6/v70.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_6/v71.go b/models/migrations/v1_6/v71.go index 586187228b..3706ad4406 100644 --- a/models/migrations/v1_6/v71.go +++ b/models/migrations/v1_6/v71.go @@ -6,9 +6,9 @@ package v1_6 //nolint import ( "fmt" - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/xorm" ) diff --git a/models/migrations/v1_6/v72.go b/models/migrations/v1_6/v72.go index 04cef9a170..4df2a0f6e9 100644 --- a/models/migrations/v1_6/v72.go +++ b/models/migrations/v1_6/v72.go @@ -6,7 +6,7 @@ package v1_6 //nolint import ( "fmt" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_8/v76.go b/models/migrations/v1_8/v76.go index d3fbd94deb..61ad006a47 100644 --- a/models/migrations/v1_8/v76.go +++ b/models/migrations/v1_8/v76.go @@ -6,7 +6,7 @@ package v1_8 //nolint import ( "fmt" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_8/v78.go b/models/migrations/v1_8/v78.go index 8f041c1484..8102b19335 100644 --- a/models/migrations/v1_8/v78.go +++ b/models/migrations/v1_8/v78.go @@ -4,7 +4,7 @@ package v1_8 //nolint import ( - "code.gitea.io/gitea/models/migrations/base" + "forgejo.org/models/migrations/base" "xorm.io/xorm" ) diff --git a/models/migrations/v1_8/v79.go b/models/migrations/v1_8/v79.go index eb3a9ed0f4..f7d2d68f96 100644 --- a/models/migrations/v1_8/v79.go +++ b/models/migrations/v1_8/v79.go @@ -4,7 +4,7 @@ package v1_8 //nolint import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_9/v82.go b/models/migrations/v1_9/v82.go index 26806dd645..78a90bdde9 100644 --- a/models/migrations/v1_9/v82.go +++ b/models/migrations/v1_9/v82.go @@ -8,8 +8,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" "xorm.io/xorm" ) diff --git a/models/migrations/v1_9/v83.go b/models/migrations/v1_9/v83.go index 10e6c45875..fa24a92d28 100644 --- a/models/migrations/v1_9/v83.go +++ b/models/migrations/v1_9/v83.go @@ -4,7 +4,7 @@ package v1_9 //nolint import ( - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "xorm.io/xorm" ) diff --git a/models/migrations/v1_9/v85.go b/models/migrations/v1_9/v85.go index a23d7c5d6e..d8e9d91840 100644 --- a/models/migrations/v1_9/v85.go +++ b/models/migrations/v1_9/v85.go @@ -6,10 +6,10 @@ package v1_9 //nolint import ( "fmt" - "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/migrations/base" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/xorm" ) diff --git a/models/org.go b/models/org.go index 5f61f05b16..6e191acff0 100644 --- a/models/org.go +++ b/models/org.go @@ -8,10 +8,10 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/db" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" ) // RemoveOrgUser removes user from given organization. diff --git a/models/org_team.go b/models/org_team.go index 1a452436c3..ecda43f0a9 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -9,16 +9,16 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/org_team_test.go b/models/org_team_test.go index 2819607e12..dc1fdb4b3b 100644 --- a/models/org_team_test.go +++ b/models/org_team_test.go @@ -7,13 +7,13 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/org_test.go b/models/org_test.go index bb5e524ec9..45e21da0e0 100644 --- a/models/org_test.go +++ b/models/org_test.go @@ -6,10 +6,10 @@ package models import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/organization/main_test.go b/models/organization/main_test.go index 96eeadafa9..dd10b60d30 100644 --- a/models/organization/main_test.go +++ b/models/organization/main_test.go @@ -6,15 +6,15 @@ package organization_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" - _ "code.gitea.io/gitea/models/organization" - _ "code.gitea.io/gitea/models/repo" - _ "code.gitea.io/gitea/models/user" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" + _ "forgejo.org/models/organization" + _ "forgejo.org/models/repo" + _ "forgejo.org/models/user" ) func TestMain(m *testing.M) { diff --git a/models/organization/org.go b/models/organization/org.go index d7269c7166..1339f7415d 100644 --- a/models/organization/org.go +++ b/models/organization/org.go @@ -9,17 +9,17 @@ import ( "fmt" "strings" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - secret_model "code.gitea.io/gitea/models/secret" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + secret_model "forgejo.org/models/secret" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/organization/org_list.go b/models/organization/org_list.go index 7f31b49ccd..4bca3cdb99 100644 --- a/models/organization/org_list.go +++ b/models/organization/org_list.go @@ -8,10 +8,10 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + "forgejo.org/models/perm" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" "xorm.io/builder" ) diff --git a/models/organization/org_list_test.go b/models/organization/org_list_test.go index aa5b1f2636..0e27feee59 100644 --- a/models/organization/org_list_test.go +++ b/models/organization/org_list_test.go @@ -8,10 +8,10 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/organization/org_repo.go b/models/organization/org_repo.go index f7e59928f4..f190a38bda 100644 --- a/models/organization/org_repo.go +++ b/models/organization/org_repo.go @@ -6,8 +6,8 @@ package organization import ( "context" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" ) // GetOrgRepositories get repos belonging to the given organization diff --git a/models/organization/org_test.go b/models/organization/org_test.go index 7a67d9f822..212b893a42 100644 --- a/models/organization/org_test.go +++ b/models/organization/org_test.go @@ -7,14 +7,14 @@ import ( "sort" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/organization/org_user.go b/models/organization/org_user.go index 5fe3a178d2..81671c5cf5 100644 --- a/models/organization/org_user.go +++ b/models/organization/org_user.go @@ -7,10 +7,10 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + "forgejo.org/models/perm" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" "xorm.io/builder" ) diff --git a/models/organization/org_user_test.go b/models/organization/org_user_test.go index 336bf1a5a4..3f6799e8a1 100644 --- a/models/organization/org_user_test.go +++ b/models/organization/org_user_test.go @@ -7,11 +7,11 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/organization/team.go b/models/organization/team.go index 5065a1a1d5..450082077f 100644 --- a/models/organization/team.go +++ b/models/organization/team.go @@ -9,13 +9,13 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/organization/team_invite.go b/models/organization/team_invite.go index 17f6c59610..45be6c4c64 100644 --- a/models/organization/team_invite.go +++ b/models/organization/team_invite.go @@ -7,10 +7,10 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/organization/team_invite_test.go b/models/organization/team_invite_test.go index cbabf79b49..8d55864237 100644 --- a/models/organization/team_invite_test.go +++ b/models/organization/team_invite_test.go @@ -6,10 +6,10 @@ package organization_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/organization/team_list.go b/models/organization/team_list.go index 5b45429acf..573fd4ef96 100644 --- a/models/organization/team_list.go +++ b/models/organization/team_list.go @@ -7,10 +7,10 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" + "forgejo.org/models/db" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" "xorm.io/builder" ) diff --git a/models/organization/team_repo.go b/models/organization/team_repo.go index 1184e39263..334b139808 100644 --- a/models/organization/team_repo.go +++ b/models/organization/team_repo.go @@ -6,9 +6,9 @@ package organization import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/db" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" "xorm.io/builder" ) diff --git a/models/organization/team_test.go b/models/organization/team_test.go index 64cc68b064..0237f76de8 100644 --- a/models/organization/team_test.go +++ b/models/organization/team_test.go @@ -7,11 +7,11 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/organization/team_unit.go b/models/organization/team_unit.go index b5237c2c58..b45ac2fc07 100644 --- a/models/organization/team_unit.go +++ b/models/organization/team_unit.go @@ -6,9 +6,9 @@ package organization import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" + "forgejo.org/models/db" + "forgejo.org/models/perm" + "forgejo.org/models/unit" ) // TeamUnit describes all units of a repository diff --git a/models/organization/team_user.go b/models/organization/team_user.go index f7fa136498..a954e94767 100644 --- a/models/organization/team_user.go +++ b/models/organization/team_user.go @@ -6,8 +6,8 @@ package organization import ( "context" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" "xorm.io/builder" ) diff --git a/models/packages/alpine/search.go b/models/packages/alpine/search.go index 77eccb90ed..1cc808d18d 100644 --- a/models/packages/alpine/search.go +++ b/models/packages/alpine/search.go @@ -6,8 +6,8 @@ package alpine import ( "context" - packages_model "code.gitea.io/gitea/models/packages" - alpine_module "code.gitea.io/gitea/modules/packages/alpine" + packages_model "forgejo.org/models/packages" + alpine_module "forgejo.org/modules/packages/alpine" ) // GetBranches gets all available branches diff --git a/models/packages/alt/search.go b/models/packages/alt/search.go index a9a0d524d3..0bfba77e0e 100644 --- a/models/packages/alt/search.go +++ b/models/packages/alt/search.go @@ -6,8 +6,8 @@ package alt import ( "context" - packages_model "code.gitea.io/gitea/models/packages" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" + packages_model "forgejo.org/models/packages" + rpm_module "forgejo.org/modules/packages/rpm" ) type PackageSearchOptions struct { diff --git a/models/packages/conan/references.go b/models/packages/conan/references.go index 0d888a1ec8..5e09c4b63f 100644 --- a/models/packages/conan/references.go +++ b/models/packages/conan/references.go @@ -8,11 +8,11 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - conan_module "code.gitea.io/gitea/modules/packages/conan" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/packages" + conan_module "forgejo.org/modules/packages/conan" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/packages/conan/search.go b/models/packages/conan/search.go index ab0bff5968..3ef8b4cceb 100644 --- a/models/packages/conan/search.go +++ b/models/packages/conan/search.go @@ -9,10 +9,10 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/container" - conan_module "code.gitea.io/gitea/modules/packages/conan" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/modules/container" + conan_module "forgejo.org/modules/packages/conan" "xorm.io/builder" ) diff --git a/models/packages/conda/search.go b/models/packages/conda/search.go index 887441e3b2..147de1aa02 100644 --- a/models/packages/conda/search.go +++ b/models/packages/conda/search.go @@ -7,9 +7,9 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - conda_module "code.gitea.io/gitea/modules/packages/conda" + "forgejo.org/models/db" + "forgejo.org/models/packages" + conda_module "forgejo.org/modules/packages/conda" "xorm.io/builder" ) diff --git a/models/packages/container/search.go b/models/packages/container/search.go index 5df35117ce..1dab7c7b79 100644 --- a/models/packages/container/search.go +++ b/models/packages/container/search.go @@ -8,11 +8,11 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - user_model "code.gitea.io/gitea/models/user" - container_module "code.gitea.io/gitea/modules/packages/container" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/packages" + user_model "forgejo.org/models/user" + container_module "forgejo.org/modules/packages/container" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/packages/cran/search.go b/models/packages/cran/search.go index 8a8b52a35e..35525dfd55 100644 --- a/models/packages/cran/search.go +++ b/models/packages/cran/search.go @@ -8,9 +8,9 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - cran_module "code.gitea.io/gitea/modules/packages/cran" + "forgejo.org/models/db" + "forgejo.org/models/packages" + cran_module "forgejo.org/modules/packages/cran" "xorm.io/builder" ) diff --git a/models/packages/debian/search.go b/models/packages/debian/search.go index abf23e42f6..a434a06d2a 100644 --- a/models/packages/debian/search.go +++ b/models/packages/debian/search.go @@ -7,10 +7,10 @@ import ( "context" "strconv" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - debian_module "code.gitea.io/gitea/modules/packages/debian" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/packages" + debian_module "forgejo.org/modules/packages/debian" + "forgejo.org/modules/setting" "xorm.io/builder" ) diff --git a/models/packages/debian/search_test.go b/models/packages/debian/search_test.go index 949094d8c1..b8ed98d8fa 100644 --- a/models/packages/debian/search_test.go +++ b/models/packages/debian/search_test.go @@ -7,19 +7,19 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/packages" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + packages_service "forgejo.org/services/packages" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/packages/descriptor.go b/models/packages/descriptor.go index 31ab84fd68..19e0e8f5d5 100644 --- a/models/packages/descriptor.go +++ b/models/packages/descriptor.go @@ -9,30 +9,30 @@ import ( "fmt" "net/url" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/packages/alpine" - "code.gitea.io/gitea/modules/packages/arch" - "code.gitea.io/gitea/modules/packages/cargo" - "code.gitea.io/gitea/modules/packages/chef" - "code.gitea.io/gitea/modules/packages/composer" - "code.gitea.io/gitea/modules/packages/conan" - "code.gitea.io/gitea/modules/packages/conda" - "code.gitea.io/gitea/modules/packages/container" - "code.gitea.io/gitea/modules/packages/cran" - "code.gitea.io/gitea/modules/packages/debian" - "code.gitea.io/gitea/modules/packages/helm" - "code.gitea.io/gitea/modules/packages/maven" - "code.gitea.io/gitea/modules/packages/npm" - "code.gitea.io/gitea/modules/packages/nuget" - "code.gitea.io/gitea/modules/packages/pub" - "code.gitea.io/gitea/modules/packages/pypi" - "code.gitea.io/gitea/modules/packages/rpm" - "code.gitea.io/gitea/modules/packages/rubygems" - "code.gitea.io/gitea/modules/packages/swift" - "code.gitea.io/gitea/modules/packages/vagrant" - "code.gitea.io/gitea/modules/util" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/packages/alpine" + "forgejo.org/modules/packages/arch" + "forgejo.org/modules/packages/cargo" + "forgejo.org/modules/packages/chef" + "forgejo.org/modules/packages/composer" + "forgejo.org/modules/packages/conan" + "forgejo.org/modules/packages/conda" + "forgejo.org/modules/packages/container" + "forgejo.org/modules/packages/cran" + "forgejo.org/modules/packages/debian" + "forgejo.org/modules/packages/helm" + "forgejo.org/modules/packages/maven" + "forgejo.org/modules/packages/npm" + "forgejo.org/modules/packages/nuget" + "forgejo.org/modules/packages/pub" + "forgejo.org/modules/packages/pypi" + "forgejo.org/modules/packages/rpm" + "forgejo.org/modules/packages/rubygems" + "forgejo.org/modules/packages/swift" + "forgejo.org/modules/packages/vagrant" + "forgejo.org/modules/util" "github.com/hashicorp/go-version" ) diff --git a/models/packages/nuget/search.go b/models/packages/nuget/search.go index 7a505ff08f..af83c27c66 100644 --- a/models/packages/nuget/search.go +++ b/models/packages/nuget/search.go @@ -7,8 +7,8 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" "xorm.io/builder" ) diff --git a/models/packages/package.go b/models/packages/package.go index 874c7c2847..3b01d0b1ea 100644 --- a/models/packages/package.go +++ b/models/packages/package.go @@ -9,8 +9,8 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/util" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/packages/package_blob.go b/models/packages/package_blob.go index 439178a14e..e86f652540 100644 --- a/models/packages/package_blob.go +++ b/models/packages/package_blob.go @@ -8,13 +8,13 @@ import ( "strconv" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/perm" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/packages/package_blob_upload.go b/models/packages/package_blob_upload.go index 4b0e789221..ddffb6c305 100644 --- a/models/packages/package_blob_upload.go +++ b/models/packages/package_blob_upload.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) // ErrPackageBlobUploadNotExist indicates a package blob upload not exist error diff --git a/models/packages/package_cleanup_rule.go b/models/packages/package_cleanup_rule.go index fa12dec406..d0765c8492 100644 --- a/models/packages/package_cleanup_rule.go +++ b/models/packages/package_cleanup_rule.go @@ -8,9 +8,9 @@ import ( "fmt" "regexp" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/packages/package_file.go b/models/packages/package_file.go index 1bb6b57a34..d4bcc2859a 100644 --- a/models/packages/package_file.go +++ b/models/packages/package_file.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/packages/package_property.go b/models/packages/package_property.go index e0170016cf..c4e7be342b 100644 --- a/models/packages/package_property.go +++ b/models/packages/package_property.go @@ -6,7 +6,7 @@ package packages import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "xorm.io/builder" ) diff --git a/models/packages/package_test.go b/models/packages/package_test.go index 5b9b9b7403..ab2d49c94c 100644 --- a/models/packages/package_test.go +++ b/models/packages/package_test.go @@ -7,16 +7,16 @@ package packages_test import ( "testing" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/require" ) diff --git a/models/packages/package_version.go b/models/packages/package_version.go index 278e8e3a86..79086ff1ad 100644 --- a/models/packages/package_version.go +++ b/models/packages/package_version.go @@ -8,10 +8,10 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/optional" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/packages/rpm/search.go b/models/packages/rpm/search.go index e697421b49..d4f065a89e 100644 --- a/models/packages/rpm/search.go +++ b/models/packages/rpm/search.go @@ -6,8 +6,8 @@ package rpm import ( "context" - packages_model "code.gitea.io/gitea/models/packages" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" + packages_model "forgejo.org/models/packages" + rpm_module "forgejo.org/modules/packages/rpm" ) // GetGroups gets all available groups diff --git a/models/perm/access/access.go b/models/perm/access/access.go index 3e2568b4b4..76b547f772 100644 --- a/models/perm/access/access.go +++ b/models/perm/access/access.go @@ -8,11 +8,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" "xorm.io/builder" ) diff --git a/models/perm/access/access_test.go b/models/perm/access/access_test.go index 556f51311c..00939bced6 100644 --- a/models/perm/access/access_test.go +++ b/models/perm/access/access_test.go @@ -6,12 +6,12 @@ package access_test import ( "testing" - "code.gitea.io/gitea/models/db" - perm_model "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + perm_model "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/perm/access/main_test.go b/models/perm/access/main_test.go index da6f03715f..0c27d022e0 100644 --- a/models/perm/access/main_test.go +++ b/models/perm/access/main_test.go @@ -6,14 +6,14 @@ package access_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" - _ "code.gitea.io/gitea/models/repo" - _ "code.gitea.io/gitea/models/user" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" + _ "forgejo.org/models/repo" + _ "forgejo.org/models/user" ) func TestMain(m *testing.M) { diff --git a/models/perm/access/repo_permission.go b/models/perm/access/repo_permission.go index 7e39627a75..ce9963b83a 100644 --- a/models/perm/access/repo_permission.go +++ b/models/perm/access/repo_permission.go @@ -7,13 +7,13 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - perm_model "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + "forgejo.org/models/organization" + perm_model "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" ) // Permission contains all the permissions related variables to a repository for a user diff --git a/models/project/column.go b/models/project/column.go index 4757b61677..52917cb9fd 100644 --- a/models/project/column.go +++ b/models/project/column.go @@ -9,10 +9,10 @@ import ( "fmt" "regexp" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/project/column_test.go b/models/project/column_test.go index fb6dc77126..2ef27de3b5 100644 --- a/models/project/column_test.go +++ b/models/project/column_test.go @@ -7,8 +7,8 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/project/issue.go b/models/project/issue.go index 984f47ee7c..9e9db19004 100644 --- a/models/project/issue.go +++ b/models/project/issue.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // ProjectIssue saves relation from issue to a project diff --git a/models/project/main_test.go b/models/project/main_test.go index f4b2d6feda..eaa13bf309 100644 --- a/models/project/main_test.go +++ b/models/project/main_test.go @@ -6,9 +6,9 @@ package project import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models/repo" + _ "forgejo.org/models/repo" ) func TestMain(m *testing.M) { diff --git a/models/project/project.go b/models/project/project.go index 6c2b02487d..b9813fda91 100644 --- a/models/project/project.go +++ b/models/project/project.go @@ -8,14 +8,14 @@ import ( "fmt" "html/template" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/project/project_test.go b/models/project/project_test.go index cef2ea17bd..ee9fdaa2e2 100644 --- a/models/project/project_test.go +++ b/models/project/project_test.go @@ -6,9 +6,9 @@ package project import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/pull/automerge.go b/models/pull/automerge.go index d739d5a145..63f572309b 100644 --- a/models/pull/automerge.go +++ b/models/pull/automerge.go @@ -7,10 +7,10 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" ) // AutoMerge represents a pull request scheduled for merging when checks succeed diff --git a/models/pull/review_state.go b/models/pull/review_state.go index e46a22a49d..2702d5d5a1 100644 --- a/models/pull/review_state.go +++ b/models/pull/review_state.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" ) // ViewedState stores for a file in which state it is currently viewed diff --git a/models/quota/default.go b/models/quota/default.go index e53e47bade..9f655d7847 100644 --- a/models/quota/default.go +++ b/models/quota/default.go @@ -4,7 +4,7 @@ package quota import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) func EvaluateDefault(used Used, forSubject LimitSubject) (bool, int64) { diff --git a/models/quota/group.go b/models/quota/group.go index 50080748a1..7ddc20b2d6 100644 --- a/models/quota/group.go +++ b/models/quota/group.go @@ -7,9 +7,9 @@ import ( "context" "math" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "xorm.io/builder" ) diff --git a/models/quota/quota.go b/models/quota/quota.go index ee3fec6c1a..9f1c3ca949 100644 --- a/models/quota/quota.go +++ b/models/quota/quota.go @@ -6,8 +6,8 @@ package quota import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/setting" ) func init() { diff --git a/models/quota/quota_group_test.go b/models/quota/quota_group_test.go index edbf43fcf5..7f693b391b 100644 --- a/models/quota/quota_group_test.go +++ b/models/quota/quota_group_test.go @@ -7,7 +7,7 @@ import ( "math" "testing" - quota_model "code.gitea.io/gitea/models/quota" + quota_model "forgejo.org/models/quota" "github.com/stretchr/testify/assert" ) diff --git a/models/quota/quota_rule_test.go b/models/quota/quota_rule_test.go index 1e1daf4c4a..59c05563f0 100644 --- a/models/quota/quota_rule_test.go +++ b/models/quota/quota_rule_test.go @@ -6,7 +6,7 @@ package quota_test import ( "testing" - quota_model "code.gitea.io/gitea/models/quota" + quota_model "forgejo.org/models/quota" "github.com/stretchr/testify/assert" ) diff --git a/models/quota/rule.go b/models/quota/rule.go index cb23b74b52..89cb57cace 100644 --- a/models/quota/rule.go +++ b/models/quota/rule.go @@ -7,7 +7,7 @@ import ( "context" "slices" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) type Rule struct { diff --git a/models/quota/used.go b/models/quota/used.go index ff84ac20f8..4a1bc84c0a 100644 --- a/models/quota/used.go +++ b/models/quota/used.go @@ -6,10 +6,10 @@ package quota import ( "context" - action_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - package_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" + action_model "forgejo.org/models/actions" + "forgejo.org/models/db" + package_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" "xorm.io/builder" ) diff --git a/models/repo.go b/models/repo.go index 598f8df6a4..6f7ae25615 100644 --- a/models/repo.go +++ b/models/repo.go @@ -11,14 +11,14 @@ import ( _ "image/jpeg" // Needed for jpeg support - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" "xorm.io/builder" ) diff --git a/models/repo/archive_download_count.go b/models/repo/archive_download_count.go index b0735df3ea..8e2df21198 100644 --- a/models/repo/archive_download_count.go +++ b/models/repo/archive_download_count.go @@ -6,9 +6,9 @@ package repo import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" ) // RepoArchiveDownloadCount counts all archive downloads for a tag diff --git a/models/repo/archive_download_count_test.go b/models/repo/archive_download_count_test.go index ffc6cdf6df..0faf515284 100644 --- a/models/repo/archive_download_count_test.go +++ b/models/repo/archive_download_count_test.go @@ -6,10 +6,10 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/archiver.go b/models/repo/archiver.go index 3f05fcf752..2d0172a163 100644 --- a/models/repo/archiver.go +++ b/models/repo/archiver.go @@ -10,10 +10,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/git" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/repo/attachment.go b/models/repo/attachment.go index b95d785fa5..3bf51e80ca 100644 --- a/models/repo/attachment.go +++ b/models/repo/attachment.go @@ -9,12 +9,12 @@ import ( "net/url" "path" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/models/db" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" ) // Attachment represent a attachment of issue/comment/release. diff --git a/models/repo/attachment_test.go b/models/repo/attachment_test.go index 881a40c3e7..23f4b3799f 100644 --- a/models/repo/attachment_test.go +++ b/models/repo/attachment_test.go @@ -6,9 +6,9 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/avatar.go b/models/repo/avatar.go index 72ee938ada..a108fda62d 100644 --- a/models/repo/avatar.go +++ b/models/repo/avatar.go @@ -11,11 +11,11 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/avatar" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" + "forgejo.org/models/db" + "forgejo.org/modules/avatar" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" ) // CustomAvatarRelativePath returns repository custom avatar file path. diff --git a/models/repo/collaboration.go b/models/repo/collaboration.go index cb66cb56a6..16d10d38b6 100644 --- a/models/repo/collaboration.go +++ b/models/repo/collaboration.go @@ -7,11 +7,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/models/perm" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/models/repo/collaboration_test.go b/models/repo/collaboration_test.go index 5adedfe442..783091ba9e 100644 --- a/models/repo/collaboration_test.go +++ b/models/repo/collaboration_test.go @@ -6,12 +6,12 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/following_repo.go b/models/repo/following_repo.go index 85b96aa147..f9b9bf5e5e 100644 --- a/models/repo/following_repo.go +++ b/models/repo/following_repo.go @@ -4,7 +4,7 @@ package repo import ( - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ) // FollowingRepo represents a federated Repository Actor connected with a local Repo diff --git a/models/repo/following_repo_test.go b/models/repo/following_repo_test.go index d0dd0a31a7..cff125dabe 100644 --- a/models/repo/following_repo_test.go +++ b/models/repo/following_repo_test.go @@ -6,7 +6,7 @@ package repo import ( "testing" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ) func Test_FollowingRepoValidation(t *testing.T) { diff --git a/models/repo/fork.go b/models/repo/fork.go index 632e91c2bb..ed8b488738 100644 --- a/models/repo/fork.go +++ b/models/repo/fork.go @@ -6,9 +6,9 @@ package repo import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" "xorm.io/builder" ) diff --git a/models/repo/fork_test.go b/models/repo/fork_test.go index dd12429cc4..d567081ee6 100644 --- a/models/repo/fork_test.go +++ b/models/repo/fork_test.go @@ -6,9 +6,9 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/git.go b/models/repo/git.go index d39915e869..692176c8f6 100644 --- a/models/repo/git.go +++ b/models/repo/git.go @@ -6,7 +6,7 @@ package repo import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) // MergeStyle represents the approach to merge commits into base branch. diff --git a/models/repo/issue.go b/models/repo/issue.go index 0dd4fd5ed4..35453f109f 100644 --- a/models/repo/issue.go +++ b/models/repo/issue.go @@ -6,9 +6,9 @@ package repo import ( "context" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/unit" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) // ___________.__ ___________ __ diff --git a/models/repo/language_stats.go b/models/repo/language_stats.go index d44fea5375..1b619c80cc 100644 --- a/models/repo/language_stats.go +++ b/models/repo/language_stats.go @@ -10,8 +10,8 @@ import ( "slices" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" "github.com/go-enry/go-enry/v2" ) diff --git a/models/repo/main_test.go b/models/repo/main_test.go index a9fdcc9000..9fd1cacc97 100644 --- a/models/repo/main_test.go +++ b/models/repo/main_test.go @@ -6,15 +6,15 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" // register table model - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" - _ "code.gitea.io/gitea/models/perm/access" // register table model - _ "code.gitea.io/gitea/models/repo" // register table model - _ "code.gitea.io/gitea/models/user" // register table model + _ "forgejo.org/models" // register table model + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" + _ "forgejo.org/models/perm/access" // register table model + _ "forgejo.org/models/repo" // register table model + _ "forgejo.org/models/user" // register table model ) func TestMain(m *testing.M) { diff --git a/models/repo/mirror.go b/models/repo/mirror.go index be7b785612..1fe9afd8e9 100644 --- a/models/repo/mirror.go +++ b/models/repo/mirror.go @@ -8,10 +8,10 @@ import ( "context" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) // ErrMirrorNotExist mirror does not exist error diff --git a/models/repo/pushmirror.go b/models/repo/pushmirror.go index 68fb504fdc..d6d0d1135a 100644 --- a/models/repo/pushmirror.go +++ b/models/repo/pushmirror.go @@ -10,14 +10,14 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/git" - giturl "code.gitea.io/gitea/modules/git/url" - "code.gitea.io/gitea/modules/keying" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/git" + giturl "forgejo.org/modules/git/url" + "forgejo.org/modules/keying" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/repo/pushmirror_test.go b/models/repo/pushmirror_test.go index c3368ccafe..de6c9b0a41 100644 --- a/models/repo/pushmirror_test.go +++ b/models/repo/pushmirror_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/redirect.go b/models/repo/redirect.go index 61789ebefa..9c44a255d0 100644 --- a/models/repo/redirect.go +++ b/models/repo/redirect.go @@ -8,8 +8,8 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/util" ) // ErrRedirectNotExist represents a "RedirectNotExist" kind of error. diff --git a/models/repo/redirect_test.go b/models/repo/redirect_test.go index 2016784aed..d84cbbed54 100644 --- a/models/repo/redirect_test.go +++ b/models/repo/redirect_test.go @@ -6,9 +6,9 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/release.go b/models/repo/release.go index 8761cb4410..10e9bb259f 100644 --- a/models/repo/release.go +++ b/models/repo/release.go @@ -13,13 +13,13 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/optional" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/repo/release_list.go b/models/repo/release_list.go index 6c33262125..4ec955adf3 100644 --- a/models/repo/release_list.go +++ b/models/repo/release_list.go @@ -6,7 +6,7 @@ package repo import ( "context" - user_model "code.gitea.io/gitea/models/user" + user_model "forgejo.org/models/user" ) type ReleaseList []*Release diff --git a/models/repo/release_list_test.go b/models/repo/release_list_test.go index cbd77683d0..2b494cb179 100644 --- a/models/repo/release_list_test.go +++ b/models/repo/release_list_test.go @@ -6,7 +6,7 @@ package repo import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/release_test.go b/models/repo/release_test.go index 7680f2cc9d..94dbd6d9d5 100644 --- a/models/repo/release_test.go +++ b/models/repo/release_test.go @@ -6,8 +6,8 @@ package repo import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/repo.go b/models/repo/repo.go index ca7d50ca6a..8d204d5594 100644 --- a/models/repo/repo.go +++ b/models/repo/repo.go @@ -14,18 +14,18 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/repo/repo_flags.go b/models/repo/repo_flags.go index de76ed2b37..247a588cdf 100644 --- a/models/repo/repo_flags.go +++ b/models/repo/repo_flags.go @@ -6,7 +6,7 @@ package repo import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "xorm.io/builder" ) diff --git a/models/repo/repo_flags_test.go b/models/repo/repo_flags_test.go index bccefcf72b..bd92b18208 100644 --- a/models/repo/repo_flags_test.go +++ b/models/repo/repo_flags_test.go @@ -6,9 +6,9 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/repo_indexer.go b/models/repo/repo_indexer.go index 6e19d8f937..e95517bb07 100644 --- a/models/repo/repo_indexer.go +++ b/models/repo/repo_indexer.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "xorm.io/builder" ) diff --git a/models/repo/repo_list.go b/models/repo/repo_list.go index 25329ae712..ac7d2b69e3 100644 --- a/models/repo/repo_list.go +++ b/models/repo/repo_list.go @@ -8,15 +8,15 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/perm" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/repo/repo_list_test.go b/models/repo/repo_list_test.go index 8c13f387ba..b13db64137 100644 --- a/models/repo/repo_list_test.go +++ b/models/repo/repo_list_test.go @@ -9,13 +9,13 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/repo_repository.go b/models/repo/repo_repository.go index 6780165a38..0ba50e6614 100644 --- a/models/repo/repo_repository.go +++ b/models/repo/repo_repository.go @@ -5,8 +5,8 @@ package repo import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/models/db" + "forgejo.org/modules/validation" ) func init() { diff --git a/models/repo/repo_test.go b/models/repo/repo_test.go index 56b84798d7..a9591a357b 100644 --- a/models/repo/repo_test.go +++ b/models/repo/repo_test.go @@ -7,15 +7,15 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/markup" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/repo_unit.go b/models/repo/repo_unit.go index 5b4066d994..c11ad70627 100644 --- a/models/repo/repo_unit.go +++ b/models/repo/repo_unit.go @@ -9,13 +9,13 @@ import ( "slices" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/perm" + "forgejo.org/models/unit" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/xorm" "xorm.io/xorm/convert" diff --git a/models/repo/repo_unit_test.go b/models/repo/repo_unit_test.go index 129d913cfb..210b830d02 100644 --- a/models/repo/repo_unit_test.go +++ b/models/repo/repo_unit_test.go @@ -6,9 +6,9 @@ package repo import ( "testing" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/perm" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" ) diff --git a/models/repo/search.go b/models/repo/search.go index ffb8e26745..c16bfa4922 100644 --- a/models/repo/search.go +++ b/models/repo/search.go @@ -3,7 +3,7 @@ package repo -import "code.gitea.io/gitea/models/db" +import "forgejo.org/models/db" // OrderByMap represents all possible search order var OrderByMap = map[string]map[string]db.SearchOrderBy{ diff --git a/models/repo/star.go b/models/repo/star.go index 60737149da..25c039a50b 100644 --- a/models/repo/star.go +++ b/models/repo/star.go @@ -6,9 +6,9 @@ package repo import ( "context" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" ) // Star represents a starred repo by an user. diff --git a/models/repo/star_test.go b/models/repo/star_test.go index 73b362c68c..cbaa21db64 100644 --- a/models/repo/star_test.go +++ b/models/repo/star_test.go @@ -6,9 +6,9 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/topic.go b/models/repo/topic.go index 2f14ff7f62..4a3bdc7d8c 100644 --- a/models/repo/topic.go +++ b/models/repo/topic.go @@ -8,9 +8,9 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/container" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/models/repo/topic_test.go b/models/repo/topic_test.go index f87ef2bcdf..26ad27896e 100644 --- a/models/repo/topic_test.go +++ b/models/repo/topic_test.go @@ -6,9 +6,9 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/update.go b/models/repo/update.go index e7ca224028..0222d09de5 100644 --- a/models/repo/update.go +++ b/models/repo/update.go @@ -8,10 +8,10 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // UpdateRepositoryOwnerNames updates repository owner_names (this should only be used when the ownerName has changed case) diff --git a/models/repo/upload.go b/models/repo/upload.go index 18834f6b83..49152db7fd 100644 --- a/models/repo/upload.go +++ b/models/repo/upload.go @@ -12,10 +12,10 @@ import ( "os" "path" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" gouuid "github.com/google/uuid" ) diff --git a/models/repo/user_repo.go b/models/repo/user_repo.go index 0f95f5ab6b..309bfee18f 100644 --- a/models/repo/user_repo.go +++ b/models/repo/user_repo.go @@ -6,12 +6,12 @@ package repo import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + "forgejo.org/models/perm" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + api "forgejo.org/modules/structs" "xorm.io/builder" ) diff --git a/models/repo/user_repo_test.go b/models/repo/user_repo_test.go index c784a5565d..2912986cd1 100644 --- a/models/repo/user_repo_test.go +++ b/models/repo/user_repo_test.go @@ -6,10 +6,10 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/watch.go b/models/repo/watch.go index 6974d893df..3fd915e1e7 100644 --- a/models/repo/watch.go +++ b/models/repo/watch.go @@ -6,10 +6,10 @@ package repo import ( "context" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" ) // WatchMode specifies what kind of watch the user has on a repository diff --git a/models/repo/watch_test.go b/models/repo/watch_test.go index dbf15050cf..059489afbf 100644 --- a/models/repo/watch_test.go +++ b/models/repo/watch_test.go @@ -6,10 +6,10 @@ package repo_test import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo/wiki.go b/models/repo/wiki.go index b378666a20..f0dd945a72 100644 --- a/models/repo/wiki.go +++ b/models/repo/wiki.go @@ -9,9 +9,9 @@ import ( "path/filepath" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // ErrWikiAlreadyExist represents a "WikiAlreadyExist" kind of error. diff --git a/models/repo/wiki_test.go b/models/repo/wiki_test.go index 28495a4b7d..bf35a4c610 100644 --- a/models/repo/wiki_test.go +++ b/models/repo/wiki_test.go @@ -7,9 +7,9 @@ import ( "path/filepath" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo_test.go b/models/repo_test.go index 52f028bbb2..6fbef8edf6 100644 --- a/models/repo_test.go +++ b/models/repo_test.go @@ -6,9 +6,9 @@ package models import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/repo_transfer.go b/models/repo_transfer.go index 0c23d759f9..f515f1bcf0 100644 --- a/models/repo_transfer.go +++ b/models/repo_transfer.go @@ -8,12 +8,12 @@ import ( "errors" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" ) // RepoTransfer is used to manage repository transfers diff --git a/models/repo_transfer_test.go b/models/repo_transfer_test.go index 6b6d5a8098..6449e40fce 100644 --- a/models/repo_transfer_test.go +++ b/models/repo_transfer_test.go @@ -6,9 +6,9 @@ package models import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/secret/secret.go b/models/secret/secret.go index 2666199547..7be7f454a1 100644 --- a/models/secret/secret.go +++ b/models/secret/secret.go @@ -8,14 +8,14 @@ import ( "fmt" "strings" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - actions_module "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/log" - secret_module "code.gitea.io/gitea/modules/secret" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + actions_module "forgejo.org/modules/actions" + "forgejo.org/modules/log" + secret_module "forgejo.org/modules/secret" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/shared/types/ownertype.go b/models/shared/types/ownertype.go index a1d46c986f..62ca1bb9cc 100644 --- a/models/shared/types/ownertype.go +++ b/models/shared/types/ownertype.go @@ -3,7 +3,7 @@ package types -import "code.gitea.io/gitea/modules/translation" +import "forgejo.org/modules/translation" type OwnerType string diff --git a/models/system/appstate.go b/models/system/appstate.go index 01faa1a5be..31274b4c34 100644 --- a/models/system/appstate.go +++ b/models/system/appstate.go @@ -6,7 +6,7 @@ package system import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) // AppState represents a state record in database diff --git a/models/system/main_test.go b/models/system/main_test.go index 4181d44ddf..ca2846527a 100644 --- a/models/system/main_test.go +++ b/models/system/main_test.go @@ -6,13 +6,13 @@ package system_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" // register models - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" - _ "code.gitea.io/gitea/models/system" // register models of system + _ "forgejo.org/models" // register models + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" + _ "forgejo.org/models/system" // register models of system ) func TestMain(m *testing.M) { diff --git a/models/system/notice.go b/models/system/notice.go index e7ec6a9693..b1fdd2e4f2 100644 --- a/models/system/notice.go +++ b/models/system/notice.go @@ -8,11 +8,11 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/storage" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) // NoticeType describes the notice type diff --git a/models/system/notice_test.go b/models/system/notice_test.go index bfb7862fd7..4862160755 100644 --- a/models/system/notice_test.go +++ b/models/system/notice_test.go @@ -6,9 +6,9 @@ package system_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/system" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/system/setting.go b/models/system/setting.go index cda60d1758..a57602688a 100644 --- a/models/system/setting.go +++ b/models/system/setting.go @@ -9,10 +9,10 @@ import ( "sync" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting/config" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/setting/config" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/models/system/setting_test.go b/models/system/setting_test.go index 7a7fa02b01..1abaf2f16b 100644 --- a/models/system/setting_test.go +++ b/models/system/setting_test.go @@ -6,9 +6,9 @@ package system_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/system" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/unit/unit.go b/models/unit/unit.go index 5a8b9114f2..6251d44c9b 100644 --- a/models/unit/unit.go +++ b/models/unit/unit.go @@ -9,10 +9,10 @@ import ( "strings" "sync/atomic" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/perm" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) // Type is Unit's Type diff --git a/models/unit/unit_test.go b/models/unit/unit_test.go index a73967742f..efcad4a405 100644 --- a/models/unit/unit_test.go +++ b/models/unit/unit_test.go @@ -6,7 +6,7 @@ package unit import ( "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/unittest/consistency.go b/models/unittest/consistency.go index 4e26de7503..fd2d4b7d75 100644 --- a/models/unittest/consistency.go +++ b/models/unittest/consistency.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/unittest/fixtures.go b/models/unittest/fixtures.go index 63b26a0af7..6402fd9466 100644 --- a/models/unittest/fixtures.go +++ b/models/unittest/fixtures.go @@ -10,9 +10,9 @@ import ( "path/filepath" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/auth/password/hash" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/auth/password/hash" + "forgejo.org/modules/setting" "github.com/go-testfixtures/testfixtures/v3" "xorm.io/xorm" diff --git a/models/unittest/mock_http.go b/models/unittest/mock_http.go index 8e79699895..e749275282 100644 --- a/models/unittest/mock_http.go +++ b/models/unittest/mock_http.go @@ -15,7 +15,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/unittest/testdb.go b/models/unittest/testdb.go index 70110c4962..d34c9e9a0a 100644 --- a/models/unittest/testdb.go +++ b/models/unittest/testdb.go @@ -12,15 +12,15 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/modules/auth/password/hash" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/setting/config" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/system" + "forgejo.org/modules/auth/password/hash" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/modules/setting/config" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" "github.com/stretchr/testify/require" "xorm.io/xorm" diff --git a/models/unittest/unit_tests.go b/models/unittest/unit_tests.go index 157c676d09..a7c8e9c2fa 100644 --- a/models/unittest/unit_tests.go +++ b/models/unittest/unit_tests.go @@ -7,7 +7,7 @@ import ( "math" "testing" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/avatar.go b/models/user/avatar.go index c39928ce43..27af7f774d 100644 --- a/models/user/avatar.go +++ b/models/user/avatar.go @@ -11,12 +11,12 @@ import ( "io" "strings" - "code.gitea.io/gitea/models/avatars" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/avatar" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" + "forgejo.org/models/avatars" + "forgejo.org/models/db" + "forgejo.org/modules/avatar" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" ) // CustomAvatarRelativePath returns user custom avatar relative path. diff --git a/models/user/avatar_test.go b/models/user/avatar_test.go index 974a714477..d3a164142d 100644 --- a/models/user/avatar_test.go +++ b/models/user/avatar_test.go @@ -8,11 +8,11 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/badge.go b/models/user/badge.go index ee52b44cf5..e54c993a37 100644 --- a/models/user/badge.go +++ b/models/user/badge.go @@ -6,7 +6,7 @@ package user import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) // Badge represents a user badge diff --git a/models/user/block.go b/models/user/block.go index 189cacc2a2..2e3cfc2fa3 100644 --- a/models/user/block.go +++ b/models/user/block.go @@ -7,8 +7,8 @@ import ( "context" "errors" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" ) // ErrBlockedByUser defines an error stating that the user is not allowed to perform the action because they are blocked. diff --git a/models/user/block_test.go b/models/user/block_test.go index a795ef345e..b1674bf2ff 100644 --- a/models/user/block_test.go +++ b/models/user/block_test.go @@ -6,9 +6,9 @@ package user_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/email_address.go b/models/user/email_address.go index fdb3d64904..f9eaec56c9 100644 --- a/models/user/email_address.go +++ b/models/user/email_address.go @@ -9,11 +9,11 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/user/email_address_test.go b/models/user/email_address_test.go index 5653111fff..1801f57a23 100644 --- a/models/user/email_address_test.go +++ b/models/user/email_address_test.go @@ -7,10 +7,10 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/error.go b/models/user/error.go index 5a956a2afe..a0fc1af2bd 100644 --- a/models/user/error.go +++ b/models/user/error.go @@ -6,7 +6,7 @@ package user import ( "fmt" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // ErrUserAlreadyExist represents a "user already exists" error. diff --git a/models/user/external_login_user.go b/models/user/external_login_user.go index 965b7a5ed1..f13454c38a 100644 --- a/models/user/external_login_user.go +++ b/models/user/external_login_user.go @@ -8,8 +8,8 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/user/federated_user.go b/models/user/federated_user.go index 1fc42c3c32..fc07836408 100644 --- a/models/user/federated_user.go +++ b/models/user/federated_user.go @@ -4,7 +4,7 @@ package user import ( - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ) type FederatedUser struct { diff --git a/models/user/federated_user_test.go b/models/user/federated_user_test.go index 6a2112666f..374236f6d3 100644 --- a/models/user/federated_user_test.go +++ b/models/user/federated_user_test.go @@ -6,7 +6,7 @@ package user import ( "testing" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ) func Test_FederatedUserValidation(t *testing.T) { diff --git a/models/user/follow.go b/models/user/follow.go index 9c3283b888..5be0f73c35 100644 --- a/models/user/follow.go +++ b/models/user/follow.go @@ -6,8 +6,8 @@ package user import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" ) // Follow represents relations of user and their followers. diff --git a/models/user/follow_test.go b/models/user/follow_test.go index 8c56164ee3..976225a4a8 100644 --- a/models/user/follow_test.go +++ b/models/user/follow_test.go @@ -6,9 +6,9 @@ package user_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/list.go b/models/user/list.go index ca589d1e02..71c96c8565 100644 --- a/models/user/list.go +++ b/models/user/list.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/auth" + "forgejo.org/models/db" ) // UserList is a list of user. diff --git a/models/user/main_test.go b/models/user/main_test.go index a626d323a7..685b1116f3 100644 --- a/models/user/main_test.go +++ b/models/user/main_test.go @@ -6,12 +6,12 @@ package user_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/user" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/user" ) func TestMain(m *testing.M) { diff --git a/models/user/must_change_password.go b/models/user/must_change_password.go index 7eab08de89..5503f503b5 100644 --- a/models/user/must_change_password.go +++ b/models/user/must_change_password.go @@ -7,8 +7,8 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/user/openid.go b/models/user/openid.go index ee4ecabae0..96b00255a3 100644 --- a/models/user/openid.go +++ b/models/user/openid.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/util" ) // ErrOpenIDNotExist openid is not known diff --git a/models/user/openid_test.go b/models/user/openid_test.go index c2857aac98..3c55891c1f 100644 --- a/models/user/openid_test.go +++ b/models/user/openid_test.go @@ -6,9 +6,9 @@ package user_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/redirect.go b/models/user/redirect.go index 895e76c889..75876f17d2 100644 --- a/models/user/redirect.go +++ b/models/user/redirect.go @@ -11,10 +11,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/user/redirect_test.go b/models/user/redirect_test.go index 35fd29aa5d..c598fb045f 100644 --- a/models/user/redirect_test.go +++ b/models/user/redirect_test.go @@ -6,9 +6,9 @@ package user_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/search.go b/models/user/search.go index ecc95caf3d..d2b9901823 100644 --- a/models/user/search.go +++ b/models/user/search.go @@ -8,10 +8,10 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + "forgejo.org/modules/container" + "forgejo.org/modules/optional" + "forgejo.org/modules/structs" "xorm.io/builder" "xorm.io/xorm" diff --git a/models/user/setting.go b/models/user/setting.go index b4af0e5ccd..a915119ad2 100644 --- a/models/user/setting.go +++ b/models/user/setting.go @@ -8,10 +8,10 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/cache" - setting_module "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/modules/cache" + setting_module "forgejo.org/modules/setting" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/models/user/setting_test.go b/models/user/setting_test.go index 0b05c54ee6..7b6658041f 100644 --- a/models/user/setting_test.go +++ b/models/user/setting_test.go @@ -6,9 +6,9 @@ package user_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/user.go b/models/user/user.go index 37dd69f42d..fb43f01696 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -21,20 +21,20 @@ import ( _ "image/jpeg" // Needed for jpeg support - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/auth/openid" - "code.gitea.io/gitea/modules/auth/password/hash" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/auth/openid" + "forgejo.org/modules/auth/password/hash" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "golang.org/x/text/runes" "golang.org/x/text/transform" diff --git a/models/user/user_repository.go b/models/user/user_repository.go index c06441b5c8..172bf7c8b4 100644 --- a/models/user/user_repository.go +++ b/models/user/user_repository.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/models/db" + "forgejo.org/modules/optional" + "forgejo.org/modules/validation" ) func init() { diff --git a/models/user/user_system.go b/models/user/user_system.go index b13b355d37..f1585b512a 100644 --- a/models/user/user_system.go +++ b/models/user/user_system.go @@ -8,8 +8,8 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" ) const ( diff --git a/models/user/user_test.go b/models/user/user_test.go index 4f238967c1..dde0146470 100644 --- a/models/user/user_test.go +++ b/models/user/user_test.go @@ -12,20 +12,20 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/password/hash" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/tests" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/password/hash" + "forgejo.org/modules/container" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/models/user/user_update.go b/models/user/user_update.go index 66702e2a14..bf258811e4 100644 --- a/models/user/user_update.go +++ b/models/user/user_update.go @@ -6,7 +6,7 @@ package user import ( "context" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) func IncrUserRepoNum(ctx context.Context, userID int64) error { diff --git a/models/webhook/hooktask.go b/models/webhook/hooktask.go index 8734feb2e1..58600cb8bf 100644 --- a/models/webhook/hooktask.go +++ b/models/webhook/hooktask.go @@ -8,12 +8,12 @@ import ( "errors" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/models/db" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + webhook_module "forgejo.org/modules/webhook" gouuid "github.com/google/uuid" "xorm.io/builder" diff --git a/models/webhook/main_test.go b/models/webhook/main_test.go index f19465d505..fac998e8cd 100644 --- a/models/webhook/main_test.go +++ b/models/webhook/main_test.go @@ -6,7 +6,7 @@ package webhook import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/models/webhook/webhook.go b/models/webhook/webhook.go index f3370f3db5..0691f231b2 100644 --- a/models/webhook/webhook.go +++ b/models/webhook/webhook.go @@ -9,15 +9,15 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/secret" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/models/db" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/secret" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" "xorm.io/builder" ) diff --git a/models/webhook/webhook_system.go b/models/webhook/webhook_system.go index 62e8286205..b63346635c 100644 --- a/models/webhook/webhook_system.go +++ b/models/webhook/webhook_system.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) // GetDefaultWebhooks returns all admin-default webhooks. diff --git a/models/webhook/webhook_test.go b/models/webhook/webhook_test.go index 6af9c26c1c..7f0abbd8bb 100644 --- a/models/webhook/webhook_test.go +++ b/models/webhook/webhook_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/timeutil" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/json" + "forgejo.org/modules/optional" + "forgejo.org/modules/timeutil" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/actions/github.go b/modules/actions/github.go index c27d4edf53..111537c913 100644 --- a/modules/actions/github.go +++ b/modules/actions/github.go @@ -4,7 +4,7 @@ package actions import ( - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_module "forgejo.org/modules/webhook" ) const ( diff --git a/modules/actions/github_test.go b/modules/actions/github_test.go index 6652ff6eac..2a5d8a19b8 100644 --- a/modules/actions/github_test.go +++ b/modules/actions/github_test.go @@ -6,7 +6,7 @@ package actions import ( "testing" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" ) diff --git a/modules/actions/log.go b/modules/actions/log.go index 5a1425e031..78b1196f87 100644 --- a/modules/actions/log.go +++ b/modules/actions/log.go @@ -12,10 +12,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/dbfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/zstd" + "forgejo.org/models/dbfs" + "forgejo.org/modules/log" + "forgejo.org/modules/storage" + "forgejo.org/modules/zstd" runnerv1 "code.gitea.io/actions-proto-go/runner/v1" "google.golang.org/protobuf/types/known/timestamppb" diff --git a/modules/actions/task_state.go b/modules/actions/task_state.go index 1f36e021a5..77bfc747ee 100644 --- a/modules/actions/task_state.go +++ b/modules/actions/task_state.go @@ -4,7 +4,7 @@ package actions import ( - actions_model "code.gitea.io/gitea/models/actions" + actions_model "forgejo.org/models/actions" ) const ( diff --git a/modules/actions/task_state_test.go b/modules/actions/task_state_test.go index ff0fd57195..e18de4573f 100644 --- a/modules/actions/task_state_test.go +++ b/modules/actions/task_state_test.go @@ -6,7 +6,7 @@ package actions import ( "testing" - actions_model "code.gitea.io/gitea/models/actions" + actions_model "forgejo.org/models/actions" "github.com/stretchr/testify/assert" ) diff --git a/modules/actions/workflows.go b/modules/actions/workflows.go index 94c221ee7b..43948cce5c 100644 --- a/modules/actions/workflows.go +++ b/modules/actions/workflows.go @@ -8,10 +8,10 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/gobwas/glob" "github.com/nektos/act/pkg/jobparser" diff --git a/modules/actions/workflows_test.go b/modules/actions/workflows_test.go index 965d01f134..b85ed7fd56 100644 --- a/modules/actions/workflows_test.go +++ b/modules/actions/workflows_test.go @@ -6,9 +6,9 @@ package actions import ( "testing" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/activitypub/client.go b/modules/activitypub/client.go index 645a4b8c8d..d43e9c2bb0 100644 --- a/modules/activitypub/client.go +++ b/modules/activitypub/client.go @@ -17,10 +17,10 @@ import ( "strings" "time" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/setting" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/proxy" + "forgejo.org/modules/setting" "github.com/42wim/httpsig" ) diff --git a/modules/activitypub/client_test.go b/modules/activitypub/client_test.go index 6a771b5a7b..e63d4859be 100644 --- a/modules/activitypub/client_test.go +++ b/modules/activitypub/client_test.go @@ -12,11 +12,11 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/activitypub/main_test.go b/modules/activitypub/main_test.go index 30216812cf..4895c85d6b 100644 --- a/modules/activitypub/main_test.go +++ b/modules/activitypub/main_test.go @@ -6,12 +6,12 @@ package activitypub import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/modules/activitypub/user_settings.go b/modules/activitypub/user_settings.go index 7f939af352..77c11d5ae3 100644 --- a/modules/activitypub/user_settings.go +++ b/modules/activitypub/user_settings.go @@ -6,8 +6,8 @@ package activitypub import ( "context" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/util" + user_model "forgejo.org/models/user" + "forgejo.org/modules/util" ) const rsaBits = 3072 diff --git a/modules/activitypub/user_settings_test.go b/modules/activitypub/user_settings_test.go index f510e7a6ac..f1a779855c 100644 --- a/modules/activitypub/user_settings_test.go +++ b/modules/activitypub/user_settings_test.go @@ -6,11 +6,11 @@ package activitypub import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" - _ "code.gitea.io/gitea/models" // https://forum.gitea.com/t/testfixtures-could-not-clean-table-access-no-such-table-access/4137/4 + _ "forgejo.org/models" // https://forum.gitea.com/t/testfixtures-could-not-clean-table-access-no-such-table-access/4137/4 "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/assetfs/layered.go b/modules/assetfs/layered.go index 9feabc3f8c..8d54ae5e4a 100644 --- a/modules/assetfs/layered.go +++ b/modules/assetfs/layered.go @@ -14,10 +14,10 @@ import ( "slices" "time" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/util" "github.com/fsnotify/fsnotify" ) diff --git a/modules/auth/common.go b/modules/auth/common.go index 77361f6561..0f36fd942f 100644 --- a/modules/auth/common.go +++ b/modules/auth/common.go @@ -4,8 +4,8 @@ package auth import ( - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/json" + "forgejo.org/modules/log" ) func UnmarshalGroupTeamMapping(raw string) (map[string]map[string][]string, error) { diff --git a/modules/auth/password/hash/argon2.go b/modules/auth/password/hash/argon2.go index 0cd6472fa1..0f65d60c66 100644 --- a/modules/auth/password/hash/argon2.go +++ b/modules/auth/password/hash/argon2.go @@ -7,7 +7,7 @@ import ( "encoding/hex" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "golang.org/x/crypto/argon2" ) diff --git a/modules/auth/password/hash/common.go b/modules/auth/password/hash/common.go index 487c0738f4..618ebfd15b 100644 --- a/modules/auth/password/hash/common.go +++ b/modules/auth/password/hash/common.go @@ -6,7 +6,7 @@ package hash import ( "strconv" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) func parseIntParam(value, param, algorithmName, config string, previousErr error) (int, error) { diff --git a/modules/auth/password/hash/hash.go b/modules/auth/password/hash/hash.go index 459320e1b0..eb79db1b9e 100644 --- a/modules/auth/password/hash/hash.go +++ b/modules/auth/password/hash/hash.go @@ -10,7 +10,7 @@ import ( "strings" "sync/atomic" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // This package takes care of hashing passwords, verifying passwords, defining diff --git a/modules/auth/password/hash/pbkdf2.go b/modules/auth/password/hash/pbkdf2.go index 27382fedb8..0dff5e5134 100644 --- a/modules/auth/password/hash/pbkdf2.go +++ b/modules/auth/password/hash/pbkdf2.go @@ -8,7 +8,7 @@ import ( "encoding/hex" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "golang.org/x/crypto/pbkdf2" ) diff --git a/modules/auth/password/hash/scrypt.go b/modules/auth/password/hash/scrypt.go index f3d38f751a..668b69cb9e 100644 --- a/modules/auth/password/hash/scrypt.go +++ b/modules/auth/password/hash/scrypt.go @@ -7,7 +7,7 @@ import ( "encoding/hex" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "golang.org/x/crypto/scrypt" ) diff --git a/modules/auth/password/password.go b/modules/auth/password/password.go index 85f9780709..fdbc4ff291 100644 --- a/modules/auth/password/password.go +++ b/modules/auth/password/password.go @@ -13,8 +13,8 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" ) var ( diff --git a/modules/auth/password/pwn.go b/modules/auth/password/pwn.go index e00205ea19..239a25f11c 100644 --- a/modules/auth/password/pwn.go +++ b/modules/auth/password/pwn.go @@ -8,8 +8,8 @@ import ( "errors" "fmt" - "code.gitea.io/gitea/modules/auth/password/pwn" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/auth/password/pwn" + "forgejo.org/modules/setting" ) var ErrIsPwned = errors.New("password has been pwned") diff --git a/modules/auth/password/pwn/pwn.go b/modules/auth/password/pwn/pwn.go index f77ce9f40b..10693ec663 100644 --- a/modules/auth/password/pwn/pwn.go +++ b/modules/auth/password/pwn/pwn.go @@ -14,7 +14,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) const passwordURL = "https://api.pwnedpasswords.com/range/" diff --git a/modules/auth/webauthn/webauthn.go b/modules/auth/webauthn/webauthn.go index 189d197333..a26dc89545 100644 --- a/modules/auth/webauthn/webauthn.go +++ b/modules/auth/webauthn/webauthn.go @@ -7,10 +7,10 @@ import ( "encoding/binary" "encoding/gob" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/auth" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "github.com/go-webauthn/webauthn/protocol" "github.com/go-webauthn/webauthn/webauthn" diff --git a/modules/auth/webauthn/webauthn_test.go b/modules/auth/webauthn/webauthn_test.go index 15a8d71828..552b698984 100644 --- a/modules/auth/webauthn/webauthn_test.go +++ b/modules/auth/webauthn/webauthn_test.go @@ -6,7 +6,7 @@ package webauthn import ( "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go index 106215ec0b..33af60a3b8 100644 --- a/modules/avatar/avatar.go +++ b/modules/avatar/avatar.go @@ -14,8 +14,8 @@ import ( _ "image/gif" // for processing gif images _ "image/jpeg" // for processing jpeg images - "code.gitea.io/gitea/modules/avatar/identicon" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/avatar/identicon" + "forgejo.org/modules/setting" "golang.org/x/image/draw" diff --git a/modules/avatar/avatar_test.go b/modules/avatar/avatar_test.go index 824a38e15b..2166ca51b0 100644 --- a/modules/avatar/avatar_test.go +++ b/modules/avatar/avatar_test.go @@ -10,7 +10,7 @@ import ( "os" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/avatar/hash_test.go b/modules/avatar/hash_test.go index 1b8249c696..0a2db53ad4 100644 --- a/modules/avatar/hash_test.go +++ b/modules/avatar/hash_test.go @@ -9,7 +9,7 @@ import ( "image/png" "testing" - "code.gitea.io/gitea/modules/avatar" + "forgejo.org/modules/avatar" "github.com/stretchr/testify/assert" ) diff --git a/modules/base/tool.go b/modules/base/tool.go index 02f1db59d3..fd6a7c2b77 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -16,8 +16,8 @@ import ( "strings" "unicode/utf8" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/git" + "forgejo.org/modules/log" "github.com/dustin/go-humanize" ) diff --git a/modules/cache/cache.go b/modules/cache/cache.go index 2148e028d5..9ad4b5cd90 100644 --- a/modules/cache/cache.go +++ b/modules/cache/cache.go @@ -8,7 +8,7 @@ import ( "strconv" "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" mc "code.forgejo.org/go-chi/cache" diff --git a/modules/cache/cache_redis.go b/modules/cache/cache_redis.go index 4c243b2426..489a585b04 100644 --- a/modules/cache/cache_redis.go +++ b/modules/cache/cache_redis.go @@ -8,8 +8,8 @@ import ( "strconv" "time" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/nosql" + "forgejo.org/modules/graceful" + "forgejo.org/modules/nosql" "code.forgejo.org/go-chi/cache" ) diff --git a/modules/cache/cache_test.go b/modules/cache/cache_test.go index 8bc986f1a7..8e931d5b2c 100644 --- a/modules/cache/cache_test.go +++ b/modules/cache/cache_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/cache/cache_twoqueue.go b/modules/cache/cache_twoqueue.go index c15ed52da1..08efe703c6 100644 --- a/modules/cache/cache_twoqueue.go +++ b/modules/cache/cache_twoqueue.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" mc "code.forgejo.org/go-chi/cache" lru "github.com/hashicorp/golang-lru/v2" diff --git a/modules/cache/context.go b/modules/cache/context.go index f9bdf52044..457c5c1258 100644 --- a/modules/cache/context.go +++ b/modules/cache/context.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // cacheContext is a context that can be used to cache data in a request level context diff --git a/modules/card/card.go b/modules/card/card.go index 370d241073..087cd4ec05 100644 --- a/modules/card/card.go +++ b/modules/card/card.go @@ -19,9 +19,9 @@ import ( _ "image/jpeg" // for processing jpeg images _ "image/png" // for processing png images - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/proxy" + "forgejo.org/modules/setting" "github.com/golang/freetype" "github.com/golang/freetype/truetype" diff --git a/modules/card/card_test.go b/modules/card/card_test.go index 27753794c4..ef695b4549 100644 --- a/modules/card/card_test.go +++ b/modules/card/card_test.go @@ -15,8 +15,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/log" + "forgejo.org/modules/test" "github.com/golang/freetype/truetype" "github.com/stretchr/testify/assert" diff --git a/modules/charset/ambiguous.go b/modules/charset/ambiguous.go index 96e0561e15..a8eacf26a0 100644 --- a/modules/charset/ambiguous.go +++ b/modules/charset/ambiguous.go @@ -9,7 +9,7 @@ import ( "strings" "unicode" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/translation" ) // AmbiguousTablesForLocale provides the table of ambiguous characters for this locale. diff --git a/modules/charset/ambiguous/generate.go b/modules/charset/ambiguous/generate.go index e3fda5be98..bf7c03a16c 100644 --- a/modules/charset/ambiguous/generate.go +++ b/modules/charset/ambiguous/generate.go @@ -13,7 +13,7 @@ import ( "text/template" "unicode" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "golang.org/x/text/unicode/rangetable" ) diff --git a/modules/charset/charset.go b/modules/charset/charset.go index fc42372b4d..cb03deb966 100644 --- a/modules/charset/charset.go +++ b/modules/charset/charset.go @@ -10,9 +10,9 @@ import ( "strings" "unicode/utf8" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/gogs/chardet" "golang.org/x/net/html/charset" diff --git a/modules/charset/charset_test.go b/modules/charset/charset_test.go index f7ea2beccf..ef0d1565d6 100644 --- a/modules/charset/charset_test.go +++ b/modules/charset/charset_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/charset/escape.go b/modules/charset/escape.go index ba0eb73a3a..57b13c1f18 100644 --- a/modules/charset/escape.go +++ b/modules/charset/escape.go @@ -13,9 +13,9 @@ import ( "slices" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" ) // RuneNBSP is the codepoint for NBSP diff --git a/modules/charset/escape_stream.go b/modules/charset/escape_stream.go index 29943eb858..01ebf52a15 100644 --- a/modules/charset/escape_stream.go +++ b/modules/charset/escape_stream.go @@ -10,7 +10,7 @@ import ( "unicode" "unicode/utf8" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/translation" "golang.org/x/net/html" ) diff --git a/modules/charset/escape_test.go b/modules/charset/escape_test.go index 2ca76f88d5..eec6f102cb 100644 --- a/modules/charset/escape_test.go +++ b/modules/charset/escape_test.go @@ -8,9 +8,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/csv/csv.go b/modules/csv/csv.go index 35c5d6ab67..996a35bdeb 100644 --- a/modules/csv/csv.go +++ b/modules/csv/csv.go @@ -11,9 +11,9 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/markup" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" ) const ( diff --git a/modules/csv/csv_test.go b/modules/csv/csv_test.go index 6ed6986629..6eb3b3056f 100644 --- a/modules/csv/csv_test.go +++ b/modules/csv/csv_test.go @@ -11,9 +11,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/git" + "forgejo.org/modules/markup" + "forgejo.org/modules/translation" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/eventsource/event.go b/modules/eventsource/event.go index ebcca50903..0e4dbf6e9c 100644 --- a/modules/eventsource/event.go +++ b/modules/eventsource/event.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) func wrapNewlines(w io.Writer, prefix, value []byte) (sum int64, err error) { diff --git a/modules/eventsource/manager_run.go b/modules/eventsource/manager_run.go index d4d95ae72a..0eaee5dc3c 100644 --- a/modules/eventsource/manager_run.go +++ b/modules/eventsource/manager_run.go @@ -7,15 +7,15 @@ import ( "context" "time" - activities_model "code.gitea.io/gitea/models/activities" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/services/convert" + activities_model "forgejo.org/models/activities" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/graceful" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/services/convert" ) // Init starts this eventsource diff --git a/modules/forgefed/activity_like.go b/modules/forgefed/activity_like.go index 0f001486b5..e52d0a9af6 100644 --- a/modules/forgefed/activity_like.go +++ b/modules/forgefed/activity_like.go @@ -6,7 +6,7 @@ package forgefed import ( "time" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ap "github.com/go-ap/activitypub" ) diff --git a/modules/forgefed/activity_like_test.go b/modules/forgefed/activity_like_test.go index 6b83381cf9..815b0e02f3 100644 --- a/modules/forgefed/activity_like_test.go +++ b/modules/forgefed/activity_like_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ap "github.com/go-ap/activitypub" ) diff --git a/modules/forgefed/activity_undo_like.go b/modules/forgefed/activity_undo_like.go index b6b13ba50d..8b7df582ad 100644 --- a/modules/forgefed/activity_undo_like.go +++ b/modules/forgefed/activity_undo_like.go @@ -6,7 +6,7 @@ package forgefed import ( "time" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ap "github.com/go-ap/activitypub" ) diff --git a/modules/forgefed/activity_undo_like_test.go b/modules/forgefed/activity_undo_like_test.go index 541e524cb3..1b77369b67 100644 --- a/modules/forgefed/activity_undo_like_test.go +++ b/modules/forgefed/activity_undo_like_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ap "github.com/go-ap/activitypub" ) diff --git a/modules/forgefed/activity_validateandcheckerror_test.go b/modules/forgefed/activity_validateandcheckerror_test.go index f2f1fbcccb..c1c9164fd2 100644 --- a/modules/forgefed/activity_validateandcheckerror_test.go +++ b/modules/forgefed/activity_validateandcheckerror_test.go @@ -6,7 +6,7 @@ package forgefed import ( "fmt" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ) func validateAndCheckError(subject validation.Validateable, expectedError string) *string { diff --git a/modules/forgefed/actor.go b/modules/forgefed/actor.go index 0ef46185d1..c01175f0f6 100644 --- a/modules/forgefed/actor.go +++ b/modules/forgefed/actor.go @@ -8,7 +8,7 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ap "github.com/go-ap/activitypub" ) diff --git a/modules/forgefed/actor_test.go b/modules/forgefed/actor_test.go index a3c01eceb0..e2157a96e4 100644 --- a/modules/forgefed/actor_test.go +++ b/modules/forgefed/actor_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/setting" + "forgejo.org/modules/validation" ap "github.com/go-ap/activitypub" ) diff --git a/modules/forgefed/repository_test.go b/modules/forgefed/repository_test.go index 13a73c10f4..5aebbbc08f 100644 --- a/modules/forgefed/repository_test.go +++ b/modules/forgefed/repository_test.go @@ -8,7 +8,7 @@ import ( "reflect" "testing" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ap "github.com/go-ap/activitypub" ) diff --git a/modules/generate/generate.go b/modules/generate/generate.go index 41a6aa2815..9738195da9 100644 --- a/modules/generate/generate.go +++ b/modules/generate/generate.go @@ -11,7 +11,7 @@ import ( "io" "time" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" "github.com/golang-jwt/jwt/v5" ) diff --git a/modules/git/batch_reader.go b/modules/git/batch_reader.go index 3b1a466b2e..1297c7247f 100644 --- a/modules/git/batch_reader.go +++ b/modules/git/batch_reader.go @@ -14,7 +14,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/djherbis/buffer" "github.com/djherbis/nio/v3" diff --git a/modules/git/blame.go b/modules/git/blame.go index d62a8ca0a2..4ff347e31b 100644 --- a/modules/git/blame.go +++ b/modules/git/blame.go @@ -11,8 +11,8 @@ import ( "io" "os" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // BlamePart represents block of blame - continuous lines with one sha diff --git a/modules/git/blob.go b/modules/git/blob.go index 2f02693428..3fda358938 100644 --- a/modules/git/blob.go +++ b/modules/git/blob.go @@ -10,9 +10,9 @@ import ( "encoding/base64" "io" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/util" ) // Blob represents a Git object. diff --git a/modules/git/command.go b/modules/git/command.go index 72640a2a94..bf1d624dbf 100644 --- a/modules/git/command.go +++ b/modules/git/command.go @@ -16,10 +16,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/git/internal" //nolint:depguard // only this file can use the internal type CmdArg, other files and packages should use AddXxx functions - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/git/internal" //nolint:depguard // only this file can use the internal type CmdArg, other files and packages should use AddXxx functions + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/util" ) // TrustedCmdArgs returns the trusted arguments for git command. diff --git a/modules/git/commit.go b/modules/git/commit.go index 78468b907f..baefe3820d 100644 --- a/modules/git/commit.go +++ b/modules/git/commit.go @@ -15,8 +15,8 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" "github.com/go-git/go-git/v5/config" ) diff --git a/modules/git/commit_info.go b/modules/git/commit_info.go index 39e30b127d..8d9142d362 100644 --- a/modules/git/commit_info.go +++ b/modules/git/commit_info.go @@ -10,7 +10,7 @@ import ( "path" "sort" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // CommitInfo describes the first commit with the provided entry diff --git a/modules/git/diff.go b/modules/git/diff.go index 8374101d2a..0ba9c60912 100644 --- a/modules/git/diff.go +++ b/modules/git/diff.go @@ -14,7 +14,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // RawDiffType type of a raw diff. diff --git a/modules/git/error.go b/modules/git/error.go index 10fb37be07..427eb4a5b9 100644 --- a/modules/git/error.go +++ b/modules/git/error.go @@ -9,7 +9,7 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // ErrNotExist commit not exist error diff --git a/modules/git/foreachref/format_test.go b/modules/git/foreachref/format_test.go index 8ff239323c..99b8207168 100644 --- a/modules/git/foreachref/format_test.go +++ b/modules/git/foreachref/format_test.go @@ -6,7 +6,7 @@ package foreachref_test import ( "testing" - "code.gitea.io/gitea/modules/git/foreachref" + "forgejo.org/modules/git/foreachref" "github.com/stretchr/testify/require" ) diff --git a/modules/git/foreachref/parser_test.go b/modules/git/foreachref/parser_test.go index 7a37ced356..1febab80c7 100644 --- a/modules/git/foreachref/parser_test.go +++ b/modules/git/foreachref/parser_test.go @@ -10,8 +10,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/git/foreachref" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/git/foreachref" + "forgejo.org/modules/json" "github.com/stretchr/testify/require" ) diff --git a/modules/git/git.go b/modules/git/git.go index 576609068a..c7d5a31b31 100644 --- a/modules/git/git.go +++ b/modules/git/git.go @@ -16,8 +16,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/hashicorp/go-version" ) diff --git a/modules/git/git_test.go b/modules/git/git_test.go index cdbd2a1768..bb07367e3b 100644 --- a/modules/git/git_test.go +++ b/modules/git/git_test.go @@ -10,8 +10,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/git/grep.go b/modules/git/grep.go index dd176e7aec..117b09fc83 100644 --- a/modules/git/grep.go +++ b/modules/git/grep.go @@ -17,8 +17,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) type GrepResult struct { diff --git a/modules/git/hook.go b/modules/git/hook.go index 46f93ce13e..bef4d024c8 100644 --- a/modules/git/hook.go +++ b/modules/git/hook.go @@ -11,8 +11,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // hookNames is a list of Git server hooks' name that are supported. diff --git a/modules/git/last_commit_cache.go b/modules/git/last_commit_cache.go index 8c7ee5a933..1d7e74a0d7 100644 --- a/modules/git/last_commit_cache.go +++ b/modules/git/last_commit_cache.go @@ -8,8 +8,8 @@ import ( "crypto/sha256" "fmt" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) // Cache represents a caching interface diff --git a/modules/git/log_name_status.go b/modules/git/log_name_status.go index 1fd58abfcd..e98e8c19a3 100644 --- a/modules/git/log_name_status.go +++ b/modules/git/log_name_status.go @@ -13,7 +13,7 @@ import ( "sort" "strings" - "code.gitea.io/gitea/modules/container" + "forgejo.org/modules/container" "github.com/djherbis/buffer" "github.com/djherbis/nio/v3" diff --git a/modules/git/notes.go b/modules/git/notes.go index 54f4d714e2..c36ab87fbd 100644 --- a/modules/git/notes.go +++ b/modules/git/notes.go @@ -9,7 +9,7 @@ import ( "os" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // NotesRef is the git ref where Gitea will look for git-notes data. diff --git a/modules/git/notes_test.go b/modules/git/notes_test.go index 69ed3b8a6a..c7fb433ecf 100644 --- a/modules/git/notes_test.go +++ b/modules/git/notes_test.go @@ -7,8 +7,8 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/git/parse.go b/modules/git/parse.go index 8c2c411db6..6bc32057a7 100644 --- a/modules/git/parse.go +++ b/modules/git/parse.go @@ -11,7 +11,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // ParseTreeEntries parses the output of a `git ls-tree -l` command. diff --git a/modules/git/pipeline/catfile.go b/modules/git/pipeline/catfile.go index 4677218150..476f876e2b 100644 --- a/modules/git/pipeline/catfile.go +++ b/modules/git/pipeline/catfile.go @@ -13,8 +13,8 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/git" + "forgejo.org/modules/log" ) // CatFileBatchCheck runs cat-file with --batch-check diff --git a/modules/git/pipeline/lfs.go b/modules/git/pipeline/lfs.go index 3407eb9838..4395e25bd7 100644 --- a/modules/git/pipeline/lfs.go +++ b/modules/git/pipeline/lfs.go @@ -13,7 +13,7 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" ) // LFSResult represents commits found using a provided pointer file hash diff --git a/modules/git/pipeline/namerev.go b/modules/git/pipeline/namerev.go index ad583a7479..70840edf19 100644 --- a/modules/git/pipeline/namerev.go +++ b/modules/git/pipeline/namerev.go @@ -11,7 +11,7 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" ) // NameRevStdin runs name-rev --stdin diff --git a/modules/git/pipeline/revlist.go b/modules/git/pipeline/revlist.go index d88ebe78ef..f39b7113bb 100644 --- a/modules/git/pipeline/revlist.go +++ b/modules/git/pipeline/revlist.go @@ -12,8 +12,8 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/git" + "forgejo.org/modules/log" ) // RevListAllObjects runs rev-list --objects --all and writes to a pipewriter diff --git a/modules/git/ref.go b/modules/git/ref.go index 2db630e2ea..1475d4dc5a 100644 --- a/modules/git/ref.go +++ b/modules/git/ref.go @@ -7,7 +7,7 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) const ( diff --git a/modules/git/remote.go b/modules/git/remote.go index eea57dd8e0..fb66d76ff0 100644 --- a/modules/git/remote.go +++ b/modules/git/remote.go @@ -7,7 +7,7 @@ import ( "context" "strings" - giturl "code.gitea.io/gitea/modules/git/url" + giturl "forgejo.org/modules/git/url" ) // GetRemoteAddress returns remote url of git repository in the repoPath with special remote name diff --git a/modules/git/repo.go b/modules/git/repo.go index 84db08d70c..0f4d1f5afa 100644 --- a/modules/git/repo.go +++ b/modules/git/repo.go @@ -18,9 +18,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/proxy" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // GPGSettings represents the default GPG settings for this repository diff --git a/modules/git/repo_attribute.go b/modules/git/repo_attribute.go index cfe4cf7156..2154467332 100644 --- a/modules/git/repo_attribute.go +++ b/modules/git/repo_attribute.go @@ -13,7 +13,7 @@ import ( "strings" "sync/atomic" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/modules/optional" ) var LinguistAttributes = []string{"linguist-vendored", "linguist-generated", "linguist-language", "gitlab-language", "linguist-documentation", "linguist-detectable"} diff --git a/modules/git/repo_attribute_test.go b/modules/git/repo_attribute_test.go index 8b832e7221..ee89373b90 100644 --- a/modules/git/repo_attribute_test.go +++ b/modules/git/repo_attribute_test.go @@ -15,7 +15,7 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/git/repo_base.go b/modules/git/repo_base.go index 5f17bc14f6..a82d59af3c 100644 --- a/modules/git/repo_base.go +++ b/modules/git/repo_base.go @@ -10,7 +10,7 @@ import ( "errors" "path/filepath" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // Repository represents a Git repository. diff --git a/modules/git/repo_branch.go b/modules/git/repo_branch.go index 7339c7db0d..1992060351 100644 --- a/modules/git/repo_branch.go +++ b/modules/git/repo_branch.go @@ -13,7 +13,7 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // BranchPrefix base dir of the branch information file store on git diff --git a/modules/git/repo_commit.go b/modules/git/repo_commit.go index e8c24eaa07..65ab6fd3fd 100644 --- a/modules/git/repo_commit.go +++ b/modules/git/repo_commit.go @@ -12,9 +12,9 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/cache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) // GetBranchCommitID returns last commit ID string of given branch. diff --git a/modules/git/repo_commit_test.go b/modules/git/repo_commit_test.go index f9f7d0edc7..9cbc40eee7 100644 --- a/modules/git/repo_commit_test.go +++ b/modules/git/repo_commit_test.go @@ -7,8 +7,8 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/git/repo_compare.go b/modules/git/repo_compare.go index b6e9d2b44a..373b5befb5 100644 --- a/modules/git/repo_compare.go +++ b/modules/git/repo_compare.go @@ -18,7 +18,7 @@ import ( "strings" "time" - logger "code.gitea.io/gitea/modules/log" + logger "forgejo.org/modules/log" ) // CompareInfo represents needed information for comparing references. diff --git a/modules/git/repo_gpg.go b/modules/git/repo_gpg.go index e2b45064fd..2c94234017 100644 --- a/modules/git/repo_gpg.go +++ b/modules/git/repo_gpg.go @@ -8,7 +8,7 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/process" + "forgejo.org/modules/process" ) // LoadPublicKeyContent will load the key from gpg diff --git a/modules/git/repo_index.go b/modules/git/repo_index.go index f45b6e6191..f58757a9a2 100644 --- a/modules/git/repo_index.go +++ b/modules/git/repo_index.go @@ -10,8 +10,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // ReadTreeToIndex reads a treeish to the index diff --git a/modules/git/repo_language_stats.go b/modules/git/repo_language_stats.go index 37c23faf68..24879a26fe 100644 --- a/modules/git/repo_language_stats.go +++ b/modules/git/repo_language_stats.go @@ -10,9 +10,9 @@ import ( "strings" "unicode" - "code.gitea.io/gitea/modules/analyze" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/modules/analyze" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" "github.com/go-enry/go-enry/v2" ) diff --git a/modules/git/repo_ref.go b/modules/git/repo_ref.go index 550c653729..3c8b863f75 100644 --- a/modules/git/repo_ref.go +++ b/modules/git/repo_ref.go @@ -10,7 +10,7 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // GetRefs returns all references of the repository. diff --git a/modules/git/repo_stats.go b/modules/git/repo_stats.go index 83220104bd..ef0865e3d3 100644 --- a/modules/git/repo_stats.go +++ b/modules/git/repo_stats.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/container" + "forgejo.org/modules/container" ) // CodeActivityStats represents git statistics data diff --git a/modules/git/repo_tag.go b/modules/git/repo_tag.go index 4466d8e5c0..f7f04e1f10 100644 --- a/modules/git/repo_tag.go +++ b/modules/git/repo_tag.go @@ -11,9 +11,9 @@ import ( "slices" "strings" - "code.gitea.io/gitea/modules/git/foreachref" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/git/foreachref" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // TagPrefix tags prefix path on the repository diff --git a/modules/git/signature.go b/modules/git/signature.go index c368ce345c..bd9aebbdd6 100644 --- a/modules/git/signature.go +++ b/modules/git/signature.go @@ -10,8 +10,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // Signature represents the Author, Committer or Tagger information. diff --git a/modules/git/tag.go b/modules/git/tag.go index 34ce8f6fc3..64f1b952ad 100644 --- a/modules/git/tag.go +++ b/modules/git/tag.go @@ -7,8 +7,8 @@ import ( "bytes" "strings" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" ) const ( diff --git a/modules/git/tree_entry.go b/modules/git/tree_entry.go index 0d9cfd2258..d51b7992fe 100644 --- a/modules/git/tree_entry.go +++ b/modules/git/tree_entry.go @@ -9,7 +9,7 @@ import ( "sort" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // TreeEntry the leaf in the git tree diff --git a/modules/gitrepo/branch.go b/modules/gitrepo/branch.go index e13a4c82e1..a46e2e6bb7 100644 --- a/modules/gitrepo/branch.go +++ b/modules/gitrepo/branch.go @@ -6,7 +6,7 @@ package gitrepo import ( "context" - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" ) // GetBranchesByPath returns a branch by its path diff --git a/modules/gitrepo/gitrepo.go b/modules/gitrepo/gitrepo.go index d89f8f9c0c..a9c920d564 100644 --- a/modules/gitrepo/gitrepo.go +++ b/modules/gitrepo/gitrepo.go @@ -9,8 +9,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" ) type Repository interface { diff --git a/modules/gitrepo/walk.go b/modules/gitrepo/walk.go index 8c672ea78b..8349835ff8 100644 --- a/modules/gitrepo/walk.go +++ b/modules/gitrepo/walk.go @@ -6,7 +6,7 @@ package gitrepo import ( "context" - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" ) // WalkReferences walks all the references from the repository diff --git a/modules/graceful/manager.go b/modules/graceful/manager.go index 077eac64f3..db5738c94c 100644 --- a/modules/graceful/manager.go +++ b/modules/graceful/manager.go @@ -9,9 +9,9 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" ) type state uint8 diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go index 8147743f79..37edf79075 100644 --- a/modules/graceful/manager_unix.go +++ b/modules/graceful/manager_unix.go @@ -13,10 +13,10 @@ import ( "syscall" "time" - "code.gitea.io/gitea/modules/graceful/releasereopen" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/graceful/releasereopen" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" ) func pidMsg() systemdNotifyMsg { diff --git a/modules/graceful/net_unix.go b/modules/graceful/net_unix.go index 320904db17..dc38b02d82 100644 --- a/modules/graceful/net_unix.go +++ b/modules/graceful/net_unix.go @@ -15,9 +15,9 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) const ( diff --git a/modules/graceful/server.go b/modules/graceful/server.go index 2525a83e77..121bbed364 100644 --- a/modules/graceful/server.go +++ b/modules/graceful/server.go @@ -15,9 +15,9 @@ import ( "syscall" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/proxyprotocol" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/proxyprotocol" + "forgejo.org/modules/setting" ) // GetListener returns a net listener diff --git a/modules/graceful/server_hooks.go b/modules/graceful/server_hooks.go index 9b67589571..06be783361 100644 --- a/modules/graceful/server_hooks.go +++ b/modules/graceful/server_hooks.go @@ -7,7 +7,7 @@ import ( "os" "runtime" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // awaitShutdown waits for the shutdown signal from the Manager diff --git a/modules/hcaptcha/hcaptcha.go b/modules/hcaptcha/hcaptcha.go index b970d491c5..7f5df9af5a 100644 --- a/modules/hcaptcha/hcaptcha.go +++ b/modules/hcaptcha/hcaptcha.go @@ -10,8 +10,8 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" ) const verifyURL = "https://hcaptcha.com/siteverify" diff --git a/modules/highlight/highlight.go b/modules/highlight/highlight.go index c0bc33a3c6..ba3ba479d5 100644 --- a/modules/highlight/highlight.go +++ b/modules/highlight/highlight.go @@ -15,10 +15,10 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/analyze" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/analyze" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/alecthomas/chroma/v2" "github.com/alecthomas/chroma/v2/formatters/html" diff --git a/modules/httpcache/httpcache.go b/modules/httpcache/httpcache.go index 30ce0a4a03..7978fc38a1 100644 --- a/modules/httpcache/httpcache.go +++ b/modules/httpcache/httpcache.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // SetCacheControlInHeader sets suitable cache-control headers in the response diff --git a/modules/httplib/serve.go b/modules/httplib/serve.go index 2e3e6a7c42..cd35367bc9 100644 --- a/modules/httplib/serve.go +++ b/modules/httplib/serve.go @@ -16,13 +16,13 @@ import ( "strings" "time" - charsetModule "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/util" + charsetModule "forgejo.org/modules/charset" + "forgejo.org/modules/container" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/util" "github.com/klauspost/compress/gzhttp" ) diff --git a/modules/httplib/url.go b/modules/httplib/url.go index 14b95898f5..32a02e3277 100644 --- a/modules/httplib/url.go +++ b/modules/httplib/url.go @@ -7,7 +7,7 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // IsRiskyRedirectURL returns true if the URL is considered risky for redirects diff --git a/modules/httplib/url_test.go b/modules/httplib/url_test.go index 2842edd514..cd2ceac267 100644 --- a/modules/httplib/url_test.go +++ b/modules/httplib/url_test.go @@ -6,8 +6,8 @@ package httplib import ( "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" ) diff --git a/modules/indexer/code/bleve/bleve.go b/modules/indexer/code/bleve/bleve.go index 25f96933b6..f793b5db3f 100644 --- a/modules/indexer/code/bleve/bleve.go +++ b/modules/indexer/code/bleve/bleve.go @@ -12,18 +12,18 @@ import ( "strings" "time" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/analyze" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - tokenizer_hierarchy "code.gitea.io/gitea/modules/indexer/code/bleve/tokenizer/hierarchy" - "code.gitea.io/gitea/modules/indexer/code/internal" - indexer_internal "code.gitea.io/gitea/modules/indexer/internal" - inner_bleve "code.gitea.io/gitea/modules/indexer/internal/bleve" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/typesniffer" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/analyze" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + tokenizer_hierarchy "forgejo.org/modules/indexer/code/bleve/tokenizer/hierarchy" + "forgejo.org/modules/indexer/code/internal" + indexer_internal "forgejo.org/modules/indexer/internal" + inner_bleve "forgejo.org/modules/indexer/internal/bleve" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/typesniffer" "github.com/blevesearch/bleve/v2" analyzer_custom "github.com/blevesearch/bleve/v2/analysis/analyzer/custom" diff --git a/modules/indexer/code/elasticsearch/elasticsearch.go b/modules/indexer/code/elasticsearch/elasticsearch.go index 688e53eb71..3903d77fe0 100644 --- a/modules/indexer/code/elasticsearch/elasticsearch.go +++ b/modules/indexer/code/elasticsearch/elasticsearch.go @@ -11,19 +11,19 @@ import ( "strconv" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/analyze" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/indexer/code/internal" - indexer_internal "code.gitea.io/gitea/modules/indexer/internal" - inner_elasticsearch "code.gitea.io/gitea/modules/indexer/internal/elasticsearch" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/typesniffer" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/analyze" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/indexer/code/internal" + indexer_internal "forgejo.org/modules/indexer/internal" + inner_elasticsearch "forgejo.org/modules/indexer/internal/elasticsearch" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/typesniffer" "github.com/go-enry/go-enry/v2" "github.com/olivere/elastic/v7" diff --git a/modules/indexer/code/git.go b/modules/indexer/code/git.go index c7ffcfdd40..14a43cf3be 100644 --- a/modules/indexer/code/git.go +++ b/modules/indexer/code/git.go @@ -8,11 +8,11 @@ import ( "strconv" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/indexer/code/internal" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/indexer/code/internal" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) func getDefaultBranchSha(ctx context.Context, repo *repo_model.Repository) (string, error) { diff --git a/modules/indexer/code/indexer.go b/modules/indexer/code/indexer.go index 0a8ce27907..c32b637ab4 100644 --- a/modules/indexer/code/indexer.go +++ b/modules/indexer/code/indexer.go @@ -11,16 +11,16 @@ import ( "sync/atomic" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/indexer/code/bleve" - "code.gitea.io/gitea/modules/indexer/code/elasticsearch" - "code.gitea.io/gitea/modules/indexer/code/internal" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/indexer/code/bleve" + "forgejo.org/modules/indexer/code/elasticsearch" + "forgejo.org/modules/indexer/code/internal" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" ) var ( diff --git a/modules/indexer/code/indexer_test.go b/modules/indexer/code/indexer_test.go index 58768205c6..29b2936fa1 100644 --- a/modules/indexer/code/indexer_test.go +++ b/modules/indexer/code/indexer_test.go @@ -7,17 +7,17 @@ import ( "os" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/indexer/code/bleve" - "code.gitea.io/gitea/modules/indexer/code/elasticsearch" - "code.gitea.io/gitea/modules/indexer/code/internal" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/modules/indexer/code/bleve" + "forgejo.org/modules/indexer/code/elasticsearch" + "forgejo.org/modules/indexer/code/internal" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/indexer/code/internal/indexer.go b/modules/indexer/code/internal/indexer.go index b7440e9de2..cc2c2aaf06 100644 --- a/modules/indexer/code/internal/indexer.go +++ b/modules/indexer/code/internal/indexer.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/indexer/internal" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/indexer/internal" ) // Indexer defines an interface to index and search code contents diff --git a/modules/indexer/code/internal/model.go b/modules/indexer/code/internal/model.go index f75263c83c..ad0a7934d9 100644 --- a/modules/indexer/code/internal/model.go +++ b/modules/indexer/code/internal/model.go @@ -3,7 +3,7 @@ package internal -import "code.gitea.io/gitea/modules/timeutil" +import "forgejo.org/modules/timeutil" type FileUpdate struct { Filename string diff --git a/modules/indexer/code/internal/util.go b/modules/indexer/code/internal/util.go index 1c999fda7d..f5a4ec8e4e 100644 --- a/modules/indexer/code/internal/util.go +++ b/modules/indexer/code/internal/util.go @@ -3,7 +3,7 @@ package internal -import "code.gitea.io/gitea/modules/indexer/internal" +import "forgejo.org/modules/indexer/internal" func FilenameIndexerID(repoID int64, filename string) string { return internal.Base36(repoID) + "_" + filename diff --git a/modules/indexer/code/search.go b/modules/indexer/code/search.go index 27e35251f0..adf51a76d7 100644 --- a/modules/indexer/code/search.go +++ b/modules/indexer/code/search.go @@ -9,10 +9,10 @@ import ( "html/template" "strings" - "code.gitea.io/gitea/modules/highlight" - "code.gitea.io/gitea/modules/indexer/code/internal" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/services/gitdiff" + "forgejo.org/modules/highlight" + "forgejo.org/modules/indexer/code/internal" + "forgejo.org/modules/timeutil" + "forgejo.org/services/gitdiff" ) // Result a search result to display diff --git a/modules/indexer/internal/bleve/indexer.go b/modules/indexer/internal/bleve/indexer.go index 1435d2f519..4a61a80765 100644 --- a/modules/indexer/internal/bleve/indexer.go +++ b/modules/indexer/internal/bleve/indexer.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/modules/indexer/internal" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/indexer/internal" + "forgejo.org/modules/log" "github.com/blevesearch/bleve/v2" "github.com/blevesearch/bleve/v2/mapping" diff --git a/modules/indexer/internal/bleve/metadata.go b/modules/indexer/internal/bleve/metadata.go index 3c570ab4ba..08979d3e98 100644 --- a/modules/indexer/internal/bleve/metadata.go +++ b/modules/indexer/internal/bleve/metadata.go @@ -9,7 +9,7 @@ import ( "os" "path/filepath" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) const metaFilename = "rupture_meta.json" diff --git a/modules/indexer/internal/bleve/query.go b/modules/indexer/internal/bleve/query.go index 30e903c49d..9f08290172 100644 --- a/modules/indexer/internal/bleve/query.go +++ b/modules/indexer/internal/bleve/query.go @@ -4,7 +4,7 @@ package bleve import ( - "code.gitea.io/gitea/modules/optional" + "forgejo.org/modules/optional" "github.com/blevesearch/bleve/v2" "github.com/blevesearch/bleve/v2/search/query" diff --git a/modules/indexer/internal/bleve/util.go b/modules/indexer/internal/bleve/util.go index d05b679765..e7311aec6c 100644 --- a/modules/indexer/internal/bleve/util.go +++ b/modules/indexer/internal/bleve/util.go @@ -7,8 +7,8 @@ import ( "errors" "os" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" "github.com/blevesearch/bleve/v2" "github.com/blevesearch/bleve/v2/index/upsidedown" diff --git a/modules/indexer/internal/db/indexer.go b/modules/indexer/internal/db/indexer.go index 3deec836c4..a1121db333 100644 --- a/modules/indexer/internal/db/indexer.go +++ b/modules/indexer/internal/db/indexer.go @@ -6,7 +6,7 @@ package db import ( "context" - "code.gitea.io/gitea/modules/indexer/internal" + "forgejo.org/modules/indexer/internal" ) var _ internal.Indexer = &Indexer{} diff --git a/modules/indexer/internal/elasticsearch/indexer.go b/modules/indexer/internal/elasticsearch/indexer.go index 395eea3bce..9cd29f3e49 100644 --- a/modules/indexer/internal/elasticsearch/indexer.go +++ b/modules/indexer/internal/elasticsearch/indexer.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "code.gitea.io/gitea/modules/indexer/internal" + "forgejo.org/modules/indexer/internal" "github.com/olivere/elastic/v7" ) diff --git a/modules/indexer/internal/elasticsearch/util.go b/modules/indexer/internal/elasticsearch/util.go index 18cb152d3c..8458bd1326 100644 --- a/modules/indexer/internal/elasticsearch/util.go +++ b/modules/indexer/internal/elasticsearch/util.go @@ -8,7 +8,7 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/olivere/elastic/v7" ) diff --git a/modules/indexer/internal/meilisearch/util.go b/modules/indexer/internal/meilisearch/util.go index 845bdb6e7f..ff41b3a857 100644 --- a/modules/indexer/internal/meilisearch/util.go +++ b/modules/indexer/internal/meilisearch/util.go @@ -6,7 +6,7 @@ package meilisearch import ( "fmt" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // VersionedIndexName returns the full index name with version diff --git a/modules/indexer/internal/paginator.go b/modules/indexer/internal/paginator.go index ee204bf047..3ef800c630 100644 --- a/modules/indexer/internal/paginator.go +++ b/modules/indexer/internal/paginator.go @@ -6,7 +6,7 @@ package internal import ( "math" - "code.gitea.io/gitea/models/db" + "forgejo.org/models/db" ) // ParsePaginator parses a db.Paginator into a skip and limit diff --git a/modules/indexer/issues/bleve/bleve.go b/modules/indexer/issues/bleve/bleve.go index 3dcc9fe3a4..5d6099bd2a 100644 --- a/modules/indexer/issues/bleve/bleve.go +++ b/modules/indexer/issues/bleve/bleve.go @@ -6,9 +6,9 @@ package bleve import ( "context" - indexer_internal "code.gitea.io/gitea/modules/indexer/internal" - inner_bleve "code.gitea.io/gitea/modules/indexer/internal/bleve" - "code.gitea.io/gitea/modules/indexer/issues/internal" + indexer_internal "forgejo.org/modules/indexer/internal" + inner_bleve "forgejo.org/modules/indexer/internal/bleve" + "forgejo.org/modules/indexer/issues/internal" "github.com/blevesearch/bleve/v2" "github.com/blevesearch/bleve/v2/analysis/analyzer/custom" diff --git a/modules/indexer/issues/bleve/bleve_test.go b/modules/indexer/issues/bleve/bleve_test.go index 908514a01a..ead57b572f 100644 --- a/modules/indexer/issues/bleve/bleve_test.go +++ b/modules/indexer/issues/bleve/bleve_test.go @@ -6,7 +6,7 @@ package bleve import ( "testing" - "code.gitea.io/gitea/modules/indexer/issues/internal/tests" + "forgejo.org/modules/indexer/issues/internal/tests" ) func TestBleveIndexer(t *testing.T) { diff --git a/modules/indexer/issues/db/db.go b/modules/indexer/issues/db/db.go index 05ec548435..9dd026e74f 100644 --- a/modules/indexer/issues/db/db.go +++ b/modules/indexer/issues/db/db.go @@ -6,11 +6,11 @@ package db import ( "context" - "code.gitea.io/gitea/models/db" - issue_model "code.gitea.io/gitea/models/issues" - indexer_internal "code.gitea.io/gitea/modules/indexer/internal" - inner_db "code.gitea.io/gitea/modules/indexer/internal/db" - "code.gitea.io/gitea/modules/indexer/issues/internal" + "forgejo.org/models/db" + issue_model "forgejo.org/models/issues" + indexer_internal "forgejo.org/modules/indexer/internal" + inner_db "forgejo.org/modules/indexer/internal/db" + "forgejo.org/modules/indexer/issues/internal" "xorm.io/builder" ) diff --git a/modules/indexer/issues/db/options.go b/modules/indexer/issues/db/options.go index 875a4ca279..4411cc1c37 100644 --- a/modules/indexer/issues/db/options.go +++ b/modules/indexer/issues/db/options.go @@ -7,11 +7,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issue_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/indexer/issues/internal" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + issue_model "forgejo.org/models/issues" + "forgejo.org/modules/container" + "forgejo.org/modules/indexer/issues/internal" + "forgejo.org/modules/optional" ) func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_model.IssuesOptions, error) { diff --git a/modules/indexer/issues/dboptions.go b/modules/indexer/issues/dboptions.go index e34ef607c2..d67dc68bfc 100644 --- a/modules/indexer/issues/dboptions.go +++ b/modules/indexer/issues/dboptions.go @@ -4,9 +4,9 @@ package issues import ( - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/optional" ) func ToSearchOptions(keyword string, opts *issues_model.IssuesOptions) *SearchOptions { diff --git a/modules/indexer/issues/elasticsearch/elasticsearch.go b/modules/indexer/issues/elasticsearch/elasticsearch.go index 221ae6dd2f..1bf0145796 100644 --- a/modules/indexer/issues/elasticsearch/elasticsearch.go +++ b/modules/indexer/issues/elasticsearch/elasticsearch.go @@ -9,10 +9,10 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/graceful" - indexer_internal "code.gitea.io/gitea/modules/indexer/internal" - inner_elasticsearch "code.gitea.io/gitea/modules/indexer/internal/elasticsearch" - "code.gitea.io/gitea/modules/indexer/issues/internal" + "forgejo.org/modules/graceful" + indexer_internal "forgejo.org/modules/indexer/internal" + inner_elasticsearch "forgejo.org/modules/indexer/internal/elasticsearch" + "forgejo.org/modules/indexer/issues/internal" "github.com/olivere/elastic/v7" ) diff --git a/modules/indexer/issues/elasticsearch/elasticsearch_test.go b/modules/indexer/issues/elasticsearch/elasticsearch_test.go index 4ed0b84442..f8cd4e02f6 100644 --- a/modules/indexer/issues/elasticsearch/elasticsearch_test.go +++ b/modules/indexer/issues/elasticsearch/elasticsearch_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/indexer/issues/internal/tests" + "forgejo.org/modules/indexer/issues/internal/tests" ) func TestElasticsearchIndexer(t *testing.T) { diff --git a/modules/indexer/issues/indexer.go b/modules/indexer/issues/indexer.go index 3078882258..446e714735 100644 --- a/modules/indexer/issues/indexer.go +++ b/modules/indexer/issues/indexer.go @@ -12,19 +12,19 @@ import ( "sync/atomic" "time" - db_model "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/indexer/issues/bleve" - "code.gitea.io/gitea/modules/indexer/issues/db" - "code.gitea.io/gitea/modules/indexer/issues/elasticsearch" - "code.gitea.io/gitea/modules/indexer/issues/internal" - "code.gitea.io/gitea/modules/indexer/issues/meilisearch" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" + db_model "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/indexer/issues/bleve" + "forgejo.org/modules/indexer/issues/db" + "forgejo.org/modules/indexer/issues/elasticsearch" + "forgejo.org/modules/indexer/issues/internal" + "forgejo.org/modules/indexer/issues/meilisearch" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/process" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" ) // IndexerMetadata is used to send data to the queue, so it contains only the ids. diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go index 9f80d70696..d3b3494672 100644 --- a/modules/indexer/issues/indexer_test.go +++ b/modules/indexer/issues/indexer_test.go @@ -6,17 +6,17 @@ package issues import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/indexer/issues/internal" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/issues" + "forgejo.org/models/unittest" + "forgejo.org/modules/indexer/issues/internal" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/indexer/issues/internal/indexer.go b/modules/indexer/issues/internal/indexer.go index 95740bc598..2f3b4029dc 100644 --- a/modules/indexer/issues/internal/indexer.go +++ b/modules/indexer/issues/internal/indexer.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "code.gitea.io/gitea/modules/indexer/internal" + "forgejo.org/modules/indexer/internal" ) // Indexer defines an interface to indexer issues contents diff --git a/modules/indexer/issues/internal/model.go b/modules/indexer/issues/internal/model.go index 0751060afc..03f5595a5b 100644 --- a/modules/indexer/issues/internal/model.go +++ b/modules/indexer/issues/internal/model.go @@ -4,9 +4,9 @@ package internal import ( - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/optional" + "forgejo.org/modules/timeutil" ) // IndexerData data stored in the issue indexer diff --git a/modules/indexer/issues/internal/tests/tests.go b/modules/indexer/issues/internal/tests/tests.go index 80ff34713e..8308cb7f60 100644 --- a/modules/indexer/issues/internal/tests/tests.go +++ b/modules/indexer/issues/internal/tests/tests.go @@ -14,10 +14,10 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/indexer/issues/internal" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/modules/indexer/issues/internal" + "forgejo.org/modules/optional" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/indexer/issues/meilisearch/meilisearch.go b/modules/indexer/issues/meilisearch/meilisearch.go index 951f3c8bfb..17a8ba2452 100644 --- a/modules/indexer/issues/meilisearch/meilisearch.go +++ b/modules/indexer/issues/meilisearch/meilisearch.go @@ -10,9 +10,9 @@ import ( "strconv" "strings" - indexer_internal "code.gitea.io/gitea/modules/indexer/internal" - inner_meilisearch "code.gitea.io/gitea/modules/indexer/internal/meilisearch" - "code.gitea.io/gitea/modules/indexer/issues/internal" + indexer_internal "forgejo.org/modules/indexer/internal" + inner_meilisearch "forgejo.org/modules/indexer/internal/meilisearch" + "forgejo.org/modules/indexer/issues/internal" "github.com/meilisearch/meilisearch-go" ) diff --git a/modules/indexer/issues/meilisearch/meilisearch_test.go b/modules/indexer/issues/meilisearch/meilisearch_test.go index 349102b762..01160a5240 100644 --- a/modules/indexer/issues/meilisearch/meilisearch_test.go +++ b/modules/indexer/issues/meilisearch/meilisearch_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/indexer/issues/internal" - "code.gitea.io/gitea/modules/indexer/issues/internal/tests" + "forgejo.org/modules/indexer/issues/internal" + "forgejo.org/modules/indexer/issues/internal/tests" "github.com/meilisearch/meilisearch-go" "github.com/stretchr/testify/assert" diff --git a/modules/indexer/issues/util.go b/modules/indexer/issues/util.go index e752ae6f24..3e6c8babe4 100644 --- a/modules/indexer/issues/util.go +++ b/modules/indexer/issues/util.go @@ -8,12 +8,12 @@ import ( "errors" "fmt" - "code.gitea.io/gitea/models/db" - issue_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/indexer/issues/internal" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" + "forgejo.org/models/db" + issue_model "forgejo.org/models/issues" + "forgejo.org/modules/container" + "forgejo.org/modules/indexer/issues/internal" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" ) // getIssueIndexerData returns the indexer data of an issue and a bool value indicating whether the issue exists. diff --git a/modules/indexer/stats/db.go b/modules/indexer/stats/db.go index 98a977c700..0d25192e3c 100644 --- a/modules/indexer/stats/db.go +++ b/modules/indexer/stats/db.go @@ -6,13 +6,13 @@ package stats import ( "fmt" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" ) // DBIndexer implements Indexer interface to use database's like search diff --git a/modules/indexer/stats/indexer.go b/modules/indexer/stats/indexer.go index 7ec89e2afb..482c4b2ab4 100644 --- a/modules/indexer/stats/indexer.go +++ b/modules/indexer/stats/indexer.go @@ -6,10 +6,10 @@ package stats import ( "context" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" ) // Indexer defines an interface to index repository stats diff --git a/modules/indexer/stats/indexer_test.go b/modules/indexer/stats/indexer_test.go index 781bb72eaa..a5899d2506 100644 --- a/modules/indexer/stats/indexer_test.go +++ b/modules/indexer/stats/indexer_test.go @@ -7,16 +7,16 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/indexer/stats/queue.go b/modules/indexer/stats/queue.go index d002bd57cf..2403eb8dca 100644 --- a/modules/indexer/stats/queue.go +++ b/modules/indexer/stats/queue.go @@ -6,11 +6,11 @@ package stats import ( "fmt" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" ) // statsQueue represents a queue to handle repository stats updates diff --git a/modules/issue/template/template.go b/modules/issue/template/template.go index dbbc9e9186..8e07cbecd8 100644 --- a/modules/issue/template/template.go +++ b/modules/issue/template/template.go @@ -10,8 +10,8 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/container" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/container" + api "forgejo.org/modules/structs" "code.forgejo.org/go-chi/binding" ) diff --git a/modules/issue/template/template_test.go b/modules/issue/template/template_test.go index 349dbeabb0..89e8924e95 100644 --- a/modules/issue/template/template_test.go +++ b/modules/issue/template/template_test.go @@ -7,8 +7,8 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/issue/template/unmarshal.go b/modules/issue/template/unmarshal.go index 0fc13d7ddf..8df71a3299 100644 --- a/modules/issue/template/unmarshal.go +++ b/modules/issue/template/unmarshal.go @@ -9,11 +9,11 @@ import ( "path" "strconv" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/git" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" "gopkg.in/yaml.v3" ) diff --git a/modules/keying/keying_test.go b/modules/keying/keying_test.go index d88e907a0b..87dce0a566 100644 --- a/modules/keying/keying_test.go +++ b/modules/keying/keying_test.go @@ -7,7 +7,7 @@ import ( "math" "testing" - "code.gitea.io/gitea/modules/keying" + "forgejo.org/modules/keying" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/label/parser.go b/modules/label/parser.go index 511bac823f..558ae68def 100644 --- a/modules/label/parser.go +++ b/modules/label/parser.go @@ -8,7 +8,7 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/options" + "forgejo.org/modules/options" "gopkg.in/yaml.v3" ) diff --git a/modules/lfs/content_store.go b/modules/lfs/content_store.go index 0d9c0c98ac..ba23cec2be 100644 --- a/modules/lfs/content_store.go +++ b/modules/lfs/content_store.go @@ -11,8 +11,8 @@ import ( "io" "os" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/storage" + "forgejo.org/modules/log" + "forgejo.org/modules/storage" ) var ( diff --git a/modules/lfs/endpoint.go b/modules/lfs/endpoint.go index 97bd7d4446..b8df4be3ee 100644 --- a/modules/lfs/endpoint.go +++ b/modules/lfs/endpoint.go @@ -10,8 +10,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // DetermineEndpoint determines an endpoint from the clone url or uses the specified LFS url. diff --git a/modules/lfs/filesystem_client.go b/modules/lfs/filesystem_client.go index 71bef5c899..164dfa0011 100644 --- a/modules/lfs/filesystem_client.go +++ b/modules/lfs/filesystem_client.go @@ -10,7 +10,7 @@ import ( "os" "path/filepath" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // FilesystemClient is used to read LFS data from a filesystem path diff --git a/modules/lfs/http_client.go b/modules/lfs/http_client.go index 0a27fb0c86..e531e2c1fe 100644 --- a/modules/lfs/http_client.go +++ b/modules/lfs/http_client.go @@ -13,10 +13,10 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/proxy" + "forgejo.org/modules/setting" "golang.org/x/sync/errgroup" ) diff --git a/modules/lfs/http_client_test.go b/modules/lfs/http_client_test.go index e80e4847f8..f825d95951 100644 --- a/modules/lfs/http_client_test.go +++ b/modules/lfs/http_client_test.go @@ -11,9 +11,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/lfs/pointer_scanner.go b/modules/lfs/pointer_scanner.go index 8bbf7a8692..632ecd19ae 100644 --- a/modules/lfs/pointer_scanner.go +++ b/modules/lfs/pointer_scanner.go @@ -11,8 +11,8 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/git/pipeline" + "forgejo.org/modules/git" + "forgejo.org/modules/git/pipeline" ) // SearchPointerBlobs scans the whole repository for LFS pointer files diff --git a/modules/lfs/shared.go b/modules/lfs/shared.go index ae4bb1f86b..504a726bce 100644 --- a/modules/lfs/shared.go +++ b/modules/lfs/shared.go @@ -8,7 +8,7 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) const ( diff --git a/modules/lfs/transferadapter.go b/modules/lfs/transferadapter.go index fbc3a3ad8c..98ac8b9a49 100644 --- a/modules/lfs/transferadapter.go +++ b/modules/lfs/transferadapter.go @@ -9,8 +9,8 @@ import ( "io" "net/http" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/json" + "forgejo.org/modules/log" ) // TransferAdapter represents an adapter for downloading/uploading LFS objects. diff --git a/modules/lfs/transferadapter_test.go b/modules/lfs/transferadapter_test.go index a90ee5c6c0..aa87d2e01a 100644 --- a/modules/lfs/transferadapter_test.go +++ b/modules/lfs/transferadapter_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/log/event_writer_buffer_test.go b/modules/log/event_writer_buffer_test.go index 58c6be1399..ba9455ba69 100644 --- a/modules/log/event_writer_buffer_test.go +++ b/modules/log/event_writer_buffer_test.go @@ -6,7 +6,7 @@ package log_test import ( "testing" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/stretchr/testify/assert" ) diff --git a/modules/log/event_writer_file.go b/modules/log/event_writer_file.go index fd73d7d30a..fd7189e2df 100644 --- a/modules/log/event_writer_file.go +++ b/modules/log/event_writer_file.go @@ -6,7 +6,7 @@ package log import ( "io" - "code.gitea.io/gitea/modules/util/rotatingfilewriter" + "forgejo.org/modules/util/rotatingfilewriter" ) type WriterFileOption struct { diff --git a/modules/log/flags.go b/modules/log/flags.go index cadf54fdd3..afce30680d 100644 --- a/modules/log/flags.go +++ b/modules/log/flags.go @@ -7,7 +7,7 @@ import ( "sort" "strings" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) // These flags define which text to prefix to each log entry generated diff --git a/modules/log/flags_test.go b/modules/log/flags_test.go index a101c42a78..1ee322c630 100644 --- a/modules/log/flags_test.go +++ b/modules/log/flags_test.go @@ -6,7 +6,7 @@ package log import ( "testing" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/log/init.go b/modules/log/init.go index 3fb5200ad7..4c6b7b5f82 100644 --- a/modules/log/init.go +++ b/modules/log/init.go @@ -8,8 +8,8 @@ import ( "runtime" "strings" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/util/rotatingfilewriter" + "forgejo.org/modules/process" + "forgejo.org/modules/util/rotatingfilewriter" ) var projectPackagePrefix string diff --git a/modules/log/level.go b/modules/log/level.go index 47f7b83f0b..2ad1d67f1a 100644 --- a/modules/log/level.go +++ b/modules/log/level.go @@ -7,7 +7,7 @@ import ( "bytes" "strings" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) // Level is the level of the logger diff --git a/modules/log/level_test.go b/modules/log/level_test.go index 9831ca5650..e6cacc723b 100644 --- a/modules/log/level_test.go +++ b/modules/log/level_test.go @@ -7,7 +7,7 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/log/logger_impl.go b/modules/log/logger_impl.go index 77e7edf6aa..b21e800f52 100644 --- a/modules/log/logger_impl.go +++ b/modules/log/logger_impl.go @@ -11,8 +11,8 @@ import ( "sync/atomic" "time" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/json" + "forgejo.org/modules/util" ) type LoggerImpl struct { diff --git a/modules/markup/asciicast/asciicast.go b/modules/markup/asciicast/asciicast.go index 873029c1bd..739a035977 100644 --- a/modules/markup/asciicast/asciicast.go +++ b/modules/markup/asciicast/asciicast.go @@ -9,8 +9,8 @@ import ( "net/url" "regexp" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" ) func init() { diff --git a/modules/markup/camo.go b/modules/markup/camo.go index 7e2583469d..8380f79280 100644 --- a/modules/markup/camo.go +++ b/modules/markup/camo.go @@ -10,8 +10,8 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // CamoEncode encodes a lnk to fit with the go-camo and camo proxy links. The purposes of camo-proxy are: diff --git a/modules/markup/camo_test.go b/modules/markup/camo_test.go index 3c5d40afa0..d5600996c9 100644 --- a/modules/markup/camo_test.go +++ b/modules/markup/camo_test.go @@ -6,7 +6,7 @@ package markup import ( "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/modules/markup/console/console.go b/modules/markup/console/console.go index f544ab218d..c61b6495d3 100644 --- a/modules/markup/console/console.go +++ b/modules/markup/console/console.go @@ -10,8 +10,8 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" trend "github.com/buildkite/terminal-to-html/v3" "github.com/go-enry/go-enry/v2" diff --git a/modules/markup/console/console_test.go b/modules/markup/console/console_test.go index 0d4a2bbeb9..11e0a54e5d 100644 --- a/modules/markup/console/console_test.go +++ b/modules/markup/console/console_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/markup" + "forgejo.org/modules/git" + "forgejo.org/modules/markup" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/markup/csv/csv.go b/modules/markup/csv/csv.go index 092eec7098..6a05088ae1 100644 --- a/modules/markup/csv/csv.go +++ b/modules/markup/csv/csv.go @@ -10,11 +10,11 @@ import ( "regexp" "strconv" - "code.gitea.io/gitea/modules/csv" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/csv" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" ) func init() { diff --git a/modules/markup/csv/csv_test.go b/modules/markup/csv/csv_test.go index 383f134155..008a899c05 100644 --- a/modules/markup/csv/csv_test.go +++ b/modules/markup/csv/csv_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/markup" + "forgejo.org/modules/git" + "forgejo.org/modules/markup" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/markup/external/external.go b/modules/markup/external/external.go index 59f0397515..87c1a284cc 100644 --- a/modules/markup/external/external.go +++ b/modules/markup/external/external.go @@ -11,12 +11,12 @@ import ( "os/exec" "strings" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // RegisterRenderers registers all supported third part renderers according settings diff --git a/modules/markup/file_preview.go b/modules/markup/file_preview.go index 2171f6097b..5499eff18c 100644 --- a/modules/markup/file_preview.go +++ b/modules/markup/file_preview.go @@ -14,11 +14,11 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/highlight" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/charset" + "forgejo.org/modules/highlight" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" "golang.org/x/net/html" "golang.org/x/net/html/atom" diff --git a/modules/markup/html.go b/modules/markup/html.go index 936d717903..323adf931d 100644 --- a/modules/markup/html.go +++ b/modules/markup/html.go @@ -14,17 +14,17 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/emoji" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup/common" - "code.gitea.io/gitea/modules/references" - "code.gitea.io/gitea/modules/regexplru" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates/vars" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/base" + "forgejo.org/modules/emoji" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/markup/common" + "forgejo.org/modules/references" + "forgejo.org/modules/regexplru" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates/vars" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" "golang.org/x/net/html" "golang.org/x/net/html/atom" diff --git a/modules/markup/html_internal_test.go b/modules/markup/html_internal_test.go index 71be75f6bd..6a5d3bfa35 100644 --- a/modules/markup/html_internal_test.go +++ b/modules/markup/html_internal_test.go @@ -10,9 +10,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go index 905a10c58c..d503796eb6 100644 --- a/modules/markup/html_test.go +++ b/modules/markup/html_test.go @@ -11,16 +11,16 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/emoji" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/unittest" + "forgejo.org/modules/emoji" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/markup/markdown/callout/github.go b/modules/markup/markdown/callout/github.go index adc2071823..49ad249696 100644 --- a/modules/markup/markdown/callout/github.go +++ b/modules/markup/markdown/callout/github.go @@ -7,7 +7,7 @@ package callout import ( "strings" - "code.gitea.io/gitea/modules/svg" + "forgejo.org/modules/svg" "github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/parser" diff --git a/modules/markup/markdown/callout/github_legacy.go b/modules/markup/markdown/callout/github_legacy.go index 39ea8619d8..e77da73dd9 100644 --- a/modules/markup/markdown/callout/github_legacy.go +++ b/modules/markup/markdown/callout/github_legacy.go @@ -7,7 +7,7 @@ package callout import ( "strings" - "code.gitea.io/gitea/modules/markup/markdown/util" + "forgejo.org/modules/markup/markdown/util" "github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/parser" diff --git a/modules/markup/markdown/goldmark.go b/modules/markup/markdown/goldmark.go index 1d3e04224f..9a901a2287 100644 --- a/modules/markup/markdown/goldmark.go +++ b/modules/markup/markdown/goldmark.go @@ -8,8 +8,8 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" "github.com/yuin/goldmark/ast" east "github.com/yuin/goldmark/extension/ast" diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go index d249d25014..db92631acc 100644 --- a/modules/markup/markdown/markdown.go +++ b/modules/markup/markdown/markdown.go @@ -11,13 +11,13 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/common" - "code.gitea.io/gitea/modules/markup/markdown/callout" - "code.gitea.io/gitea/modules/markup/markdown/math" - "code.gitea.io/gitea/modules/setting" - giteautil "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/common" + "forgejo.org/modules/markup/markdown/callout" + "forgejo.org/modules/markup/markdown/math" + "forgejo.org/modules/setting" + giteautil "forgejo.org/modules/util" chromahtml "github.com/alecthomas/chroma/v2/formatters/html" "github.com/yuin/goldmark" diff --git a/modules/markup/markdown/markdown_test.go b/modules/markup/markdown/markdown_test.go index bb59d72957..e229ee4c65 100644 --- a/modules/markup/markdown/markdown_test.go +++ b/modules/markup/markdown/markdown_test.go @@ -10,14 +10,14 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/markup/markdown/prefixed_id.go b/modules/markup/markdown/prefixed_id.go index 63d7fadc0a..036481dc05 100644 --- a/modules/markup/markdown/prefixed_id.go +++ b/modules/markup/markdown/prefixed_id.go @@ -7,9 +7,9 @@ import ( "bytes" "fmt" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/markup/common" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/container" + "forgejo.org/modules/markup/common" + "forgejo.org/modules/util" "github.com/yuin/goldmark/ast" ) diff --git a/modules/markup/markdown/renderconfig.go b/modules/markup/markdown/renderconfig.go index f4c48d1b3d..5c3eb1beec 100644 --- a/modules/markup/markdown/renderconfig.go +++ b/modules/markup/markdown/renderconfig.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/markup" + "forgejo.org/modules/markup" "github.com/yuin/goldmark/ast" "gopkg.in/yaml.v3" diff --git a/modules/markup/markdown/toc.go b/modules/markup/markdown/toc.go index 38f744a25f..dbfab3e9dc 100644 --- a/modules/markup/markdown/toc.go +++ b/modules/markup/markdown/toc.go @@ -7,8 +7,8 @@ import ( "fmt" "net/url" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/markup" + "forgejo.org/modules/translation" "github.com/yuin/goldmark/ast" ) diff --git a/modules/markup/markdown/transform_codespan.go b/modules/markup/markdown/transform_codespan.go index 45e3c20c8e..15c3a44f0a 100644 --- a/modules/markup/markdown/transform_codespan.go +++ b/modules/markup/markdown/transform_codespan.go @@ -8,8 +8,8 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/modules/markup" - mdutil "code.gitea.io/gitea/modules/markup/markdown/util" + "forgejo.org/modules/markup" + mdutil "forgejo.org/modules/markup/markdown/util" "github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/renderer/html" diff --git a/modules/markup/markdown/transform_heading.go b/modules/markup/markdown/transform_heading.go index 79fc9a3067..eedaf58556 100644 --- a/modules/markup/markdown/transform_heading.go +++ b/modules/markup/markdown/transform_heading.go @@ -6,9 +6,9 @@ package markdown import ( "fmt" - "code.gitea.io/gitea/modules/markup" - mdutil "code.gitea.io/gitea/modules/markup/markdown/util" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/markup" + mdutil "forgejo.org/modules/markup/markdown/util" + "forgejo.org/modules/util" "github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/text" diff --git a/modules/markup/markdown/transform_image.go b/modules/markup/markdown/transform_image.go index b34a710fed..0f9c69cae6 100644 --- a/modules/markup/markdown/transform_image.go +++ b/modules/markup/markdown/transform_image.go @@ -6,8 +6,8 @@ package markdown import ( "strings" - "code.gitea.io/gitea/modules/markup" - giteautil "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/markup" + giteautil "forgejo.org/modules/util" "github.com/yuin/goldmark/ast" ) diff --git a/modules/markup/markdown/transform_link.go b/modules/markup/markdown/transform_link.go index e6f3836412..48e3479563 100644 --- a/modules/markup/markdown/transform_link.go +++ b/modules/markup/markdown/transform_link.go @@ -7,9 +7,9 @@ import ( "bytes" "slices" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - giteautil "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + giteautil "forgejo.org/modules/util" "github.com/yuin/goldmark/ast" ) diff --git a/modules/markup/markdown/transform_list.go b/modules/markup/markdown/transform_list.go index b982fd4a83..03b3c4e89c 100644 --- a/modules/markup/markdown/transform_list.go +++ b/modules/markup/markdown/transform_list.go @@ -6,7 +6,7 @@ package markdown import ( "fmt" - "code.gitea.io/gitea/modules/markup" + "forgejo.org/modules/markup" "github.com/yuin/goldmark/ast" east "github.com/yuin/goldmark/extension/ast" diff --git a/modules/markup/mdstripper/mdstripper.go b/modules/markup/mdstripper/mdstripper.go index aefa41d3d2..6a34ac81c4 100644 --- a/modules/markup/mdstripper/mdstripper.go +++ b/modules/markup/mdstripper/mdstripper.go @@ -10,9 +10,9 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup/common" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/markup/common" + "forgejo.org/modules/setting" "github.com/yuin/goldmark" "github.com/yuin/goldmark/ast" diff --git a/modules/markup/orgmode/orgmode.go b/modules/markup/orgmode/orgmode.go index 391ee6c12b..b9d7b21db0 100644 --- a/modules/markup/orgmode/orgmode.go +++ b/modules/markup/orgmode/orgmode.go @@ -9,11 +9,11 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/highlight" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/highlight" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/alecthomas/chroma/v2" "github.com/alecthomas/chroma/v2/lexers" diff --git a/modules/markup/orgmode/orgmode_test.go b/modules/markup/orgmode/orgmode_test.go index 58fede7eb8..cdaa9f18ce 100644 --- a/modules/markup/orgmode/orgmode_test.go +++ b/modules/markup/orgmode/orgmode_test.go @@ -7,10 +7,10 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/git" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/markup/renderer.go b/modules/markup/renderer.go index 2137302f43..a622d75085 100644 --- a/modules/markup/renderer.go +++ b/modules/markup/renderer.go @@ -14,9 +14,9 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/yuin/goldmark/ast" ) diff --git a/modules/markup/sanitizer.go b/modules/markup/sanitizer.go index 72d6571e4e..7ff11f0844 100644 --- a/modules/markup/sanitizer.go +++ b/modules/markup/sanitizer.go @@ -10,7 +10,7 @@ import ( "regexp" "sync" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/microcosm-cc/bluemonday" ) diff --git a/modules/mcaptcha/mcaptcha.go b/modules/mcaptcha/mcaptcha.go index 74142aa863..dbcafce29f 100644 --- a/modules/mcaptcha/mcaptcha.go +++ b/modules/mcaptcha/mcaptcha.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "codeberg.org/gusted/mcaptcha" ) diff --git a/modules/metrics/collector.go b/modules/metrics/collector.go index 230260ff94..5b6787d2f7 100755 --- a/modules/metrics/collector.go +++ b/modules/metrics/collector.go @@ -6,9 +6,9 @@ package metrics import ( "runtime" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + "forgejo.org/modules/setting" "github.com/prometheus/client_golang/prometheus" ) diff --git a/modules/migration/downloader.go b/modules/migration/downloader.go index 08dbbc29a9..48bdf0456d 100644 --- a/modules/migration/downloader.go +++ b/modules/migration/downloader.go @@ -7,7 +7,7 @@ package migration import ( "context" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/structs" ) // Downloader downloads the site repo information diff --git a/modules/migration/file_format.go b/modules/migration/file_format.go index d29d24dd0b..8851ad6de7 100644 --- a/modules/migration/file_format.go +++ b/modules/migration/file_format.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/json" + "forgejo.org/modules/log" "github.com/santhosh-tekuri/jsonschema/v6" "gopkg.in/yaml.v3" diff --git a/modules/migration/options.go b/modules/migration/options.go index 234e72c295..63bbe60758 100644 --- a/modules/migration/options.go +++ b/modules/migration/options.go @@ -4,7 +4,7 @@ package migration -import "code.gitea.io/gitea/modules/structs" +import "forgejo.org/modules/structs" // MigrateOptions defines the way a repository gets migrated // this is for internal usage by migrations module and func who interact with it diff --git a/modules/migration/pullrequest.go b/modules/migration/pullrequest.go index fbfdff0315..933348d671 100644 --- a/modules/migration/pullrequest.go +++ b/modules/migration/pullrequest.go @@ -8,7 +8,7 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" ) // PullRequest defines a standard pull request information diff --git a/modules/nosql/manager.go b/modules/nosql/manager.go index 0ba21585fa..7eea069e09 100644 --- a/modules/nosql/manager.go +++ b/modules/nosql/manager.go @@ -9,7 +9,7 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/process" + "forgejo.org/modules/process" "github.com/redis/go-redis/v9" "github.com/syndtr/goleveldb/leveldb" diff --git a/modules/nosql/manager_leveldb.go b/modules/nosql/manager_leveldb.go index 4d2c90debc..087aac3e9a 100644 --- a/modules/nosql/manager_leveldb.go +++ b/modules/nosql/manager_leveldb.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/errors" diff --git a/modules/nosql/manager_redis.go b/modules/nosql/manager_redis.go index 79a533bd6b..bdaade1b47 100644 --- a/modules/nosql/manager_redis.go +++ b/modules/nosql/manager_redis.go @@ -11,7 +11,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/redis/go-redis/v9" ) diff --git a/modules/optional/option_test.go b/modules/optional/option_test.go index 203e9221e3..f6d22d2431 100644 --- a/modules/optional/option_test.go +++ b/modules/optional/option_test.go @@ -6,7 +6,7 @@ package optional_test import ( "testing" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/modules/optional" "github.com/stretchr/testify/assert" ) diff --git a/modules/optional/serialization.go b/modules/optional/serialization.go index b120a0edf6..86c1c97341 100644 --- a/modules/optional/serialization.go +++ b/modules/optional/serialization.go @@ -4,7 +4,7 @@ package optional import ( - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "gopkg.in/yaml.v3" ) diff --git a/modules/optional/serialization_test.go b/modules/optional/serialization_test.go index c852b8a70f..80fe1c9805 100644 --- a/modules/optional/serialization_test.go +++ b/modules/optional/serialization_test.go @@ -7,8 +7,8 @@ import ( std_json "encoding/json" //nolint:depguard "testing" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/modules/json" + "forgejo.org/modules/optional" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/options/base.go b/modules/options/base.go index 6c6e3839f4..3ae8c56b79 100644 --- a/modules/options/base.go +++ b/modules/options/base.go @@ -4,8 +4,8 @@ package options import ( - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/setting" ) func CustomAssets() *assetfs.Layer { diff --git a/modules/options/dynamic.go b/modules/options/dynamic.go index 085492d11c..8eed8516ab 100644 --- a/modules/options/dynamic.go +++ b/modules/options/dynamic.go @@ -6,8 +6,8 @@ package options import ( - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/setting" ) func BuiltinAssets() *assetfs.Layer { diff --git a/modules/options/static.go b/modules/options/static.go index 72b28e990e..02091a2b1c 100644 --- a/modules/options/static.go +++ b/modules/options/static.go @@ -6,7 +6,7 @@ package options import ( - "code.gitea.io/gitea/modules/assetfs" + "forgejo.org/modules/assetfs" ) func BuiltinAssets() *assetfs.Layer { diff --git a/modules/packages/alpine/metadata.go b/modules/packages/alpine/metadata.go index 582c42610d..8562612206 100644 --- a/modules/packages/alpine/metadata.go +++ b/modules/packages/alpine/metadata.go @@ -13,8 +13,8 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" ) var ( diff --git a/modules/packages/arch/metadata.go b/modules/packages/arch/metadata.go index 0a51472d9c..f967bd25a0 100644 --- a/modules/packages/arch/metadata.go +++ b/modules/packages/arch/metadata.go @@ -15,9 +15,9 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/packages" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "github.com/mholt/archiver/v3" ) diff --git a/modules/packages/arch/metadata_test.go b/modules/packages/arch/metadata_test.go index eb8de333ad..16c1c1637d 100644 --- a/modules/packages/arch/metadata_test.go +++ b/modules/packages/arch/metadata_test.go @@ -12,7 +12,7 @@ import ( "testing/fstest" "time" - "code.gitea.io/gitea/modules/packages" + "forgejo.org/modules/packages" "github.com/mholt/archiver/v3" "github.com/stretchr/testify/require" diff --git a/modules/packages/cargo/parser.go b/modules/packages/cargo/parser.go index a09cfc1f73..f2c75538b5 100644 --- a/modules/packages/cargo/parser.go +++ b/modules/packages/cargo/parser.go @@ -9,8 +9,8 @@ import ( "io" "regexp" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/json" + "forgejo.org/modules/validation" "github.com/hashicorp/go-version" ) diff --git a/modules/packages/chef/metadata.go b/modules/packages/chef/metadata.go index a1c91870c2..951606bbc5 100644 --- a/modules/packages/chef/metadata.go +++ b/modules/packages/chef/metadata.go @@ -10,9 +10,9 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/json" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" ) const ( diff --git a/modules/packages/composer/metadata.go b/modules/packages/composer/metadata.go index 6035eae8ca..940309b769 100644 --- a/modules/packages/composer/metadata.go +++ b/modules/packages/composer/metadata.go @@ -10,9 +10,9 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/json" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "github.com/hashicorp/go-version" ) diff --git a/modules/packages/composer/metadata_test.go b/modules/packages/composer/metadata_test.go index 2bdb23965b..e2bbff4e58 100644 --- a/modules/packages/composer/metadata_test.go +++ b/modules/packages/composer/metadata_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/packages/conan/conaninfo_parser.go b/modules/packages/conan/conaninfo_parser.go index de11dbee45..6027e51401 100644 --- a/modules/packages/conan/conaninfo_parser.go +++ b/modules/packages/conan/conaninfo_parser.go @@ -8,7 +8,7 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // Conaninfo represents infos of a Conan package diff --git a/modules/packages/conan/reference.go b/modules/packages/conan/reference.go index 58f268bd48..0b863240cb 100644 --- a/modules/packages/conan/reference.go +++ b/modules/packages/conan/reference.go @@ -8,8 +8,8 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) const ( diff --git a/modules/packages/conda/metadata.go b/modules/packages/conda/metadata.go index 76ba95eace..f61cc61c2a 100644 --- a/modules/packages/conda/metadata.go +++ b/modules/packages/conda/metadata.go @@ -10,10 +10,10 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/zstd" + "forgejo.org/modules/json" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" + "forgejo.org/modules/zstd" ) var ( diff --git a/modules/packages/conda/metadata_test.go b/modules/packages/conda/metadata_test.go index 25b0295157..959f9c4727 100644 --- a/modules/packages/conda/metadata_test.go +++ b/modules/packages/conda/metadata_test.go @@ -10,7 +10,7 @@ import ( "io" "testing" - "code.gitea.io/gitea/modules/zstd" + "forgejo.org/modules/zstd" "github.com/dsnet/compress/bzip2" "github.com/stretchr/testify/assert" diff --git a/modules/packages/container/metadata.go b/modules/packages/container/metadata.go index 2a41fb9105..ec9d834357 100644 --- a/modules/packages/container/metadata.go +++ b/modules/packages/container/metadata.go @@ -8,9 +8,9 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/packages/container/helm" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/json" + "forgejo.org/modules/packages/container/helm" + "forgejo.org/modules/validation" oci "github.com/opencontainers/image-spec/specs-go/v1" ) diff --git a/modules/packages/container/metadata_test.go b/modules/packages/container/metadata_test.go index 930cf48f68..6c8c6ea5b9 100644 --- a/modules/packages/container/metadata_test.go +++ b/modules/packages/container/metadata_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/packages/container/helm" + "forgejo.org/modules/packages/container/helm" oci "github.com/opencontainers/image-spec/specs-go/v1" "github.com/stretchr/testify/assert" diff --git a/modules/packages/content_store.go b/modules/packages/content_store.go index 6438fb174f..f4578d91e0 100644 --- a/modules/packages/content_store.go +++ b/modules/packages/content_store.go @@ -9,9 +9,9 @@ import ( "path" "strings" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" ) // BlobHash256Key is the key to address a blob content diff --git a/modules/packages/cran/metadata.go b/modules/packages/cran/metadata.go index 0b0bfb07c6..547fe87ccb 100644 --- a/modules/packages/cran/metadata.go +++ b/modules/packages/cran/metadata.go @@ -13,7 +13,7 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) const ( diff --git a/modules/packages/debian/metadata.go b/modules/packages/debian/metadata.go index e76db63975..e44801654b 100644 --- a/modules/packages/debian/metadata.go +++ b/modules/packages/debian/metadata.go @@ -12,9 +12,9 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/zstd" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" + "forgejo.org/modules/zstd" "github.com/blakesmith/ar" "github.com/ulikunitz/xz" diff --git a/modules/packages/debian/metadata_test.go b/modules/packages/debian/metadata_test.go index 6f6c469989..cfcbc57ee0 100644 --- a/modules/packages/debian/metadata_test.go +++ b/modules/packages/debian/metadata_test.go @@ -10,7 +10,7 @@ import ( "io" "testing" - "code.gitea.io/gitea/modules/zstd" + "forgejo.org/modules/zstd" "github.com/blakesmith/ar" "github.com/stretchr/testify/assert" diff --git a/modules/packages/goproxy/metadata.go b/modules/packages/goproxy/metadata.go index 40f7d20508..2dae4100e7 100644 --- a/modules/packages/goproxy/metadata.go +++ b/modules/packages/goproxy/metadata.go @@ -10,7 +10,7 @@ import ( "path" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) const ( diff --git a/modules/packages/hashed_buffer.go b/modules/packages/hashed_buffer.go index 70a086da30..93c693efc9 100644 --- a/modules/packages/hashed_buffer.go +++ b/modules/packages/hashed_buffer.go @@ -6,7 +6,7 @@ package packages import ( "io" - "code.gitea.io/gitea/modules/util/filebuffer" + "forgejo.org/modules/util/filebuffer" ) // HashedSizeReader provide methods to read, sum hashes and a Size method diff --git a/modules/packages/helm/metadata.go b/modules/packages/helm/metadata.go index 421fc5e725..19a30c5ffa 100644 --- a/modules/packages/helm/metadata.go +++ b/modules/packages/helm/metadata.go @@ -9,8 +9,8 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "github.com/hashicorp/go-version" "gopkg.in/yaml.v3" diff --git a/modules/packages/maven/metadata.go b/modules/packages/maven/metadata.go index fa48b4e0d7..bc0dc0155e 100644 --- a/modules/packages/maven/metadata.go +++ b/modules/packages/maven/metadata.go @@ -7,8 +7,8 @@ import ( "encoding/xml" "io" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "golang.org/x/net/html/charset" ) diff --git a/modules/packages/npm/creator.go b/modules/packages/npm/creator.go index 7d3d7cd6b5..ed163d30ac 100644 --- a/modules/packages/npm/creator.go +++ b/modules/packages/npm/creator.go @@ -14,9 +14,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/json" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "github.com/hashicorp/go-version" ) diff --git a/modules/packages/npm/creator_test.go b/modules/packages/npm/creator_test.go index b2cf1aae0e..5cbaf0d865 100644 --- a/modules/packages/npm/creator_test.go +++ b/modules/packages/npm/creator_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/packages/nuget/metadata.go b/modules/packages/nuget/metadata.go index dfb81baf4e..126a0ad494 100644 --- a/modules/packages/nuget/metadata.go +++ b/modules/packages/nuget/metadata.go @@ -13,8 +13,8 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "github.com/hashicorp/go-version" ) diff --git a/modules/packages/nuget/symbol_extractor.go b/modules/packages/nuget/symbol_extractor.go index 81bf0371a0..992ade7e8f 100644 --- a/modules/packages/nuget/symbol_extractor.go +++ b/modules/packages/nuget/symbol_extractor.go @@ -13,8 +13,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/packages" + "forgejo.org/modules/util" ) var ( diff --git a/modules/packages/pub/metadata.go b/modules/packages/pub/metadata.go index afb464e462..f8afdf7218 100644 --- a/modules/packages/pub/metadata.go +++ b/modules/packages/pub/metadata.go @@ -10,8 +10,8 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "github.com/hashicorp/go-version" "gopkg.in/yaml.v3" diff --git a/modules/packages/rpm/metadata.go b/modules/packages/rpm/metadata.go index 02003aba3d..30c91115e7 100644 --- a/modules/packages/rpm/metadata.go +++ b/modules/packages/rpm/metadata.go @@ -8,8 +8,8 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/validation" "github.com/sassoftware/go-rpmutils" ) diff --git a/modules/packages/rubygems/marshal.go b/modules/packages/rubygems/marshal.go index 4e6a5fc5f8..191efc7c0e 100644 --- a/modules/packages/rubygems/marshal.go +++ b/modules/packages/rubygems/marshal.go @@ -9,7 +9,7 @@ import ( "io" "reflect" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) const ( diff --git a/modules/packages/rubygems/metadata.go b/modules/packages/rubygems/metadata.go index 8a9794860e..6d021a17ab 100644 --- a/modules/packages/rubygems/metadata.go +++ b/modules/packages/rubygems/metadata.go @@ -10,8 +10,8 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "gopkg.in/yaml.v3" ) diff --git a/modules/packages/swift/metadata.go b/modules/packages/swift/metadata.go index 24c4262ab7..34fc4f1784 100644 --- a/modules/packages/swift/metadata.go +++ b/modules/packages/swift/metadata.go @@ -11,9 +11,9 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/json" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "github.com/hashicorp/go-version" ) diff --git a/modules/packages/vagrant/metadata.go b/modules/packages/vagrant/metadata.go index 6789533339..24684249b7 100644 --- a/modules/packages/vagrant/metadata.go +++ b/modules/packages/vagrant/metadata.go @@ -9,8 +9,8 @@ import ( "io" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/json" + "forgejo.org/modules/validation" ) const ( diff --git a/modules/packages/vagrant/metadata_test.go b/modules/packages/vagrant/metadata_test.go index f467781a08..f1950685be 100644 --- a/modules/packages/vagrant/metadata_test.go +++ b/modules/packages/vagrant/metadata_test.go @@ -10,7 +10,7 @@ import ( "io" "testing" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/pprof/pprof.go b/modules/pprof/pprof.go index c611c14270..d46790458e 100644 --- a/modules/pprof/pprof.go +++ b/modules/pprof/pprof.go @@ -9,7 +9,7 @@ import ( "runtime" "runtime/pprof" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // DumpMemProfileForUsername dumps a memory profile at pprofDataPath as memprofile__ diff --git a/modules/private/actions.go b/modules/private/actions.go index 311a283650..8e4b44c226 100644 --- a/modules/private/actions.go +++ b/modules/private/actions.go @@ -6,7 +6,7 @@ package private import ( "context" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) type GenerateTokenRequest struct { diff --git a/modules/private/hook.go b/modules/private/hook.go index 93cbcd469d..2d64c1dec9 100644 --- a/modules/private/hook.go +++ b/modules/private/hook.go @@ -9,10 +9,10 @@ import ( "net/url" "time" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/git/pushoptions" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/git/pushoptions" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" ) // Git environment variables diff --git a/modules/private/internal.go b/modules/private/internal.go index 9c330a24a8..65fddbbe6b 100644 --- a/modules/private/internal.go +++ b/modules/private/internal.go @@ -13,11 +13,11 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/httplib" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/proxyprotocol" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/httplib" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/proxyprotocol" + "forgejo.org/modules/setting" ) // Response is used for internal request response (for user message and error message) diff --git a/modules/private/key.go b/modules/private/key.go index dcd1714856..422ff16d9a 100644 --- a/modules/private/key.go +++ b/modules/private/key.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // UpdatePublicKeyInRepo update public key and if necessary deploy key updates diff --git a/modules/private/mail.go b/modules/private/mail.go index 08de5b7e28..f6054f9c74 100644 --- a/modules/private/mail.go +++ b/modules/private/mail.go @@ -6,7 +6,7 @@ package private import ( "context" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // Email structure holds a data for sending general emails diff --git a/modules/private/manager.go b/modules/private/manager.go index 6055e553bd..fa2e0b0d40 100644 --- a/modules/private/manager.go +++ b/modules/private/manager.go @@ -12,7 +12,7 @@ import ( "strconv" "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // Shutdown calls the internal shutdown function diff --git a/modules/private/request.go b/modules/private/request.go index 58cd261239..b80167adb6 100644 --- a/modules/private/request.go +++ b/modules/private/request.go @@ -8,8 +8,8 @@ import ( "io" "net/http" - "code.gitea.io/gitea/modules/httplib" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/httplib" + "forgejo.org/modules/json" ) // ResponseText is used to get the response as text, instead of parsing it as JSON. diff --git a/modules/private/restore_repo.go b/modules/private/restore_repo.go index 496209d3cb..2192d3048d 100644 --- a/modules/private/restore_repo.go +++ b/modules/private/restore_repo.go @@ -8,7 +8,7 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // RestoreParams structure holds a data for restore repository diff --git a/modules/private/serv.go b/modules/private/serv.go index 480a446954..fb8496930e 100644 --- a/modules/private/serv.go +++ b/modules/private/serv.go @@ -8,10 +8,10 @@ import ( "fmt" "net/url" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/perm" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/perm" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" ) // KeyAndOwner is the response from ServNoCommand diff --git a/modules/proxy/proxy.go b/modules/proxy/proxy.go index 1a6bdad7fb..8c460dba30 100644 --- a/modules/proxy/proxy.go +++ b/modules/proxy/proxy.go @@ -10,8 +10,8 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/gobwas/glob" ) diff --git a/modules/proxyprotocol/conn.go b/modules/proxyprotocol/conn.go index f437f13683..beac5de120 100644 --- a/modules/proxyprotocol/conn.go +++ b/modules/proxyprotocol/conn.go @@ -14,7 +14,7 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) var ( diff --git a/modules/public/public.go b/modules/public/public.go index abc6b46158..174936fd4a 100644 --- a/modules/public/public.go +++ b/modules/public/public.go @@ -12,12 +12,12 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/container" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) func CustomAssets() *assetfs.Layer { diff --git a/modules/public/public_test.go b/modules/public/public_test.go index 5e4bf5d671..4bfbb7ef31 100644 --- a/modules/public/public_test.go +++ b/modules/public/public_test.go @@ -6,7 +6,7 @@ package public import ( "testing" - "code.gitea.io/gitea/modules/container" + "forgejo.org/modules/container" "github.com/stretchr/testify/assert" ) diff --git a/modules/public/serve_dynamic.go b/modules/public/serve_dynamic.go index a668b17c34..e5bd89b1cd 100644 --- a/modules/public/serve_dynamic.go +++ b/modules/public/serve_dynamic.go @@ -6,8 +6,8 @@ package public import ( - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/setting" ) func BuiltinAssets() *assetfs.Layer { diff --git a/modules/public/serve_static.go b/modules/public/serve_static.go index e79085021e..e19bd976eb 100644 --- a/modules/public/serve_static.go +++ b/modules/public/serve_static.go @@ -8,8 +8,8 @@ package public import ( "time" - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/timeutil" ) var _ GzipBytesProvider = (*vfsgen۰CompressedFileInfo)(nil) diff --git a/modules/queue/base_channel.go b/modules/queue/base_channel.go index dd8ccb15f4..1be4edf144 100644 --- a/modules/queue/base_channel.go +++ b/modules/queue/base_channel.go @@ -9,7 +9,7 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/container" + "forgejo.org/modules/container" ) var errChannelClosed = errors.New("channel is closed") diff --git a/modules/queue/base_levelqueue.go b/modules/queue/base_levelqueue.go index 06cb5f4819..12c805c0be 100644 --- a/modules/queue/base_levelqueue.go +++ b/modules/queue/base_levelqueue.go @@ -7,8 +7,8 @@ import ( "context" "sync/atomic" - "code.gitea.io/gitea/modules/nosql" - "code.gitea.io/gitea/modules/queue/lqinternal" + "forgejo.org/modules/nosql" + "forgejo.org/modules/queue/lqinternal" "code.forgejo.org/forgejo/levelqueue" "github.com/syndtr/goleveldb/leveldb" diff --git a/modules/queue/base_levelqueue_common.go b/modules/queue/base_levelqueue_common.go index ee334c4571..8b4f35c47d 100644 --- a/modules/queue/base_levelqueue_common.go +++ b/modules/queue/base_levelqueue_common.go @@ -11,7 +11,7 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/nosql" + "forgejo.org/modules/nosql" "code.forgejo.org/forgejo/levelqueue" "github.com/syndtr/goleveldb/leveldb" diff --git a/modules/queue/base_levelqueue_test.go b/modules/queue/base_levelqueue_test.go index a4dc7a3062..0f02b9f3ee 100644 --- a/modules/queue/base_levelqueue_test.go +++ b/modules/queue/base_levelqueue_test.go @@ -6,8 +6,8 @@ package queue import ( "testing" - "code.gitea.io/gitea/modules/queue/lqinternal" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/queue/lqinternal" + "forgejo.org/modules/setting" "code.forgejo.org/forgejo/levelqueue" "github.com/stretchr/testify/assert" diff --git a/modules/queue/base_levelqueue_unique.go b/modules/queue/base_levelqueue_unique.go index ac133bdbf4..91d2e68500 100644 --- a/modules/queue/base_levelqueue_unique.go +++ b/modules/queue/base_levelqueue_unique.go @@ -8,8 +8,8 @@ import ( "sync" "sync/atomic" - "code.gitea.io/gitea/modules/nosql" - "code.gitea.io/gitea/modules/queue/lqinternal" + "forgejo.org/modules/nosql" + "forgejo.org/modules/queue/lqinternal" "code.forgejo.org/forgejo/levelqueue" "github.com/syndtr/goleveldb/leveldb" diff --git a/modules/queue/base_redis.go b/modules/queue/base_redis.go index 62df30f68f..ec3c6dc16d 100644 --- a/modules/queue/base_redis.go +++ b/modules/queue/base_redis.go @@ -8,9 +8,9 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/nosql" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/nosql" "github.com/redis/go-redis/v9" ) diff --git a/modules/queue/base_redis_test.go b/modules/queue/base_redis_test.go index fa1700dc2e..bf3ad5b97b 100644 --- a/modules/queue/base_redis_test.go +++ b/modules/queue/base_redis_test.go @@ -7,8 +7,8 @@ import ( "context" "testing" - "code.gitea.io/gitea/modules/queue/mock" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/queue/mock" + "forgejo.org/modules/setting" "github.com/redis/go-redis/v9" "github.com/stretchr/testify/suite" diff --git a/modules/queue/base_redis_with_server_test.go b/modules/queue/base_redis_with_server_test.go index b73404f4e5..e1f552bfb2 100644 --- a/modules/queue/base_redis_with_server_test.go +++ b/modules/queue/base_redis_with_server_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/nosql" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/nosql" + "forgejo.org/modules/setting" "github.com/stretchr/testify/suite" ) diff --git a/modules/queue/config.go b/modules/queue/config.go index c5bc16b6f0..f736a5aa12 100644 --- a/modules/queue/config.go +++ b/modules/queue/config.go @@ -4,7 +4,7 @@ package queue import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) type BaseConfig struct { diff --git a/modules/queue/manager.go b/modules/queue/manager.go index 8b964c0c28..8f1a93f273 100644 --- a/modules/queue/manager.go +++ b/modules/queue/manager.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) // Manager is a manager for the queues created by "CreateXxxQueue" functions, these queues are called "managed queues". diff --git a/modules/queue/manager_test.go b/modules/queue/manager_test.go index 5806cbd6c9..bd6e314493 100644 --- a/modules/queue/manager_test.go +++ b/modules/queue/manager_test.go @@ -7,7 +7,7 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/queue/mock/redisuniversalclient.go b/modules/queue/mock/redisuniversalclient.go index 36e4b7cd5d..65bac755d1 100644 --- a/modules/queue/mock/redisuniversalclient.go +++ b/modules/queue/mock/redisuniversalclient.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: code.gitea.io/gitea/modules/nosql (interfaces: RedisClient) +// Source: forgejo.org/modules/nosql (interfaces: RedisClient) // // Generated by this command: // -// mockgen -package mock -destination ./modules/queue/mock/redisuniversalclient.go code.gitea.io/gitea/modules/nosql RedisClient +// mockgen -package mock -destination ./modules/queue/mock/redisuniversalclient.go forgejo.org/modules/nosql RedisClient // // Package mock is a generated GoMock package. diff --git a/modules/queue/queue.go b/modules/queue/queue.go index 56835014a5..f16b3c1f34 100644 --- a/modules/queue/queue.go +++ b/modules/queue/queue.go @@ -61,7 +61,7 @@ // func handler(items ...*mypkg.QueueItem) []*mypkg.QueueItem { ... } package queue -import "code.gitea.io/gitea/modules/util" +import "forgejo.org/modules/util" type HandlerFuncT[T any] func(...T) (unhandled []T) diff --git a/modules/queue/workergroup.go b/modules/queue/workergroup.go index ea4c0020c5..3fb821ce69 100644 --- a/modules/queue/workergroup.go +++ b/modules/queue/workergroup.go @@ -10,7 +10,7 @@ import ( "sync/atomic" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) var ( diff --git a/modules/queue/workerqueue.go b/modules/queue/workerqueue.go index 041ce9a3f2..6a71fc4fb4 100644 --- a/modules/queue/workerqueue.go +++ b/modules/queue/workerqueue.go @@ -10,10 +10,10 @@ import ( "sync/atomic" "time" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" ) // WorkerPoolQueue is a queue that uses a pool of workers to process items diff --git a/modules/queue/workerqueue_test.go b/modules/queue/workerqueue_test.go index 0060d88ec6..5ae1a701b2 100644 --- a/modules/queue/workerqueue_test.go +++ b/modules/queue/workerqueue_test.go @@ -11,8 +11,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/recaptcha/recaptcha.go b/modules/recaptcha/recaptcha.go index 1777d169c1..95b0a77a43 100644 --- a/modules/recaptcha/recaptcha.go +++ b/modules/recaptcha/recaptcha.go @@ -11,9 +11,9 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // Response is the structure of JSON returned from API diff --git a/modules/references/references.go b/modules/references/references.go index 3b4bcb3706..e1d4b47de0 100644 --- a/modules/references/references.go +++ b/modules/references/references.go @@ -11,10 +11,10 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup/mdstripper" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/markup/mdstripper" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) var ( diff --git a/modules/references/references_test.go b/modules/references/references_test.go index d5f7c4b4c5..996066c820 100644 --- a/modules/references/references_test.go +++ b/modules/references/references_test.go @@ -7,7 +7,7 @@ import ( "regexp" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/modules/regexplru/regexplru.go b/modules/regexplru/regexplru.go index 8f66dcf3f7..b452094c16 100644 --- a/modules/regexplru/regexplru.go +++ b/modules/regexplru/regexplru.go @@ -6,7 +6,7 @@ package regexplru import ( "regexp" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" lru "github.com/hashicorp/golang-lru/v2" ) diff --git a/modules/repository/branch.go b/modules/repository/branch.go index 2bf9930f19..59b5f9e7d5 100644 --- a/modules/repository/branch.go +++ b/modules/repository/branch.go @@ -7,14 +7,14 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" ) // SyncRepoBranches synchronizes branch table with repository branches diff --git a/modules/repository/branch_test.go b/modules/repository/branch_test.go index b98618a16b..deb6cd5d19 100644 --- a/modules/repository/branch_test.go +++ b/modules/repository/branch_test.go @@ -6,10 +6,10 @@ package repository import ( "testing" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/repository/collaborator.go b/modules/repository/collaborator.go index 17915d34b7..5a0c4451b7 100644 --- a/modules/repository/collaborator.go +++ b/modules/repository/collaborator.go @@ -6,11 +6,11 @@ package repository import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" "xorm.io/builder" ) diff --git a/modules/repository/collaborator_test.go b/modules/repository/collaborator_test.go index 63352e33e8..dae173506b 100644 --- a/modules/repository/collaborator_test.go +++ b/modules/repository/collaborator_test.go @@ -6,14 +6,14 @@ package repository import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - perm_model "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + "forgejo.org/models/organization" + perm_model "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/repository/commits.go b/modules/repository/commits.go index ede60429a1..8f63f03db5 100644 --- a/modules/repository/commits.go +++ b/modules/repository/commits.go @@ -9,13 +9,13 @@ import ( "net/url" "time" - "code.gitea.io/gitea/models/avatars" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/avatars" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" ) // PushCommit represents a commit in a push operation. diff --git a/modules/repository/commits_test.go b/modules/repository/commits_test.go index a22f3d07b8..f49b0d37c5 100644 --- a/modules/repository/commits_test.go +++ b/modules/repository/commits_test.go @@ -8,11 +8,11 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/repository/create.go b/modules/repository/create.go index 32c6235544..d76a5571c7 100644 --- a/modules/repository/create.go +++ b/modules/repository/create.go @@ -11,22 +11,22 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/models" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/models/webhook" - issue_indexer "code.gitea.io/gitea/modules/indexer/issues" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/models/webhook" + issue_indexer "forgejo.org/modules/indexer/issues" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" ) // CreateRepositoryByExample creates a repository for the user/organization. diff --git a/modules/repository/create_test.go b/modules/repository/create_test.go index c743271c26..cb34143cef 100644 --- a/modules/repository/create_test.go +++ b/modules/repository/create_test.go @@ -6,10 +6,10 @@ package repository import ( "testing" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/repository/delete.go b/modules/repository/delete.go index 04af98beef..6fff16b406 100644 --- a/modules/repository/delete.go +++ b/modules/repository/delete.go @@ -6,9 +6,9 @@ package repository import ( "context" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" ) // CanUserDelete returns true if user could delete the repository diff --git a/modules/repository/env.go b/modules/repository/env.go index e4f32092fc..110f6ca674 100644 --- a/modules/repository/env.go +++ b/modules/repository/env.go @@ -8,9 +8,9 @@ import ( "os" "strings" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" ) // env keys for git hooks need diff --git a/modules/repository/fork.go b/modules/repository/fork.go index fbf0008716..42801fa80d 100644 --- a/modules/repository/fork.go +++ b/modules/repository/fork.go @@ -6,9 +6,9 @@ package repository import ( "context" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" ) // CanUserForkRepo returns true if specified user can fork repository. diff --git a/modules/repository/hooks.go b/modules/repository/hooks.go index 75a21a09dd..0f5e3afc34 100644 --- a/modules/repository/hooks.go +++ b/modules/repository/hooks.go @@ -8,8 +8,8 @@ import ( "os" "path/filepath" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) func getHookTemplates() (hookNames, hookTpls, giteaHookTpls []string) { diff --git a/modules/repository/init.go b/modules/repository/init.go index 5f500c5233..7b1442be93 100644 --- a/modules/repository/init.go +++ b/modules/repository/init.go @@ -10,14 +10,14 @@ import ( "sort" "strings" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/label" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/options" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/label" + "forgejo.org/modules/log" + "forgejo.org/modules/options" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) type OptionFile struct { diff --git a/modules/repository/license.go b/modules/repository/license.go index dcbefc8ded..af75d463d2 100644 --- a/modules/repository/license.go +++ b/modules/repository/license.go @@ -11,7 +11,7 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/options" + "forgejo.org/modules/options" ) type LicenseValues struct { diff --git a/modules/repository/main_test.go b/modules/repository/main_test.go index 7b245cf118..5906b10865 100644 --- a/modules/repository/main_test.go +++ b/modules/repository/main_test.go @@ -6,10 +6,10 @@ package repository import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/modules/repository/push.go b/modules/repository/push.go index 66d0417caf..d8be0a3e8c 100644 --- a/modules/repository/push.go +++ b/modules/repository/push.go @@ -4,7 +4,7 @@ package repository import ( - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" ) // PushUpdateOptions defines the push update options diff --git a/modules/repository/repo.go b/modules/repository/repo.go index 98e7fcbc0a..c86d48fe52 100644 --- a/modules/repository/repo.go +++ b/modules/repository/repo.go @@ -12,17 +12,17 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" ) /* diff --git a/modules/repository/repo_test.go b/modules/repository/repo_test.go index f3e7be6d7d..278bdc2420 100644 --- a/modules/repository/repo_test.go +++ b/modules/repository/repo_test.go @@ -6,7 +6,7 @@ package repository import ( "testing" - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" "github.com/stretchr/testify/assert" ) diff --git a/modules/repository/temp.go b/modules/repository/temp.go index 04faa9db3d..6048c43a8e 100644 --- a/modules/repository/temp.go +++ b/modules/repository/temp.go @@ -9,9 +9,9 @@ import ( "path" "path/filepath" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // LocalCopyPath returns the local repository temporary copy path. diff --git a/modules/session/db.go b/modules/session/db.go index 3b12b93521..eea7e2136e 100644 --- a/modules/session/db.go +++ b/modules/session/db.go @@ -7,9 +7,9 @@ import ( "log" "sync" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/timeutil" "code.forgejo.org/go-chi/session" ) diff --git a/modules/session/redis.go b/modules/session/redis.go index 230b501080..cf84ef21d9 100644 --- a/modules/session/redis.go +++ b/modules/session/redis.go @@ -22,8 +22,8 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/nosql" + "forgejo.org/modules/graceful" + "forgejo.org/modules/nosql" "code.forgejo.org/go-chi/session" ) diff --git a/modules/session/virtual.go b/modules/session/virtual.go index 9cf3683a71..1c3e1c778b 100644 --- a/modules/session/virtual.go +++ b/modules/session/virtual.go @@ -7,8 +7,8 @@ import ( "fmt" "sync" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/json" + "forgejo.org/modules/log" "code.forgejo.org/go-chi/session" memcache "code.forgejo.org/go-chi/session/memcache" diff --git a/modules/setting/admin.go b/modules/setting/admin.go index eed3aa22cf..7a1e071bac 100644 --- a/modules/setting/admin.go +++ b/modules/setting/admin.go @@ -4,7 +4,7 @@ package setting import ( - "code.gitea.io/gitea/modules/container" + "forgejo.org/modules/container" ) // Admin settings diff --git a/modules/setting/admin_test.go b/modules/setting/admin_test.go index 0c6c24b038..5473534521 100644 --- a/modules/setting/admin_test.go +++ b/modules/setting/admin_test.go @@ -6,7 +6,7 @@ package setting import ( "testing" - "code.gitea.io/gitea/modules/container" + "forgejo.org/modules/container" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/setting/api.go b/modules/setting/api.go index c36f05cfd1..18180c3d07 100644 --- a/modules/setting/api.go +++ b/modules/setting/api.go @@ -7,7 +7,7 @@ import ( "net/url" "path" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // API settings diff --git a/modules/setting/cache.go b/modules/setting/cache.go index bfa6ca0e61..cdc7e1a971 100644 --- a/modules/setting/cache.go +++ b/modules/setting/cache.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // Cache represents cache settings diff --git a/modules/setting/camo.go b/modules/setting/camo.go index 608ecf8363..5d31446a41 100644 --- a/modules/setting/camo.go +++ b/modules/setting/camo.go @@ -6,7 +6,7 @@ package setting import ( "strconv" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) var Camo = struct { diff --git a/modules/setting/config.go b/modules/setting/config.go index 03558574c2..6299640e61 100644 --- a/modules/setting/config.go +++ b/modules/setting/config.go @@ -6,8 +6,8 @@ package setting import ( "sync" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting/config" + "forgejo.org/modules/log" + "forgejo.org/modules/setting/config" ) type PictureStruct struct { diff --git a/modules/setting/config/value.go b/modules/setting/config/value.go index f0ec120544..3409f61b76 100644 --- a/modules/setting/config/value.go +++ b/modules/setting/config/value.go @@ -7,9 +7,9 @@ import ( "context" "sync" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) type CfgSecKey struct { diff --git a/modules/setting/config_env.go b/modules/setting/config_env.go index 2bc1a5c341..458dbb51bb 100644 --- a/modules/setting/config_env.go +++ b/modules/setting/config_env.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) const ( diff --git a/modules/setting/config_provider.go b/modules/setting/config_provider.go index 12cf36aa59..e93b21abda 100644 --- a/modules/setting/config_provider.go +++ b/modules/setting/config_provider.go @@ -12,8 +12,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" "gopkg.in/ini.v1" //nolint:depguard ) diff --git a/modules/setting/f3.go b/modules/setting/f3.go index 8669b70562..31d12294b8 100644 --- a/modules/setting/f3.go +++ b/modules/setting/f3.go @@ -3,7 +3,7 @@ package setting import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // Friendly Forge Format (F3) settings diff --git a/modules/setting/federation.go b/modules/setting/federation.go index edb18e0054..a0fdec228e 100644 --- a/modules/setting/federation.go +++ b/modules/setting/federation.go @@ -4,7 +4,7 @@ package setting import ( - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/42wim/httpsig" ) diff --git a/modules/setting/git.go b/modules/setting/git.go index 812c4fe6c9..f35592a924 100644 --- a/modules/setting/git.go +++ b/modules/setting/git.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // Git settings diff --git a/modules/setting/incoming_email.go b/modules/setting/incoming_email.go index 287e72941c..502be159a1 100644 --- a/modules/setting/incoming_email.go +++ b/modules/setting/incoming_email.go @@ -8,7 +8,7 @@ import ( "net/mail" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) var IncomingEmail = struct { diff --git a/modules/setting/indexer.go b/modules/setting/indexer.go index 4c4f63bc61..6a464ee0de 100644 --- a/modules/setting/indexer.go +++ b/modules/setting/indexer.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/gobwas/glob" ) diff --git a/modules/setting/lfs.go b/modules/setting/lfs.go index f55b0cdae9..3cd48c538b 100644 --- a/modules/setting/lfs.go +++ b/modules/setting/lfs.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/generate" + "forgejo.org/modules/generate" ) // LFS represents the server-side configuration for Git LFS. diff --git a/modules/setting/log.go b/modules/setting/log.go index a141188c0c..0747ac4dac 100644 --- a/modules/setting/log.go +++ b/modules/setting/log.go @@ -11,8 +11,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) type LogGlobalConfig struct { diff --git a/modules/setting/log_test.go b/modules/setting/log_test.go index 3134d3e75c..eda6dc36af 100644 --- a/modules/setting/log_test.go +++ b/modules/setting/log_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/json" + "forgejo.org/modules/log" "github.com/stretchr/testify/require" ) diff --git a/modules/setting/mailer.go b/modules/setting/mailer.go index 0804fbd717..b7f69c3492 100644 --- a/modules/setting/mailer.go +++ b/modules/setting/mailer.go @@ -11,7 +11,7 @@ import ( "text/template" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" shellquote "github.com/kballard/go-shellquote" ) diff --git a/modules/setting/markup.go b/modules/setting/markup.go index e893c1c2f1..90fc86b131 100644 --- a/modules/setting/markup.go +++ b/modules/setting/markup.go @@ -7,7 +7,7 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // ExternalMarkupRenderers represents the external markup renderers diff --git a/modules/setting/mirror.go b/modules/setting/mirror.go index 3aa530a1f4..58c57c5c95 100644 --- a/modules/setting/mirror.go +++ b/modules/setting/mirror.go @@ -6,7 +6,7 @@ package setting import ( "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // Mirror settings diff --git a/modules/setting/oauth2.go b/modules/setting/oauth2.go index 49288e2639..72500cfc89 100644 --- a/modules/setting/oauth2.go +++ b/modules/setting/oauth2.go @@ -8,8 +8,8 @@ import ( "path/filepath" "sync/atomic" - "code.gitea.io/gitea/modules/generate" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/generate" + "forgejo.org/modules/log" ) // OAuth2UsernameType is enum describing the way gitea 'name' should be generated from oauth2 data diff --git a/modules/setting/oauth2_test.go b/modules/setting/oauth2_test.go index 18252b2447..2fc5da6996 100644 --- a/modules/setting/oauth2_test.go +++ b/modules/setting/oauth2_test.go @@ -7,8 +7,8 @@ import ( "os" "testing" - "code.gitea.io/gitea/modules/generate" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/generate" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/setting/other.go b/modules/setting/other.go index 4ba494765b..db60cd2205 100644 --- a/modules/setting/other.go +++ b/modules/setting/other.go @@ -3,7 +3,7 @@ package setting -import "code.gitea.io/gitea/modules/log" +import "forgejo.org/modules/log" type OtherConfig struct { ShowFooterVersion bool diff --git a/modules/setting/path.go b/modules/setting/path.go index b99f1977bb..33f27db8fd 100644 --- a/modules/setting/path.go +++ b/modules/setting/path.go @@ -10,7 +10,7 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) var ( diff --git a/modules/setting/proxy.go b/modules/setting/proxy.go index 4ff420d090..7a9de9568b 100644 --- a/modules/setting/proxy.go +++ b/modules/setting/proxy.go @@ -6,7 +6,7 @@ package setting import ( "net/url" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // Proxy settings diff --git a/modules/setting/queue.go b/modules/setting/queue.go index 251a6c1e30..06d007c140 100644 --- a/modules/setting/queue.go +++ b/modules/setting/queue.go @@ -7,8 +7,8 @@ import ( "path/filepath" "runtime" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/json" + "forgejo.org/modules/log" ) // QueueSettings represent the settings for a queue from the ini diff --git a/modules/setting/repository.go b/modules/setting/repository.go index 93c01cb8fa..9efd674f8b 100644 --- a/modules/setting/repository.go +++ b/modules/setting/repository.go @@ -9,7 +9,7 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // enumerates all the policy repository creating diff --git a/modules/setting/security.go b/modules/setting/security.go index 678a57cb30..f3480d1056 100644 --- a/modules/setting/security.go +++ b/modules/setting/security.go @@ -8,10 +8,10 @@ import ( "os" "strings" - "code.gitea.io/gitea/modules/auth/password/hash" - "code.gitea.io/gitea/modules/generate" - "code.gitea.io/gitea/modules/keying" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/auth/password/hash" + "forgejo.org/modules/generate" + "forgejo.org/modules/keying" + "forgejo.org/modules/log" ) var ( diff --git a/modules/setting/server.go b/modules/setting/server.go index c874a58069..bff51f787d 100644 --- a/modules/setting/server.go +++ b/modules/setting/server.go @@ -13,9 +13,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) // Scheme describes protocol types diff --git a/modules/setting/server_test.go b/modules/setting/server_test.go index 4b95961a26..4450f99546 100644 --- a/modules/setting/server_test.go +++ b/modules/setting/server_test.go @@ -6,7 +6,7 @@ package setting import ( "testing" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/setting/service.go b/modules/setting/service.go index ff7c7c8829..851e465c72 100644 --- a/modules/setting/service.go +++ b/modules/setting/service.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/log" + "forgejo.org/modules/structs" "github.com/gobwas/glob" ) diff --git a/modules/setting/service_test.go b/modules/setting/service_test.go index e504bc68dc..4fc09021b6 100644 --- a/modules/setting/service_test.go +++ b/modules/setting/service_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/structs" "github.com/gobwas/glob" "github.com/stretchr/testify/assert" diff --git a/modules/setting/session.go b/modules/setting/session.go index 29ee67914d..e9ff9bf0bc 100644 --- a/modules/setting/session.go +++ b/modules/setting/session.go @@ -9,8 +9,8 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/json" + "forgejo.org/modules/log" ) // SessionConfig defines Session settings diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 487f2bb0d5..eb7b9e9373 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -11,9 +11,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/user" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/user" + "forgejo.org/modules/util" ) var ForgejoVersion = "1.0.0" diff --git a/modules/setting/setting_test.go b/modules/setting/setting_test.go index 6801844729..1fef9e068a 100644 --- a/modules/setting/setting_test.go +++ b/modules/setting/setting_test.go @@ -7,7 +7,7 @@ package setting import ( "testing" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/setting/ssh.go b/modules/setting/ssh.go index ea387e521f..86193bddb9 100644 --- a/modules/setting/ssh.go +++ b/modules/setting/ssh.go @@ -11,8 +11,8 @@ import ( "text/template" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" gossh "golang.org/x/crypto/ssh" ) diff --git a/modules/setting/time.go b/modules/setting/time.go index 97988211a9..1211fd475a 100644 --- a/modules/setting/time.go +++ b/modules/setting/time.go @@ -6,7 +6,7 @@ package setting import ( "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // DefaultUILocation is the location on the UI, so that we can display the time on UI. diff --git a/modules/setting/ui.go b/modules/setting/ui.go index 40f1812839..2e6a3df4c6 100644 --- a/modules/setting/ui.go +++ b/modules/setting/ui.go @@ -6,8 +6,8 @@ package setting import ( "time" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/container" + "forgejo.org/modules/log" ) // UI settings diff --git a/modules/setting/webhook.go b/modules/setting/webhook.go index dd60acf210..071b729aa1 100644 --- a/modules/setting/webhook.go +++ b/modules/setting/webhook.go @@ -6,7 +6,7 @@ package setting import ( "net/url" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) // Webhook settings diff --git a/modules/ssh/init.go b/modules/ssh/init.go index 21d4f89936..1ccd95b18b 100644 --- a/modules/ssh/init.go +++ b/modules/ssh/init.go @@ -11,8 +11,8 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) func Init() error { diff --git a/modules/ssh/ssh.go b/modules/ssh/ssh.go index 6ee10f718b..19cac0b603 100644 --- a/modules/ssh/ssh.go +++ b/modules/ssh/ssh.go @@ -21,12 +21,12 @@ import ( "sync" "syscall" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/gliderlabs/ssh" gossh "golang.org/x/crypto/ssh" diff --git a/modules/ssh/ssh_graceful.go b/modules/ssh/ssh_graceful.go index cad2c685bd..825313ab1c 100644 --- a/modules/ssh/ssh_graceful.go +++ b/modules/ssh/ssh_graceful.go @@ -4,9 +4,9 @@ package ssh import ( - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/gliderlabs/ssh" ) diff --git a/modules/storage/local.go b/modules/storage/local.go index 00c7f668aa..6f851983b1 100644 --- a/modules/storage/local.go +++ b/modules/storage/local.go @@ -11,9 +11,9 @@ import ( "os" "path/filepath" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) var _ ObjectStorage = &LocalStorage{} diff --git a/modules/storage/local_test.go b/modules/storage/local_test.go index e230323f67..d0dd3a6462 100644 --- a/modules/storage/local_test.go +++ b/modules/storage/local_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/modules/storage/minio.go b/modules/storage/minio.go index b02eec7aa0..ee545edc10 100644 --- a/modules/storage/minio.go +++ b/modules/storage/minio.go @@ -15,9 +15,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" diff --git a/modules/storage/minio_test.go b/modules/storage/minio_test.go index 9ce1dbc7b4..99f70c4565 100644 --- a/modules/storage/minio_test.go +++ b/modules/storage/minio_test.go @@ -10,7 +10,7 @@ import ( "os" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/minio/minio-go/v7" "github.com/stretchr/testify/assert" diff --git a/modules/storage/storage.go b/modules/storage/storage.go index 453d755fbb..db081e0768 100644 --- a/modules/storage/storage.go +++ b/modules/storage/storage.go @@ -11,8 +11,8 @@ import ( "net/url" "os" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) // ErrURLNotSupported represents url is not supported diff --git a/modules/storage/storage_test.go b/modules/storage/storage_test.go index 70bcd3155a..af3dd9520e 100644 --- a/modules/storage/storage_test.go +++ b/modules/storage/storage_test.go @@ -7,7 +7,7 @@ import ( "bytes" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/structs/attachment.go b/modules/structs/attachment.go index c97cdcb83c..0a3d4140c2 100644 --- a/modules/structs/attachment.go +++ b/modules/structs/attachment.go @@ -1,7 +1,7 @@ // Copyright 2017 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT -package structs // import "code.gitea.io/gitea/modules/structs" +package structs // import "forgejo.org/modules/structs" import ( "time" diff --git a/modules/structs/hook.go b/modules/structs/hook.go index 10b3a9db9b..1665dc4da6 100644 --- a/modules/structs/hook.go +++ b/modules/structs/hook.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) // ErrInvalidReceiveHook FIXME diff --git a/modules/structs/user.go b/modules/structs/user.go index 6c0468b5fb..49e4c495cf 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -6,7 +6,7 @@ package structs import ( "time" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) // User represents a user diff --git a/modules/svg/svg.go b/modules/svg/svg.go index 016e1dc08b..e00d8de2d1 100644 --- a/modules/svg/svg.go +++ b/modules/svg/svg.go @@ -9,9 +9,9 @@ import ( "path" "strings" - gitea_html "code.gitea.io/gitea/modules/html" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/public" + gitea_html "forgejo.org/modules/html" + "forgejo.org/modules/log" + "forgejo.org/modules/public" ) var svgIcons map[string]string diff --git a/modules/sync/status_pool.go b/modules/sync/status_pool.go index 6f075d54b7..f22e3e155b 100644 --- a/modules/sync/status_pool.go +++ b/modules/sync/status_pool.go @@ -6,7 +6,7 @@ package sync import ( "sync" - "code.gitea.io/gitea/modules/container" + "forgejo.org/modules/container" ) // StatusTable is a table maintains true/false values. diff --git a/modules/system/appstate_test.go b/modules/system/appstate_test.go index 2f44c7b845..8a444aff0f 100644 --- a/modules/system/appstate_test.go +++ b/modules/system/appstate_test.go @@ -6,8 +6,8 @@ package system import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/system/db.go b/modules/system/db.go index 17178283d9..384087ab4f 100644 --- a/modules/system/db.go +++ b/modules/system/db.go @@ -6,9 +6,9 @@ package system import ( "context" - "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/system" + "forgejo.org/modules/json" + "forgejo.org/modules/util" ) // DBStore can be used to store app state items in local filesystem diff --git a/modules/templates/base.go b/modules/templates/base.go index 2c2f35bbed..76d8e3271e 100644 --- a/modules/templates/base.go +++ b/modules/templates/base.go @@ -7,8 +7,8 @@ import ( "slices" "strings" - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/setting" ) func AssetFS() *assetfs.LayeredFS { diff --git a/modules/templates/dynamic.go b/modules/templates/dynamic.go index e1babd83c9..c5752c8c72 100644 --- a/modules/templates/dynamic.go +++ b/modules/templates/dynamic.go @@ -6,8 +6,8 @@ package templates import ( - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/setting" ) func BuiltinAssets() *assetfs.Layer { diff --git a/modules/templates/eval/eval.go b/modules/templates/eval/eval.go index 5d4ac915b9..487a1de4b0 100644 --- a/modules/templates/eval/eval.go +++ b/modules/templates/eval/eval.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) type Num struct { diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 023ba60fa9..02b175e6f6 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -14,14 +14,14 @@ import ( "strings" "time" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/svg" - "code.gitea.io/gitea/modules/templates/eval" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/gitdiff" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + "forgejo.org/modules/svg" + "forgejo.org/modules/templates/eval" + "forgejo.org/modules/util" + "forgejo.org/services/gitdiff" ) // NewFuncMap returns functions for injecting to templates diff --git a/modules/templates/htmlrenderer.go b/modules/templates/htmlrenderer.go index 55a55dd7f4..d60397df08 100644 --- a/modules/templates/htmlrenderer.go +++ b/modules/templates/htmlrenderer.go @@ -19,12 +19,12 @@ import ( "sync/atomic" texttemplate "text/template" - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates/scopedtmpl" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates/scopedtmpl" + "forgejo.org/modules/util" ) type TemplateExecutor scopedtmpl.TemplateExecutor diff --git a/modules/templates/htmlrenderer_test.go b/modules/templates/htmlrenderer_test.go index a1d3783a75..7373605744 100644 --- a/modules/templates/htmlrenderer_test.go +++ b/modules/templates/htmlrenderer_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/assetfs" + "forgejo.org/modules/assetfs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/templates/mailer.go b/modules/templates/mailer.go index ee79755dbb..a40728d7c7 100644 --- a/modules/templates/mailer.go +++ b/modules/templates/mailer.go @@ -11,9 +11,9 @@ import ( "strings" texttmpl "text/template" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) var mailSubjectSplit = regexp.MustCompile(`(?m)^-{3,}\s*$`) diff --git a/modules/templates/main_test.go b/modules/templates/main_test.go index 977699f9c7..946bc603f6 100644 --- a/modules/templates/main_test.go +++ b/modules/templates/main_test.go @@ -7,12 +7,12 @@ import ( "context" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/markup" + "forgejo.org/models/unittest" + "forgejo.org/modules/markup" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/forgefed" - _ "code.gitea.io/gitea/models/issues" + _ "forgejo.org/models" + _ "forgejo.org/models/forgefed" + _ "forgejo.org/models/issues" ) func TestMain(m *testing.M) { diff --git a/modules/templates/static.go b/modules/templates/static.go index b5a7e561ec..776548c853 100644 --- a/modules/templates/static.go +++ b/modules/templates/static.go @@ -8,8 +8,8 @@ package templates import ( "time" - "code.gitea.io/gitea/modules/assetfs" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/assetfs" + "forgejo.org/modules/timeutil" ) // GlobalModTime provide a global mod time for embedded asset files diff --git a/modules/templates/util_avatar.go b/modules/templates/util_avatar.go index a468361101..93ebec51e4 100644 --- a/modules/templates/util_avatar.go +++ b/modules/templates/util_avatar.go @@ -9,13 +9,13 @@ import ( "html" "html/template" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/avatars" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - gitea_html "code.gitea.io/gitea/modules/html" - "code.gitea.io/gitea/modules/setting" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/avatars" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + gitea_html "forgejo.org/modules/html" + "forgejo.org/modules/setting" ) type AvatarUtils struct { diff --git a/modules/templates/util_date.go b/modules/templates/util_date.go index f521b39b79..bb83bf692a 100644 --- a/modules/templates/util_date.go +++ b/modules/templates/util_date.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/translation" ) type DateUtils struct{} diff --git a/modules/templates/util_date_test.go b/modules/templates/util_date_test.go index 2f5c79f762..37caf0d422 100644 --- a/modules/templates/util_date_test.go +++ b/modules/templates/util_date_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/templates/util_dict.go b/modules/templates/util_dict.go index 8d6376b522..9d9af77fad 100644 --- a/modules/templates/util_dict.go +++ b/modules/templates/util_dict.go @@ -9,9 +9,9 @@ import ( "html/template" "reflect" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/container" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" ) func dictMerge(base map[string]any, arg any) bool { diff --git a/modules/templates/util_json.go b/modules/templates/util_json.go index 71a4e23d36..3bc80e8f21 100644 --- a/modules/templates/util_json.go +++ b/modules/templates/util_json.go @@ -6,7 +6,7 @@ package templates import ( "bytes" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) type JsonUtils struct{} //nolint:revive diff --git a/modules/templates/util_misc.go b/modules/templates/util_misc.go index 774385483b..12a65c87da 100644 --- a/modules/templates/util_misc.go +++ b/modules/templates/util_misc.go @@ -12,14 +12,14 @@ import ( "strings" "time" - activities_model "code.gitea.io/gitea/models/activities" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - giturl "code.gitea.io/gitea/modules/git/url" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/svg" + activities_model "forgejo.org/models/activities" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + giturl "forgejo.org/modules/git/url" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" + "forgejo.org/modules/svg" "github.com/editorconfig/editorconfig-core-go/v2" ) diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go index 3c337ae895..a4d7a82eea 100644 --- a/modules/templates/util_render.go +++ b/modules/templates/util_render.go @@ -14,14 +14,14 @@ import ( "strings" "unicode" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/emoji" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/emoji" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" ) // RenderCommitMessage renders commit message with XSS-safe and special links. diff --git a/modules/templates/util_render_test.go b/modules/templates/util_render_test.go index 25a41f02c0..20c39eb417 100644 --- a/modules/templates/util_render_test.go +++ b/modules/templates/util_render_test.go @@ -8,10 +8,10 @@ import ( "html/template" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + "forgejo.org/modules/translation" "github.com/stretchr/testify/assert" ) diff --git a/modules/templates/util_string.go b/modules/templates/util_string.go index 685759dcbc..2d255e54a7 100644 --- a/modules/templates/util_string.go +++ b/modules/templates/util_string.go @@ -8,7 +8,7 @@ import ( "html/template" "strings" - "code.gitea.io/gitea/modules/base" + "forgejo.org/modules/base" ) type StringUtils struct{} diff --git a/modules/test/logchecker.go b/modules/test/logchecker.go index 0f12257f3e..8e8fc32216 100644 --- a/modules/test/logchecker.go +++ b/modules/test/logchecker.go @@ -11,7 +11,7 @@ import ( "sync/atomic" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) type LogChecker struct { diff --git a/modules/test/logchecker_test.go b/modules/test/logchecker_test.go index 0f410fed12..d81142bf1c 100644 --- a/modules/test/logchecker_test.go +++ b/modules/test/logchecker_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/stretchr/testify/assert" ) diff --git a/modules/test/utils.go b/modules/test/utils.go index 3d884b6cbe..f60bad022e 100644 --- a/modules/test/utils.go +++ b/modules/test/utils.go @@ -8,7 +8,7 @@ import ( "net/http/httptest" "strings" - "code.gitea.io/gitea/modules/json" + "forgejo.org/modules/json" ) // RedirectURL returns the redirect URL of a http response. diff --git a/modules/testlogger/testlogger.go b/modules/testlogger/testlogger.go index caa8abd07b..b5f196ad4b 100644 --- a/modules/testlogger/testlogger.go +++ b/modules/testlogger/testlogger.go @@ -16,9 +16,9 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" + "forgejo.org/modules/util" ) var ( diff --git a/modules/timeutil/executable.go b/modules/timeutil/executable.go index 57ae8b2a9d..7b30176df0 100644 --- a/modules/timeutil/executable.go +++ b/modules/timeutil/executable.go @@ -9,7 +9,7 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" ) var ( diff --git a/modules/timeutil/since.go b/modules/timeutil/since.go index 2c89ae38d5..b0bbe25f98 100644 --- a/modules/timeutil/since.go +++ b/modules/timeutil/since.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/translation" ) // Seconds-based time units diff --git a/modules/timeutil/since_test.go b/modules/timeutil/since_test.go index 40fefe8700..b47b2c76dd 100644 --- a/modules/timeutil/since_test.go +++ b/modules/timeutil/since_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" "github.com/stretchr/testify/assert" ) diff --git a/modules/timeutil/timestamp.go b/modules/timeutil/timestamp.go index 27a80b6682..783ccba30b 100644 --- a/modules/timeutil/timestamp.go +++ b/modules/timeutil/timestamp.go @@ -6,7 +6,7 @@ package timeutil import ( "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // TimeStamp defines a timestamp diff --git a/modules/timeutil/timestampnano.go b/modules/timeutil/timestampnano.go index 4a9f7955b9..e2e86b863f 100644 --- a/modules/timeutil/timestampnano.go +++ b/modules/timeutil/timestampnano.go @@ -6,7 +6,7 @@ package timeutil import ( "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // TimeStampNano is for nano time in database, do not use it unless there is a real requirement. diff --git a/modules/translation/i18n/dummy_test.go b/modules/translation/i18n/dummy_test.go index 7bc29ef839..1df3d0c348 100644 --- a/modules/translation/i18n/dummy_test.go +++ b/modules/translation/i18n/dummy_test.go @@ -6,7 +6,7 @@ package i18n_test import ( "testing" - "code.gitea.io/gitea/modules/translation/i18n" + "forgejo.org/modules/translation/i18n" "github.com/stretchr/testify/assert" ) diff --git a/modules/translation/i18n/errors.go b/modules/translation/i18n/errors.go index ee9436a8f7..63a5f48dfa 100644 --- a/modules/translation/i18n/errors.go +++ b/modules/translation/i18n/errors.go @@ -4,7 +4,7 @@ package i18n import ( - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) var ( diff --git a/modules/translation/i18n/localestore.go b/modules/translation/i18n/localestore.go index 0cfa96810e..823cadf8f9 100644 --- a/modules/translation/i18n/localestore.go +++ b/modules/translation/i18n/localestore.go @@ -8,10 +8,10 @@ import ( "html/template" "slices" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // This file implements the static LocaleStore that will not watch for changes diff --git a/modules/translation/plural_rules.go b/modules/translation/plural_rules.go index b8c00ceef7..7e9ae39111 100644 --- a/modules/translation/plural_rules.go +++ b/modules/translation/plural_rules.go @@ -12,8 +12,8 @@ package translation import ( "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/translation/i18n" + "forgejo.org/modules/log" + "forgejo.org/modules/translation/i18n" ) // The constants refer to indices below in `PluralRules` and also in i18n.js, keep them in sync! diff --git a/modules/translation/translation.go b/modules/translation/translation.go index 7be77536ca..315e65e53d 100644 --- a/modules/translation/translation.go +++ b/modules/translation/translation.go @@ -10,11 +10,11 @@ import ( "strings" "sync" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/options" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation/i18n" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/options" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation/i18n" + "forgejo.org/modules/util" "github.com/dustin/go-humanize" "golang.org/x/text/language" @@ -27,6 +27,10 @@ type contextKey struct{} var ContextKey any = &contextKey{} // Locale represents an interface to translation +// +// If this gets modified, remember to also adjust +// build/lint-locale-usage/lint-locale-usage.go's InitLocaleTrFunctions(), +// which requires to know in what argument positions `trKey`'s are given. type Locale interface { Language() string TrString(string, ...any) string diff --git a/modules/translation/translation_test.go b/modules/translation/translation_test.go index 5b3eefb355..356b85f946 100644 --- a/modules/translation/translation_test.go +++ b/modules/translation/translation_test.go @@ -8,7 +8,7 @@ package translation import ( "testing" - "code.gitea.io/gitea/modules/translation/i18n" + "forgejo.org/modules/translation/i18n" "github.com/stretchr/testify/assert" ) diff --git a/modules/turnstile/turnstile.go b/modules/turnstile/turnstile.go index 38d0233446..31ba256195 100644 --- a/modules/turnstile/turnstile.go +++ b/modules/turnstile/turnstile.go @@ -11,8 +11,8 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" ) // Response is the structure of JSON returned from API diff --git a/modules/typesniffer/typesniffer.go b/modules/typesniffer/typesniffer.go index 212e50c4f1..a8fc70e54c 100644 --- a/modules/typesniffer/typesniffer.go +++ b/modules/typesniffer/typesniffer.go @@ -11,7 +11,7 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // Use at most this many bytes to determine Content Type. diff --git a/modules/updatechecker/update_checker.go b/modules/updatechecker/update_checker.go index 0c93f08d21..b0932ba663 100644 --- a/modules/updatechecker/update_checker.go +++ b/modules/updatechecker/update_checker.go @@ -11,10 +11,10 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/system" + "forgejo.org/modules/json" + "forgejo.org/modules/proxy" + "forgejo.org/modules/setting" + "forgejo.org/modules/system" "github.com/hashicorp/go-version" ) diff --git a/modules/util/rotatingfilewriter/writer.go b/modules/util/rotatingfilewriter/writer.go index c595f49c49..ff234eea93 100644 --- a/modules/util/rotatingfilewriter/writer.go +++ b/modules/util/rotatingfilewriter/writer.go @@ -14,8 +14,8 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/graceful/releasereopen" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/graceful/releasereopen" + "forgejo.org/modules/util" ) type Options struct { diff --git a/modules/util/util.go b/modules/util/util.go index 88ac07567b..da405c9c4b 100644 --- a/modules/util/util.go +++ b/modules/util/util.go @@ -14,7 +14,7 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/modules/optional" "golang.org/x/crypto/ssh" "golang.org/x/text/cases" diff --git a/modules/util/util_test.go b/modules/util/util_test.go index 7344c8fbb7..5e0c4a9a0b 100644 --- a/modules/util/util_test.go +++ b/modules/util/util_test.go @@ -11,9 +11,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/optional" + "forgejo.org/modules/test" + "forgejo.org/modules/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/validation/binding.go b/modules/validation/binding.go index 006fbfafc1..f4f82278bd 100644 --- a/modules/validation/binding.go +++ b/modules/validation/binding.go @@ -8,9 +8,9 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/auth" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/auth" + "forgejo.org/modules/git" + "forgejo.org/modules/util" "code.forgejo.org/go-chi/binding" "github.com/gobwas/glob" diff --git a/modules/validation/email.go b/modules/validation/email.go index 326e93378a..fb563c2b81 100644 --- a/modules/validation/email.go +++ b/modules/validation/email.go @@ -11,8 +11,8 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/gobwas/glob" ) diff --git a/modules/validation/helpers.go b/modules/validation/helpers.go index 2f88fcbc60..1f573564e6 100644 --- a/modules/validation/helpers.go +++ b/modules/validation/helpers.go @@ -9,7 +9,7 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) var externalTrackerRegex = regexp.MustCompile(`({?)(?:user|repo|index)+?(}?)`) diff --git a/modules/validation/helpers_test.go b/modules/validation/helpers_test.go index a1bdf2a29c..01a17f0d6b 100644 --- a/modules/validation/helpers_test.go +++ b/modules/validation/helpers_test.go @@ -6,7 +6,7 @@ package validation import ( "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/modules/validation/validatable.go b/modules/validation/validatable.go index 94b5cc135c..bc565bd194 100644 --- a/modules/validation/validatable.go +++ b/modules/validation/validatable.go @@ -10,7 +10,7 @@ import ( "strings" "unicode/utf8" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" ) // ErrNotValid represents an validation error diff --git a/modules/validation/validatable_test.go b/modules/validation/validatable_test.go index 919f5a3183..0802d5cc92 100644 --- a/modules/validation/validatable_test.go +++ b/modules/validation/validatable_test.go @@ -6,7 +6,7 @@ package validation import ( "testing" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" ) type Sut struct { diff --git a/modules/web/handler.go b/modules/web/handler.go index 728cc5a160..4a7f28b1fa 100644 --- a/modules/web/handler.go +++ b/modules/web/handler.go @@ -9,9 +9,9 @@ import ( "net/http" "reflect" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/web/routing" - "code.gitea.io/gitea/modules/web/types" + "forgejo.org/modules/log" + "forgejo.org/modules/web/routing" + "forgejo.org/modules/web/types" ) var responseStatusProviders = map[reflect.Type]func(req *http.Request) types.ResponseStatusProvider{} diff --git a/modules/web/middleware/binding.go b/modules/web/middleware/binding.go index 4e43f6d4b3..9083e9b485 100644 --- a/modules/web/middleware/binding.go +++ b/modules/web/middleware/binding.go @@ -8,10 +8,10 @@ import ( "reflect" "strings" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" "code.forgejo.org/go-chi/binding" ) diff --git a/modules/web/middleware/cookie.go b/modules/web/middleware/cookie.go index f2d25f5b1c..3bfaeabe69 100644 --- a/modules/web/middleware/cookie.go +++ b/modules/web/middleware/cookie.go @@ -9,8 +9,8 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/session" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/session" + "forgejo.org/modules/setting" ) // SetRedirectToCookie convenience function to set the RedirectTo cookie consistently diff --git a/modules/web/middleware/data.go b/modules/web/middleware/data.go index d33cf966c4..8db8938814 100644 --- a/modules/web/middleware/data.go +++ b/modules/web/middleware/data.go @@ -7,7 +7,7 @@ import ( "context" "time" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // ContextDataStore represents a data store diff --git a/modules/web/middleware/locale.go b/modules/web/middleware/locale.go index 9653a6f349..565fb2f502 100644 --- a/modules/web/middleware/locale.go +++ b/modules/web/middleware/locale.go @@ -6,8 +6,8 @@ package middleware import ( "net/http" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/translation/i18n" + "forgejo.org/modules/translation" + "forgejo.org/modules/translation/i18n" "golang.org/x/text/language" ) diff --git a/modules/web/route.go b/modules/web/route.go index eda6871d85..046c9f4ba7 100644 --- a/modules/web/route.go +++ b/modules/web/route.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/modules/web/middleware" + "forgejo.org/modules/web/middleware" "code.forgejo.org/go-chi/binding" "github.com/go-chi/chi/v5" diff --git a/modules/web/routemock.go b/modules/web/routemock.go index cb41f63b91..33d2ad06eb 100644 --- a/modules/web/routemock.go +++ b/modules/web/routemock.go @@ -6,7 +6,7 @@ package web import ( "net/http" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) // MockAfterMiddlewares is a general mock point, it's between middlewares and the handler diff --git a/modules/web/routemock_test.go b/modules/web/routemock_test.go index cd99b99323..43d4b28830 100644 --- a/modules/web/routemock_test.go +++ b/modules/web/routemock_test.go @@ -8,7 +8,7 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/modules/web/routing/logger.go b/modules/web/routing/logger.go index 5f3a7592af..760e092914 100644 --- a/modules/web/routing/logger.go +++ b/modules/web/routing/logger.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/web/types" + "forgejo.org/modules/log" + "forgejo.org/modules/web/types" ) // NewLoggerHandler is a handler that will log routing to the router log taking account of diff --git a/modules/web/routing/logger_manager.go b/modules/web/routing/logger_manager.go index aa25ec3a27..4b12419b44 100644 --- a/modules/web/routing/logger_manager.go +++ b/modules/web/routing/logger_manager.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/process" + "forgejo.org/modules/graceful" + "forgejo.org/modules/process" ) // Event indicates when the printer is triggered diff --git a/options/locale/locale_da.ini b/options/locale/locale_da.ini index 87bd4dae2b..5bbd535b2a 100644 --- a/options/locale/locale_da.ini +++ b/options/locale/locale_da.ini @@ -158,7 +158,7 @@ exact_tooltip = Medtag kun resultater, der matcher den nøjagtige søgeterm regexp = RegExp regexp_tooltip = Fortolk søgetermen som et regulært udtryk org_kind = Søg i organisationer… -team_kind = Søg efter hold… +team_kind = Søg efter teams… code_kind = Søg kode… code_search_by_git_grep = Aktuelle kodesøgeresultater leveres af "git grep". Der kan være bedre resultater, hvis webstedsadministratoren aktiverer kodeindeksering. package_kind = Søg pakker… @@ -186,7 +186,7 @@ number_of_contributions_in_the_last_12_months = %s bidrag inden for de sidste 12 contributions_zero = Ingen bidrag contributions_format = {contributions} på {month} {day}, {year} contributions_one = bidrag -contributions_few = bidragene +contributions_few = bidrag less = Mindre more = Mere @@ -200,7 +200,7 @@ buttons.link.tooltip = Tilføj et link buttons.list.unordered.tooltip = Tilføj en punktliste buttons.list.task.tooltip = Tilføj en liste over opgaver buttons.list.ordered.tooltip = Tilføj en nummereret liste -buttons.mention.tooltip = Nævn en bruger eller et hold +buttons.mention.tooltip = Nævn en bruger eller et team buttons.ref.tooltip = Henvis til et problem eller pull-anmodning buttons.enable_monospace_font = Aktiver monospace-skrifttype buttons.disable_monospace_font = Deaktiver monospace-skrifttype @@ -363,7 +363,7 @@ my_repos = Depoter my_orgs = Organisationer view_home = Se %s filter = Andre filtre -filter_by_team_repositories = Filtrer efter holddepoter +filter_by_team_repositories = Filtrer efter team depoter feed_of = Feed af "%s" show_archived = Arkiveret show_both_archived_unarchived = Viser både arkiveret og ikke-arkiveret @@ -530,7 +530,7 @@ repo.collaborator.added.subject = %s føjede dig til %s som samarbejdspartner repo.collaborator.added.text = Du er blevet tilføjet som samarbejdspartner til depotet: team_invite.subject = %[1]s har inviteret dig til at deltage i %[2]s organisationen team_invite.text_1 = %[1]s har inviteret dig til at deltage i teamet %[2]s i organisationen %[3]s. -team_invite.text_2 = Klik venligst på følgende link for at blive medlem af holdet: +team_invite.text_2 = Klik venligst på følgende link for at blive medlem af teamet: team_invite.text_3 = Note: Denne invitation var beregnet til %[1]s. Hvis du ikke forventede denne invitation, kan du ignorere denne e-mail. [modal] @@ -553,7 +553,7 @@ Email = E-mailadresse Password = Adgangskode Retype = Bekræft adgangskode PayloadUrl = Payload URL -TeamName = Holdnavn +TeamName = Team navn AuthName = Autorisationsnavn AdminEmail = Admin email To = Gren navn @@ -2525,10 +2525,216 @@ settings.ignore_stale_approvals_desc = Tæl ikke godkendelser, der er foretaget settings.require_signed_commits = Kræv underskrevne commits settings.remove_protected_branch_success = Grenbeskyttelse for reglen "%s" er blevet fjernet. settings.enforce_on_admins = Håndhæv denne regel for depotadministratorer +settings.matrix.homeserver_url = Hjemmeserver URL +settings.matrix.room_id = Rum ID +branch.branch_name_conflict = Gren navn "%s" er i konflikt med den allerede eksisterende gren "%s". +release.tag_name_protected = Tagnavnet er beskyttet. +branch.name = Gren navn +settings.archive.error = Der opstod en fejl under forsøg på at arkivere depotet. Se loggen for flere detaljer. +settings.archive.error_ismirror = Du kan ikke arkivere et spejlet depot. +settings.unarchive.button = Fjern arkivering af depot +settings.unarchive.header = Fjern arkivering af dette depot +settings.lfs = LFS +settings.lfs_filelist = LFS-filer gemt i dette depot +settings.lfs_no_lfs_files = Ingen LFS-filer gemt i dette depot +settings.lfs_locks = Låse +settings.lfs_findcommits = Find commits +settings.lfs_lfs_file_no_commits = Ingen commits fundet for denne LFS-fil +settings.lfs_noattribute = Denne sti har ikke den låsbare attribut i standardgrenen +settings.lfs_delete = Slet LFS-fil med OID %s +settings.lfs_delete_warning = Sletning af en LFS-fil kan forårsage "objekt findes ikke"-fejl ved checkout. Er du sikker? +settings.lfs_findpointerfiles = Find pointer-filer +diff.download_patch = Download patch-fil +diff.whitespace_ignore_at_eol = Ignorer ændringer i blanke mellemrum på EOL +diff.stats_desc = %d ændrede filer med %d tilføjelser og %d sletninger +diff.stats_desc_file = %d ændringer: %d tilføjelser og %d sletninger +diff.bin = BIN +diff.file_suppressed = Filforskellen er undertrykt, fordi den er for stor +diff.generated = genereret +diff.vendored = forhandlet +diff.comment.add_line_comment = Tilføj linjekommentar +diff.comment.placeholder = Efterlad en kommentar +diff.comment.markdown_info = Styling med Markdown understøttes. +diff.comment.add_single_comment = Tilføj en enkelt kommentar +diff.comment.add_review_comment = Tilføj kommentar +diff.has_escaped = Denne linje har skjulte Unicode-tegn +release.tag_name = Tag navn +release.tag_helper_new = Nyt tag. Dette tag vil blive oprettet fra målet. +release.deletion_tag_desc = Vil slette dette tag fra depotet. Depotindhold og -historik forbliver uændret. Vil du fortsætte? +release.tag_already_exist = Dette tagnavn findes allerede. +release.add_tag_msg = Brug udgivelsens titel og indhold som tagmeddelelse. +release.tags_for = Tags for %s +release.asset_external_url = Ekstern URL +release.add_external_asset = Tilføj eksternt aktiv +branch.already_exists = En gren med navnet "%s" eksisterer allerede. +branch.tag_collision = Gren "%s" kan ikke oprettes, da et tag med samme navn allerede eksisterer i depotet. +releases.desc = Spor projektversioner og downloads. +release.detail = Udgivelsesdetaljer +release.tags = Tags +release.new_release = Ny udgivelse +release.stable = Stabil +release.compare = Sammenlign +release.deletion_desc = Sletning af en udgivelse fjerner den kun fra Forgejo. Det vil ikke påvirke Git-tagget, indholdet af dit depot eller dets historie. Vil du fortsætte? +release.deletion_tag_success = Tagget er blevet slettet. +release.tag_name_already_exist = Der findes allerede en udgivelse med dette tagnavn. +release.tag_name_invalid = Tagnavnet er ikke gyldigt. +release.downloads = Downloads +release.system_generated = Denne vedhæftede fil genereres automatisk. +release.invalid_external_url = Ugyldig ekstern URL: "%s" +branch.deleted_by = Slettet af %s +diff.comment.start_review = Start anmeldelse +diff.comment.reply = Svar +diff.review.comment = Kommentar +diff.review.approve = Godkend +diff.review.self_reject = Forfattere af pull-anmodninger kan ikke anmode om ændringer på deres egen pull-anmodning +diff.review.reject = Anmod om ændringer +diff.review.self_approve = Forfattere af pull-anmodninger kan ikke godkende deres egen pull-anmodning +diff.committed_by = committed af +diff.protected = Beskyttet +diff.image.side_by_side = Side om side +diff.image.swipe = Swipe +diff.image.overlay = Overlejring +release.prerelease = Forhåndsudgivelse +settings.tags.protection.allowed.teams = Tilladte hold +settings.tags.protection.create = Tilføj regel +settings.tags.protection.none = Der er ingen beskyttede tags. +settings.tags.protection.pattern.description = Du kan bruge et enkelt navn eller et globmønster eller regulært udtryk til at matche flere tags. Læs mere i guiden til beskyttede tags. +settings.thread_id = Thread ID +settings.matrix.message_type = Meddelelsestype +settings.matrix.access_token_helper = Det anbefales at opsætte en dedikeret Matrix-konto til dette. Adgangstokenet kan hentes fra Element-webklienten (i en privat/inkognito-fane) > Brugermenu (øverst til venstre) > Alle indstillinger > Hjælp og om > Avanceret > Adgangstoken (lige under hjemmeserverens URL). Luk privat-/inkognitofanen (logging ud ville ugyldiggøre tokenet). +settings.lfs_invalid_locking_path = Ugyldig sti: %s +settings.lfs_invalid_lock_directory = Kan ikke låse mappe: %s +diff.options_button = Diff muligheder +release.hide_archive_links = Skjul automatisk genererede arkiver +release.hide_archive_links_helper = Skjul automatisk genererede kildekodearkiver for denne udgivelse. For eksempel hvis du uploader din egen. +release.add_tag = Opret tag +release.releases_for = Udgivelser for %s +branch.delete_branch_has_new_commits = Gren "%s" kan ikke slettes, fordi nye commits er blevet tilføjet efter fletning. +branch.create_branch = Opret gren %s +branch.create_from = fra "%s" +branch.create_success = Gren "%s" er blevet oprettet. +branch.branch_already_exists = Gren "%s" findes allerede i dette depot. +release.releases = Udgivelser +release.draft = Udkast +release.type_attachment = Vedhæftning +release.type_external_asset = Eksternt aktiv +release.asset_name = Aktivets navn +release.tag_helper_existing = Eksisterende tag. +release.title_empty = Titel må ikke være tom. +release.message = Beskriv denne udgivelse +settings.bot_token = Bot token +settings.chat_id = Chat ID +diff.show_file_tree = Vis filtræ +diff.hide_file_tree = Skjul filtræ +release.ahead.commits = %d commits +release.ahead.target = til %s siden denne udgivelse +release.source_code = Kildekode +release.edit_subheader = Udgivelser organiserer projektversioner. +release.tag_helper = Vælg et eksisterende tag, eller opret et nyt tag. +release.target = Mål +tag.ahead.target = til %s siden dette tag +release.new_subheader = Udgivelser organiserer projektversioner. +release.title = Udgivelsestitel +release.prerelease_desc = Markér som pre-release +release.prerelease_helper = Marker denne udgivelse uegnet til produktionsbrug. +release.deletion_success = Udgivelsen er blevet slettet. +release.summary_card_alt = Oversigtskort for en udgivelse med titlen "%s" i depots %s +settings.unarchive.text = Fjernelse af arkivering af depotet vil genoprette dens evne til at modtage commits og push, såvel som nye problemer og pull-anmodninger. +settings.unarchive.success = Depotet blev fjernet fra arkivet. +settings.unarchive.error = Der opstod en fejl under forsøg på at fjerne depotet fra arkivet. Se loggen for flere detaljer. +settings.update_avatar_success = Depot avataren er blevet opdateret. +branch.restore_success = Gren "%s" er blevet gendannet. +branch.restore_failed = Kunne ikke gendanne grenen "%s". +branch.protected_deletion_failed = Gren "%s" er beskyttet. Det kan ikke slettes. +branch.default_deletion_failed = Gren "%s" er standardgrenen. Det kan ikke slettes. +tag.create_tag_operation = Opret tag +tag.confirm_create_tag = Opret tag +settings.tags.protection.allowed.noone = Ingen +settings.archive.header = Arkivere dette depot +settings.matrix.room_id_helper = Rum-id'et kan hentes fra Element-webklienten > Rumindstillinger > Avanceret > Internt rum-id. Eksempel: %s. +settings.archive.text = Arkivering af depotet vil gøre den fuldstændig skrivebeskyttet. Det vil blive skjult fra dashboardet. Ingen (ikke engang dig!) vil være i stand til at foretage nye commits eller åbne nogen problemer eller pull-anmodninger. +settings.archive.success = Depotet blev arkiveret. +settings.archive.button = Arkivere depot +settings.rename_branch_success = Grenen %s blev omdøbt til %s. +diff.whitespace_ignore_amount_changes = Ignorer ændringer i mængden af blanke mellemrum +diff.download_diff = Download diff fil +diff.show_split_view = Opdelt visning +diff.show_unified_view = Samlet visning +diff.whitespace_button = Blanke mellemrum +diff.whitespace_show_everything = Vis alle ændringer +diff.whitespace_ignore_all_whitespace = Ignorer blanke mellemrum, når du sammenligner linjer +diff.too_many_files = Nogle filer blev ikke vist, fordi der er ændret for mange filer i denne diff +diff.show_more = Vis mere +diff.load = Load diff +settings.archive.branchsettings_unavailable = Indstillinger for gren er ikke tilgængelige i arkiverede depoter. +settings.archive.tagsettings_unavailable = Tag-indstillinger er ikke tilgængelige i arkiverede depoter. +settings.archive.mirrors_unavailable = Spejle er ikke tilgængelige i arkiverede depoter. +settings.lfs_lock_already_exists = Låsen findes allerede: %s +settings.lfs_pointers.associateAccessible = Tilknyt tilgængelige %d OID'er +settings.rename_branch_failed_protected = Kan ikke omdøbe grenen %s, fordi den er en beskyttet gren. +settings.rename_branch_failed_exist = Kan ikke omdøbe grenen, fordi målgrenen %s eksisterer. +settings.rename_branch_failed_not_exist = Kan ikke omdøbe grenen %s, fordi den ikke eksisterer. +settings.rename_branch = Omdøb gren +diff.browse_source = Gennemse kilde +diff.parent = forælder +diff.commit = commit +diff.git-notes = Noter +diff.git-notes.add = Tilføj note +diff.git-notes.remove-header = Fjern note +diff.git-notes.remove-body = Denne note vil blive fjernet. +diff.data_not_available = Diff-indhold er ikke tilgængeligt +diff.bin_not_shown = Binær fil vises ikke. +diff.view_file = Se fil +diff.file_before = Før +diff.file_after = Efter +diff.file_image_width = Bredde +diff.file_image_height = Højde +diff.file_byte_size = Størrelse +diff.file_suppressed_line_too_long = Filforskellen er undertrykt, fordi en eller flere linjer er for lange +diff.review = Afslut gennemgangen +diff.review.header = Send anmeldelse +diff.review.placeholder = Gennemgå kommentar +release.download_count_one = %s download +release.download_count_few = %s downloads +topic.format_prompt = Emner skal starte med et bogstav eller tal, kan indeholde bindestreger ("-") og prikker ("."), kan være op til 35 tegn lange. Bogstaver skal være små. +branch.warning_rename_default_branch = Du omdøber standardgrenen. +topic.done = Færdig +topic.count_prompt = Du kan ikke vælge mere end 25 emner +find_file.go_to_file = Find en fil +find_file.no_matching = Ingen matchende fil fundet +topic.manage_topics = Administrer emner +tag.create_tag_from = Opret nyt tag fra "%s" +tag.create_success = Tag "%s" er blevet oprettet. +branch.restore = Gendan grenen "%s" +branch.new_branch_from = Opret ny gren fra "%s" +branch.create_branch_operation = Opret gren +branch.renamed = Gren %s blev omdøbt til %s. +branch.new_branch = Opret ny gren +tag.create_tag = Opret tag %s +error.csv.too_large = Denne fil kan ikke gengives, fordi den er for stor. +error.csv.unexpected = Denne fil kan ikke gengives, fordi den indeholder et uventet tegn i linje %d og kolonne %d. +error.csv.invalid_field_count = Denne fil kan ikke gengives, fordi den har et forkert antal felter i linje %d. +branch.download = Download gren "%s" +branch.rename = Omdøb grenen "%s" +branch.included_desc = Denne gren er en del af standardgrenen +branch.included = Inkluderet +error.broken_git_hook = Git hooks af dette depot ser ud til at være brudt. Følg venligst dokumentationen for at rette dem, og push derefter på nogle commits for at opdatere statussen. +branch.create_new_branch = Opret en gren fra gren: +branch.confirm_create_branch = Opret gren +branch.rename_branch_to = Omdøb "%s" til: [notification] watching = Overvåger read = Læs +notifications = Notifikationer +no_unread = Ingen ulæste notifikationer. +unread = Ulæst +mark_as_read = Markér som læst +no_read = Ingen læste notifikationer. +mark_all_as_read = Markér alle som læste +mark_as_unread = Markér som ulæst +subscriptions = Abonnementer +no_subscriptions = Ingen abonnementer [action] watched_repo = begyndte at overvåge %[2]s @@ -2561,6 +2767,93 @@ settings.location = Lokation settings.permission = Tilladelser settings.visibility = Synlighed members.remove = Slet +org_name_holder = Organisationens navn +create_team = Opret team +org_full_name_holder = Organisationens fulde navn +open_dashboard = Åbn dashboard +lower_repositories = depoter +team_unit_desc = Tillad adgang til depotsektioner +follow_blocked_user = Du kan ikke følge denne organisation, fordi denne organisation har blokeret dig. +org_name_helper = Organisationsnavne skal være korte og mindeværdige. +create_org = Opret organisation +form.name_reserved = Organisationsnavnet "%s" er reserveret. +create_new_team = Nyt team +team_unit_disabled = (Deaktiveret) +code = Kode +team_name = Team navn +team_name_helper = Team navne skal være korte og mindeværdige. +team_desc_helper = Beskriv teamets formål eller rolle. +team_access_desc = Depot adgang +team_permission_desc = Tilladelse +members.member = Medlem +settings.change_orgname_prompt = Bemærk: Ændring af organisationens navn vil også ændre din organisations URL og frigøre det gamle navn. +settings.change_orgname_redirect_prompt = Det gamle navn vil omdirigere, indtil det gøres krav på. +settings.change_orgname_redirect_prompt.with_cooldown.one = Det gamle organisationsnavn vil være tilgængeligt for alle efter en nedkølingsperiode på %[1]d dag, du kan stadig kræve det gamle navn tilbage i nedkølingsperioden. +settings.change_orgname_redirect_prompt.with_cooldown.few = Det gamle organisationsnavn vil være tilgængeligt for alle efter en nedkølingsperiode på %[1]d dage, du kan stadig kræve det gamle navn tilbage i . +settings.update_avatar_success = Organisationens avatar er blevet opdateret. +members.public_helper = Gør skjult +members.private = Skjult +members.private_helper = Gør synlig +members.member_role = Medlemsrolle: +members.remove.detail = Vil du fjerne %[1]s fra %[2]s? +members.invite_desc = Tilføj et nyt medlem til %s: +teams.read_permission_desc = Dette team giver læse adgang: medlemmer kan se og klone teamdepoter. +teams.remove_all_repos_title = Slet alle team depoter +members.leave.detail = Er du sikker på, at du vil forlade organisationen "%s"? +settings.email = Kontakt email +settings.delete_account = Slet denne organisation +teams.can_create_org_repo_helper = Medlemmer kan oprette nye arkiver i organisationen. Skaberen får administratoradgang til det nye lager. +teams.remove_all_repos_desc = Dette vil slette alle depoter fra teamet +teams.add_all_repos_title = Tilføj alle depoter +settings.update_settings = Opdater indstillinger +settings.update_setting_success = Organisationsindstillingerne er blevet opdateret. +settings.delete = Slet organisation +members.invite_now = Inviter nu +teams.members = Team medlemmer +teams.owners_permission_desc = Ejere har fuld adgang til alle depoter og har administratoradgang til organisationen. +teams.update_settings = Opdater indstillinger +settings.labels_desc = Tilføj etiketter, som kan bruges til problemer for alle lagre under denne organisation. +members.membership_visibility = Medlemskabs synlighed: +members.public = Synlig +settings.delete_prompt = Organisationen fjernes permanent. Dette KAN IKKE fortrydes! +settings.confirm_delete_account = Bekræft sletning +settings.delete_org_title = Slet organisation +settings.delete_org_desc = Denne organisation vil blive slettet permanent. Vil du fortsætte? +settings.hooks_desc = Tilføj webhooks, som vil blive udløst for alle lagre under denne organisation. +teams.leave.detail = Er du sikker på, at du vil forlade teamet "%s"? +teams.can_create_org_repo = Opret depoter +teams.general_access_helper = Medlemmers tilladelser bestemmes af nedenstående tilladelsestabell. +teams.delete_team = Slet team +teams.add_team_member = Slet team +form.name_pattern_not_allowed = Mønsteret "%s" er ikke tilladt i et organisationsnavn. +form.create_org_not_allowed = Du har ikke tilladelse til at oprette en organisation. +teams.none_access = Ingen adgang +teams.none_access_helper = Muligheden "ingen adgang" har kun effekt på private arkiver. +teams.general_access = Brugerdefineret adgang +members.leave = Forlad +teams.leave = Forlad +teams.join = Deltag +teams.delete_team_success = Teamet er blevet slettet. +teams.write_permission_desc = Dette team giver Skrive adgang: medlemmer kan læse fra og skubbe til teamdepoter. +teams.invite_team_member = Inviter til %s +teams.invite_team_member.list = Afventende invitationer +teams.admin_permission_desc = Dette team giver Administrator adgang: medlemmer kan læse fra, skubbe til og tilføje samarbejdspartnere til teamdepoter. +teams.create_repo_permission_desc = Derudover giver dette team tilladelse til Opret depot: medlemmer kan oprette nye lagre i organisationen. +teams.delete_team_title = Slet team +teams.repositories = Team depoter +teams.delete_team_desc = Sletning af et team tilbagekalder depotadgang fra dets medlemmer. Vil du fortsætte? +teams.add_all_repos_desc = Dette vil tilføje alle organisationens depoter til teamet. +teams.add_nonexistent_repo = Depotet, du forsøger at tilføje, eksisterer ikke, opret det først. +teams.invite.by = Inviteret af %s +teams.all_repositories_helper = Teamet har adgang til alle depoter. Hvis du vælger dette, føjes alle eksisterende depoter til teamet. +teams.invite.title = Du er blevet inviteret til at deltage i teamet %s i organisationen %s. +teams.add_duplicate_users = Brugeren er allerede et teammedlem. +teams.repos.none = Ingen depoter kunne tilgås af dette team. +teams.members.none = Ingen medlemmer på dette team. +teams.specific_repositories = Specifikke depoter +teams.specific_repositories_helper = Medlemmer vil kun have adgang til depoter, der udtrykkeligt er føjet til teamet. Hvis du vælger dette vil det ikke automatisk fjerne depoter, der allerede er tilføjet med Alle depoter. +teams.all_repositories = Alle depoter +teams.invite.description = Klik venligst på knappen nedenfor for at blive medlem af teamet. [admin] orgs.members = Medlemmer @@ -2601,6 +2894,207 @@ config.allow_dots_in_usernames = Tillad brugere at bruge prikker i deres brugern auths.oauth2_icon_url = Icon URL users.edit = Redigere users.auth_source = Godkendelseskilde +monitor.queue.settings.maxnumberworkers.placeholder = I øjeblikket %[1]d +monitor.queue.settings.submit = Opdater indstillinger +monitor.queue.settings.changed = Indstillinger opdateret +monitor.queue.settings.remove_all_items = Slet alle +monitor.queue.settings.remove_all_items_done = Alle varer i køen er blevet fjernet. +notices.system_notice_list = Systemmeddelelser +dashboard.delete_repo_archives = Slet alle depoters arkiver (ZIP, TAR.GZ osv..) +organizations = Organisationer +dashboard.delete_repo_archives.started = Slet alle repository arkiver opgave startet. +dashboard.statistic = Oversigt +dashboard.task.finished = Opgave: %[1]s startet af %[2]s er afsluttet +dashboard.task.unknown = Ukendt opgave: %[1]s +dashboard.cron.error = Fejl i Cron: %s: %[3]s +dashboard.operation_name = Operations navn +dashboard.delete_missing_repos.started = Slet alle depoter, der mangler deres Git-filopgave startet. +dashboard.delete_generated_repository_avatars = Slet genererede depot avatarer +dashboard.sync_repo_branches = Synkroniser mistede grene fra Git-data til databasen +dashboard.sync_repo_tags = Synkroniser tags fra Git-data til database +dashboard.archive_cleanup = Slet gamle depotarkiver +dashboard.deleted_branches_cleanup = Ryd op i slettede grene +dashboard = Dashboard +self_check = Selvtjek +assets = Kode aktiver +repositories = Depoter +authentication = Godkendelseskilder +emails = Bruger e-mails +monitor = Overvågning +settings = Admin indstillinger +dashboard.new_version_hint = Forgejo %s er nu tilgængelig, du kører %s. Tjek bloggen for flere detaljer. +dashboard.operation_switch = Skift +dashboard.operation_run = Kør +dashboard.clean_unbind_oauth = Rens ubundne OAuth-forbindelser +dashboard.delete_inactive_accounts.started = Slet alle uaktiverede konti opgave startet. +dashboard.delete_missing_repos = Slet alle depoter, der mangler deres Git-filer +dashboard.update_migration_poster_id = Opdater migrationsplakat-id'er +dashboard.memory_obtained = Hukommelse opnået +dashboard.pointer_lookup_times = Pointer-opslagstider +hooks = Webhooks +dashboard.cron.finished = Cron: %[1]s er færdig +dashboard.delete_inactive_accounts = Slet alle uaktiverede konti +config = Konfiguration +notices = Systemmeddelelser +config_summary = Oversigt +dashboard.system_status = System status +dashboard.update_mirrors = Opdater spejle +dashboard.server_uptime = Server oppetid +dashboard.current_goroutine = Nuværende goroutiner +dashboard.current_memory_usage = Aktuel hukommelsesbrug +dashboard.total_memory_allocated = Samlet hukommelse tildelt +integrations = Integrationer +dashboard.operations = Vedligeholdelses operationer +dashboard.repo_health_check = Sundhedstjek alle depoter +dashboard.check_repo_stats = Tjek alle depotstatistikker +dashboard.git_gc_repos = Samle alt affald fra alle depoter +dashboard.resync_all_sshkeys = Opdater filen ".ssh/authorized_keys" med Forgejo SSH-nøgler. +dashboard.resync_all_sshprincipals = Opdater ".ssh/authorized_principals" filen med Forgejo SSH principals. +users = Brugerkonti +identity_access = Identitet og adgang +first_page = Først +last_page = Sidst +dashboard.task.process = Opgave: %[1]s +total = Total: %d +dashboard.cron.started = Startede Cron: %[1]s +dashboard.cron.process = Cron: %[1]s +dashboard.cron.cancelled = Cron: %[1]s annulleret: %[3]s +dashboard.clean_unbind_oauth_success = Alle ubundne OAuth-forbindelser er blevet slettet. +dashboard.task.started = Startet opgave: %[1]s +dashboard.task.cancelled = Opgave: %[1]s annulleret: %[3]s +dashboard.task.error = Fejl i Opgave: %[1]s: %[3]s +dashboard.resync_all_hooks = Gensynkroniser pre-receive, update og post-receive hooks for alle depoter +dashboard.reinit_missing_repos = Geninitialiser alle manglende Git-depoter, som der findes poster for +dashboard.sync_external_users = Synkroniser eksterne brugerdata +dashboard.cleanup_hook_task_table = Oprydning hook_task tabel +dashboard.cleanup_packages = Ryd udløbne pakker +dashboard.cleanup_actions = Oprydning af udløbne logfiler og artefakter fra handlinger +users.remote = Remote +users.password_helper = Lad adgangskoden være tom for at bevare den uændret. +dashboard.cancel_abandoned_jobs = Annuller forladte handlingsjob +users.activated.description = Afslutning af e-mailbekræftelse. Ejeren af en uaktiveret konto vil ikke være i stand til at logge ind, før e-mailbekræftelsen er gennemført. +users.admin.description = Giv denne bruger fuld adgang til alle administrative funktioner, der er tilgængelige via web-UI og API. +users.update_profile = Opdater brugerkonto +users.still_has_org = Denne bruger er medlem af en organisation. Fjern først brugeren fra enhver organisation. +users.purge_help = Tvangsslet brugeren og eventuelle depoter, organisationer og pakker, der ejes af brugeren. Alle kommentarer og problemer indsendt af denne bruger vil også blive slettet. +users.is_admin = Administrator konto +dashboard.mspan_structures_obtained = Mspan strukturer opnået +dashboard.mcache_structures_usage = MCache strukturer brug +dashboard.mspan_structures_usage = MSpan strukturer brug +dashboard.mcache_structures_obtained = MCache-strukturer opnået +dashboard.profiling_bucket_hash_table_obtained = Profilering bucket hash tabel opnået +dashboard.gc_metadata_obtained = GC-metadata opnået +dashboard.other_system_allocation_obtained = Anden systemallokering opnået +dashboard.next_gc_recycle = Næste GC genbrug +dashboard.total_gc_pause = Total GC-pause +dashboard.last_gc_time = Tid siden sidste GC +dashboard.delete_old_system_notices = Slet alle gamle systemmeddelelser fra databasen +dashboard.gc_lfs = Affaldssamler LFS-metaobjekter +dashboard.start_schedule_tasks = Start planlæg handlingsopgaver +dashboard.sync_branch.started = Gren synkronisering startede +dashboard.sync_tag.started = Tag-synkronisering er startet +dashboard.rebuild_issue_indexer = Genopbyg problemindekser +users.update_profile_success = Brugerkontoen er blevet opdateret. +users.created = Oprettet +users.max_repo_creation = Maksimalt antal depoter +users.prohibit_login = Suspenderet konto +users.is_restricted = Begrænset konto +dashboard.memory_allocate_times = Hukommelsestildelinger +dashboard.memory_free_times = Hukommelses frigørelse +dashboard.current_heap_usage = Nuværende heap-brug +dashboard.heap_memory_obtained = Heap-hukommelse opnået +dashboard.heap_objects = Heap genstande +dashboard.bootstrap_stack_usage = Brug af bootstrap-stak +dashboard.update_checker = Opdateringskontrol +dashboard.delete_old_actions.started = Slet alle gamle aktiviteter fra den påbegyndte database. +dashboard.stop_zombie_tasks = Stop zombiehandlingsopgaver +dashboard.stop_endless_tasks = Stop endeløse handlingsopgaver +users.2fa = 2FA +users.last_login = Sidst logget ind +users.never_login = Aldrig logget ind +users.new_success = Brugerkontoen "%s" er blevet oprettet. +users.local_import.description = Tillad import af depoter fra serverens lokale filsystem. Dette kan være et sikkerhedsproblem. +users.organization_creation.description = Tillad oprettelse af nye organisationer. +users.delete_account = Slet brugerkonto +users.cannot_delete_self = Du kan ikke slette dig selv +users.still_own_repo = Denne bruger ejer stadig et eller flere arkiver. Slet eller overfør disse depoter først. +users.list_status_filter.is_admin = Admin +users.block.description = Bloker denne bruger i at interagere med denne tjeneste via deres konto, og forbyd at logge ind. +users.restricted.description = Tillad kun interaktion med de depoter og organisationer, hvor denne bruger er tilføjet som en samarbejdspartner. Dette forhindrer adgang til offentlige arkiver i denne instans. +users.list_status_filter.menu_text = Filter +dashboard.heap_memory_idle = Heap hukommelse inaktiv +dashboard.heap_memory_in_use = Heap hukommelse i brug +dashboard.heap_memory_released = Heap-hukommelse frigivet +dashboard.stack_memory_obtained = Stakhukommelse opnået +dashboard.last_gc_pause = Sidste GC-pause +dashboard.gc_times = GC times +dashboard.delete_old_actions = Slet alle gamle aktiviteter fra databasen +users.allow_create_organization = Kan skabe organisationer +users.list_status_filter.not_admin = Ikke admin +users.allow_import_local = Kan importere lokale depoter +users.send_register_notify = Giv besked om tilmelding via e-mail +users.local = Lokal +users.auth_login_name = Godkendelses-loginnavn +users.allow_git_hook = Kan skabe Git hooks +users.allow_git_hook_tooltip = Git hooks udføres som OS-brugeren, der kører Forgejo og vil have samme niveau af værtsadgang. Som et resultat kan brugere med dette specielle Git hook-privilegium få adgang til og ændre alle Forgejo-depoter såvel som databasen, der bruges af Forgejo. Derfor er de også i stand til at opnå Forgejo-administratorrettigheder. +users.repos = Depoter +users.still_own_packages = Denne bruger ejer stadig en eller flere pakker, slet disse pakker først. +users.deletion_success = Brugerkontoen er blevet slettet. +users.reset_2fa = Nulstil 2FA +users.max_repo_creation_desc = (Indtast -1 for at bruge den globale standardgrænse.) +users.is_activated = Aktiveret konto +users.edit_account = Rediger brugerkonto +packages.version = Version +users.list_status_filter.reset = Nulstil +users.list_status_filter.is_active = Aktiv +users.list_status_filter.not_active = Inaktiv +users.purge = Udrens bruger +users.user_manage_panel = Administrer brugerkonti +users.new_account = Opret brugerkonto +users.admin = Admin +users.restricted = Begrænset +users.reserved = Reserveret +users.bot = Bot +emails.primary = Primær +emails.updated = E-mail opdateret +emails.not_updated = Kunne ikke opdatere den anmodede e-mailadresse: %v +packages.package_manage_panel = Administrer pakker +packages.total_size = Samlet størrelse: %s +packages.unreferenced_size = Ikke-referencestørrelse: %s +users.list_status_filter.is_2fa_enabled = 2FA aktiveret +users.list_status_filter.not_2fa_enabled = 2FA deaktiveret +emails.filter_sort.email_reverse = E-mail (omvendt) +emails.filter_sort.name_reverse = Brugernavn (omvendt) +emails.delete = Slet e-mail +emails.delete_desc = Er du sikker på, at du vil slette denne e-mailadresse? +emails.deletion_success = E-mailadressen er blevet slettet. +users.list_status_filter.is_restricted = Begrænset +emails.duplicate_active = Denne e-mailadresse er allerede aktiv for en anden bruger. +emails.change_email_header = Opdater e-mail-egenskaber +emails.change_email_text = Er du sikker på, at du vil opdatere denne e-mailadresse? +repos.issues = Problemer +repos.size = Størrelse +repos.lfs_size = LFS størrelse +users.list_status_filter.not_restricted = Ikke begrænset +users.details = Brugeroplysninger +emails.email_manage_panel = Administrer bruger-e-mails +users.list_status_filter.is_prohibit_login = Forbyd login +users.list_status_filter.not_prohibit_login = Tillad login +emails.delete_primary_email_error = Du kan ikke slette den primære e-mail. +orgs.org_manage_panel = Administrer organisationer +repos.repo_manage_panel = Administrer depoter +repos.unadopted = Ikke-adopterede depoter +repos.unadopted.no_more = Ingen ikke-adopterede depoter fundet. +auths.domain = Domæne +auths.port = Port +auths.host = Host +packages.size = Størrelse +auths.security_protocol = Sikkerhedsprotokol +auths.updated = Opdateret +auths.type = Type +auths.syncenabled = Slå brugersynkronisering til +packages.published = Offentliggjort +packages.type = Type [packages] arch.version.description = Beskrivelse @@ -2646,15 +3140,77 @@ rpm.repository = Depot info rpm.repository.architectures = Arkitekturer alt.registry = Konfigurer dette register fra kommandolinjen: alt.repository = Depot info +alpine.repository.repositories = Depoter +search_in_external_registry = Søg i %s +dependency.version = Version +alpine.registry = Konfigurer dette register ved at tilføje url'en i din /etc/apk/repositories fil: +alpine.registry.key = Download den offentlige RSA-nøgle til registreringsdatabasen i mappen /etc/apk/keys/ for at bekræfte indekssignaturen: +alpine.registry.info = Vælg $branch og $repository fra listen nedenfor. [actions] runners.description = Beskrivelse runners.labels = Etiketter runners.name = Navn runners.task_list.repository = Depot +runners.status.active = Aktiv +runners.status.offline = Offline +runners.version = Version [tool] 1d = 1 dag 1w = 1 uge 1mon = 1 måned -1y = 1 år \ No newline at end of file +1y = 1 år +months = %d måneder +years = %d år +raw_seconds = sekunder +raw_minutes = minutter +future = fremtid +1h = 1 time +seconds = %d sekunder +minutes = %d minutter +hours = %d timer +weeks = %d uger +1s = 1 sekund +1m = 1 minut +days = %d dage + +[repo.permissions] +actions.read = Læs: Se integrerede CI/CD-pipelines og deres logfiler. +releases.write = Skriv: Udgiv, rediger og slet udgivelser og deres aktiver. +wiki.read = Læs: Læs den integrerede wiki og dens historie. +wiki.write = Skriv: Opret, opdater og slet sider i den integrerede wiki. +actions.write = Skriv: Udløs, genstart, annuller eller godkend afventende CI/CD-pipelines manuelt. +ext_issues = Få adgang til linket til en ekstern problemsporing. Tilladelserne administreres eksternt. +issues.write = Skriv: Luk problemer og administrer metadata som etiketter, milepæle, modtagere, forfaldsdatoer og afhængigheder. +releases.read = Læs: Se og download udgivelser. +projects.read = Læs: Få adgang til depot-projekttavler. +projects.write = Skriv: Opret projekter og kolonner, og rediger dem. +packages.read = Læs: Se og download pakker, der er tildelt depotet. +packages.write = Skriv: Udgiv og slet pakker, der er tildelt depotet. +ext_wiki = Få adgang til linket til en ekstern wiki. Tilladelserne administreres eksternt. +pulls.read = Læs: Læsning og oprettelse af pull-anmodninger. +pulls.write = Skriv: Luk pull-anmodninger og administrer metadata som etiketter, milepæle, modtagere, forfaldsdatoer og afhængigheder. +code.read = Læs: Få adgang til og klon koden for depotet. +code.write = Skriv: Skub til depotet, opret filialer og tags. +issues.read = Læs: Læs og opret problemer og kommentarer. + +[graphs] +component_failed_to_load = Der skete en uventet fejl. +code_frequency.what = kode frekvens +contributors.what = bidrag +component_loading = Indlæser %s… +component_loading_info = Dette kan tage lidt tid… +recent_commits.what = nylige commits +component_loading_failed = Kunne ikke indlæse %s + +[secrets] +creation.name_placeholder = uafhængig af store og små bogstaver, alfanumeriske tegn eller understregninger, kan ikke starte med GITEA_ eller GITHUB_ +creation.value_placeholder = Indtast ethvert indhold. Mellemrum i starten og slutningen vil blive udeladt. + +[dropzone] +invalid_input_type = Filer af denne type må ikke uploades. +remove_file = Fjern fil + +[gpg] +default_key = Underskrevet med standardnøglen \ No newline at end of file diff --git a/options/locale/locale_fr-FR.ini b/options/locale/locale_fr-FR.ini index 42f05bb0c7..1e78443b89 100644 --- a/options/locale/locale_fr-FR.ini +++ b/options/locale/locale_fr-FR.ini @@ -3978,7 +3978,7 @@ submodule=Sous-module [search] -search = Rechercher... +search = Rechercher… type_tooltip = Type de recherche fuzzy = Approximatif code_search_by_git_grep = Les résultats de recherche dans le code sont fournis par "git grep". Les résultats pourraient être plus pertinents si l'administrateur du site active les indexeurs de code source. @@ -3988,14 +3988,14 @@ keyword_search_unavailable = La recherche par mot-clé n'est pas disponible actu fuzzy_tooltip = Inclure les résultats proches des termes recherchés match = Correspondance match_tooltip = Uniquement inclure les résultats correspondant exactement aux termes recherchés -repo_kind = Chercher dans les dépôts... -user_kind = Chercher les utilisateurs... -org_kind = Chercher les organisations... -team_kind = Chercher les équipes... -code_kind = Chercher le code... +repo_kind = Chercher dans les dépôts… +user_kind = Chercher les utilisateurs… +org_kind = Chercher les organisations… +team_kind = Chercher les équipes… +code_kind = Chercher le code… code_search_unavailable = La recherche dans le code n'est pas disponible. Veuillez contacter l'administrateur du site. -package_kind = Chercher les paquets... -project_kind = Chercher les projets... +package_kind = Chercher les paquets… +project_kind = Chercher les projets… branch_kind = Chercher les branches... commit_kind = Chercher les commits... exact = Exact diff --git a/options/locale/locale_lv-LV.ini b/options/locale/locale_lv-LV.ini index 2e2a165f1f..7f4ae4262b 100644 --- a/options/locale/locale_lv-LV.ini +++ b/options/locale/locale_lv-LV.ini @@ -1571,7 +1571,7 @@ issues.self_assign_at=`piešķīra sev %s` issues.add_assignee_at=`%s piešķīra %s` issues.remove_assignee_at=`%s noņēma %s` issues.remove_self_assignment=`noņēma sev %s` -issues.change_title_at=`nomainīts nosaukums no %s uz %s %s` +issues.change_title_at=`nomainīja nosaukumu no %s uz %s %s` issues.change_ref_at=`nomainīta atsauce no %s uz %s %s` issues.remove_ref_at=`noņēma atsauci no %s %s` issues.add_ref_at=`pievienoja atsauci uz %s %s` @@ -3658,7 +3658,7 @@ raw_seconds=sekundes raw_minutes=minūtes [dropzone] -default_message=Jāievelk datnes vai jāklikšķina šeit, lai augšupielādētu. +default_message=Ievilkt datnes vai klikšķināt šeit, lai augšupielādētu. invalid_input_type=Šī veida datnes nevar augšupielādēt. file_too_big=Datnes izmērs ({{filesize}} MB) pārsniedz pieļaujamo izmēru ({{maxFilesize}} MB). remove_file=Noņemt datni diff --git a/options/locale/locale_ru-RU.ini b/options/locale/locale_ru-RU.ini index 5830a32285..e0f8065063 100644 --- a/options/locale/locale_ru-RU.ini +++ b/options/locale/locale_ru-RU.ini @@ -4060,7 +4060,7 @@ filepreview.lines = Строки с %[1]d по %[2]d в %[3]s filepreview.truncated = Предпросмотр был обрезан [translation_meta] -test = Forgejo! +test = Forgejo [repo.permissions] code.write = Запись: отправка изменений в репозиторий, создание веток и тегов. diff --git a/options/locale_next/locale_pt-BR.json b/options/locale_next/locale_pt-BR.json index a66d679e96..218669787d 100644 --- a/options/locale_next/locale_pt-BR.json +++ b/options/locale_next/locale_pt-BR.json @@ -9,11 +9,14 @@ "many": "quer mesclar %[1]d commits de %[2]s em %[3]s", "other": "" }, - "search.milestone_kind": "Pesquisar marcos...", + "search.milestone_kind": "Pesquisar marcos…", "home.welcome.no_activity": "Sem atividade", "home.welcome.activity_hint": "Ainda não tem nada no seu feed. Suas ações e atividade dos seus repositórios vigiados aparecerão aqui.", "home.explore_repos": "Explorar repositórios", "home.explore_users": "Explorar usuários", "home.explore_orgs": "Explorar organizações", - "incorrect_root_url": "Esta instância do Forgejo está configurada para o endereço \"%s\". Você está atualmente vendo o Forgejo através de uma URL diferente, o que pode causar erros em algumas partes da aplicação. A URL oficial é controlada pela administração do Forgejo através da configuração ROOT_URL no arquivo app.ini." + "incorrect_root_url": "Esta instância do Forgejo está configurada para o endereço \"%s\". Você está atualmente vendo o Forgejo através de uma URL diferente, o que pode causar erros em algumas partes da aplicação. A URL oficial é controlada pela administração do Forgejo através da configuração ROOT_URL no arquivo app.ini.", + "themes.names.forgejo-auto": "Forgejo (usar o tema do sistema)", + "themes.names.forgejo-light": "Forgejo claro", + "themes.names.forgejo-dark": "Forgejo escuro" } diff --git a/package-lock.json b/package-lock.json index dfd359b31b..6e597bc511 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "idiomorph": "0.3.0", "jquery": "3.7.1", "katex": "0.16.21", - "mermaid": "11.5.0", + "mermaid": "11.6.0", "mini-css-extract-plugin": "2.9.2", "minimatch": "10.0.1", "monaco-editor": "0.52.2", @@ -1634,12 +1634,12 @@ } }, "node_modules/@mermaid-js/parser": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-0.3.0.tgz", - "integrity": "sha512-HsvL6zgE5sUPGgkIDlmAWR1HTNHz2Iy11BAWPTa4Jjabkpguy4Ze2gzfLrg6pdRuBvFwgUYyxiaNqZwrEEXepA==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-0.4.0.tgz", + "integrity": "sha512-wla8XOWvQAwuqy+gxiZqY+c7FokraOTHRWMsbB4AgRx9Sy7zKslNyejy7E+a77qHfey5GXw/ik3IXv/NHMJgaA==", "license": "MIT", "dependencies": { - "langium": "3.0.0" + "langium": "3.3.1" } }, "node_modules/@napi-rs/wasm-runtime": { @@ -9361,9 +9361,9 @@ "license": "MIT" }, "node_modules/langium": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/langium/-/langium-3.0.0.tgz", - "integrity": "sha512-+Ez9EoiByeoTu/2BXmEaZ06iPNXM6thWJp02KfBO/raSMyCJ4jw7AkWWa+zBCTm0+Tw1Fj9FOxdqSskyN5nAwg==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/langium/-/langium-3.3.1.tgz", + "integrity": "sha512-QJv/h939gDpvT+9SiLVlY7tZC3xB2qK57v0J04Sh9wpMb6MP1q8gB21L3WIo8T5P1MSMg3Ep14L7KkDCFG3y4w==", "license": "MIT", "dependencies": { "chevrotain": "~11.0.3", @@ -9847,14 +9847,14 @@ } }, "node_modules/mermaid": { - "version": "11.5.0", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.5.0.tgz", - "integrity": "sha512-IYhyukID3zzDj1EihKiN1lp+PXNImoJ3Iyz73qeDAgnus4BNGsJV1n471P4PyeGxPVONerZxignwGxGTSwZnlg==", + "version": "11.6.0", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.6.0.tgz", + "integrity": "sha512-PE8hGUy1LDlWIHWBP05SFdqUHGmRcCcK4IzpOKPE35eOw+G9zZgcnMpyunJVUEOgb//KBORPjysKndw8bFLuRg==", "license": "MIT", "dependencies": { "@braintree/sanitize-url": "^7.0.4", "@iconify/utils": "^2.1.33", - "@mermaid-js/parser": "^0.3.0", + "@mermaid-js/parser": "^0.4.0", "@types/d3": "^7.4.3", "cytoscape": "^3.29.3", "cytoscape-cose-bilkent": "^4.1.0", diff --git a/package.json b/package.json index 75739b3be0..a903935464 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "idiomorph": "0.3.0", "jquery": "3.7.1", "katex": "0.16.21", - "mermaid": "11.5.0", + "mermaid": "11.6.0", "mini-css-extract-plugin": "2.9.2", "minimatch": "10.0.1", "monaco-editor": "0.52.2", diff --git a/routers/api/actions/actions.go b/routers/api/actions/actions.go index a418b3a1c4..70158c4e18 100644 --- a/routers/api/actions/actions.go +++ b/routers/api/actions/actions.go @@ -6,9 +6,9 @@ package actions import ( "net/http" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/actions/ping" - "code.gitea.io/gitea/routers/api/actions/runner" + "forgejo.org/modules/web" + "forgejo.org/routers/api/actions/ping" + "forgejo.org/routers/api/actions/runner" ) func Routes(prefix string) *web.Route { diff --git a/routers/api/actions/artifacts.go b/routers/api/actions/artifacts.go index 405686a058..85a1f5f5be 100644 --- a/routers/api/actions/artifacts.go +++ b/routers/api/actions/artifacts.go @@ -69,18 +69,18 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - web_types "code.gitea.io/gitea/modules/web/types" - actions_service "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/actions" + "forgejo.org/models/db" + quota_model "forgejo.org/models/quota" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + web_types "forgejo.org/modules/web/types" + actions_service "forgejo.org/services/actions" + "forgejo.org/services/context" ) const artifactRouteBase = "/_apis/pipelines/workflows/{run_id}/artifacts" diff --git a/routers/api/actions/artifacts_chunks.go b/routers/api/actions/artifacts_chunks.go index cdb56584b8..a15fa4fd1e 100644 --- a/routers/api/actions/artifacts_chunks.go +++ b/routers/api/actions/artifacts_chunks.go @@ -17,10 +17,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/storage" + "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/storage" ) func saveUploadChunkBase(st storage.ObjectStorage, ctx *ArtifactContext, diff --git a/routers/api/actions/artifacts_utils.go b/routers/api/actions/artifacts_utils.go index db602f1e14..18c8e3fbed 100644 --- a/routers/api/actions/artifacts_utils.go +++ b/routers/api/actions/artifacts_utils.go @@ -10,9 +10,9 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/actions" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) const ( diff --git a/routers/api/actions/artifactsv4.go b/routers/api/actions/artifactsv4.go index 0417f98242..c6bc39e7d2 100644 --- a/routers/api/actions/artifactsv4.go +++ b/routers/api/actions/artifactsv4.go @@ -98,16 +98,16 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/actions" + "forgejo.org/models/db" + quota_model "forgejo.org/models/quota" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/common" + "forgejo.org/services/context" "google.golang.org/protobuf/encoding/protojson" protoreflect "google.golang.org/protobuf/reflect/protoreflect" diff --git a/routers/api/actions/ping/ping.go b/routers/api/actions/ping/ping.go index 13985c93a3..6b3378b72e 100644 --- a/routers/api/actions/ping/ping.go +++ b/routers/api/actions/ping/ping.go @@ -8,7 +8,7 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" pingv1 "code.gitea.io/actions-proto-go/ping/v1" "code.gitea.io/actions-proto-go/ping/v1/pingv1connect" diff --git a/routers/api/actions/runner/interceptor.go b/routers/api/actions/runner/interceptor.go index b56e6870ac..be83af6997 100644 --- a/routers/api/actions/runner/interceptor.go +++ b/routers/api/actions/runner/interceptor.go @@ -9,11 +9,11 @@ import ( "errors" "strings" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" "connectrpc.com/connect" ) diff --git a/routers/api/actions/runner/main_test.go b/routers/api/actions/runner/main_test.go index bed63c166e..112ebe3cb6 100644 --- a/routers/api/actions/runner/main_test.go +++ b/routers/api/actions/runner/main_test.go @@ -6,9 +6,9 @@ package runner import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/routers/api/actions/runner/runner.go b/routers/api/actions/runner/runner.go index 6cd37fd224..8aae69f463 100644 --- a/routers/api/actions/runner/runner.go +++ b/routers/api/actions/runner/runner.go @@ -9,13 +9,13 @@ import ( "fmt" "net/http" - actions_model "code.gitea.io/gitea/models/actions" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" - actions_service "code.gitea.io/gitea/services/actions" + actions_model "forgejo.org/models/actions" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/actions" + "forgejo.org/modules/log" + "forgejo.org/modules/util" + actions_service "forgejo.org/services/actions" runnerv1 "code.gitea.io/actions-proto-go/runner/v1" "code.gitea.io/actions-proto-go/runner/v1/runnerv1connect" diff --git a/routers/api/forgejo/v1/api.go b/routers/api/forgejo/v1/api.go index 88c7502e66..dfc5a29d05 100644 --- a/routers/api/forgejo/v1/api.go +++ b/routers/api/forgejo/v1/api.go @@ -4,8 +4,8 @@ package v1 import ( - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/shared" + "forgejo.org/modules/web" + "forgejo.org/routers/api/shared" ) func Routes() *web.Route { diff --git a/routers/api/forgejo/v1/forgejo.go b/routers/api/forgejo/v1/forgejo.go index 0f1f4f1932..b63db6fb9a 100644 --- a/routers/api/forgejo/v1/forgejo.go +++ b/routers/api/forgejo/v1/forgejo.go @@ -5,8 +5,8 @@ package v1 import ( "net/http" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" ) type Forgejo struct{} diff --git a/routers/api/packages/alpine/alpine.go b/routers/api/packages/alpine/alpine.go index 831a910e36..dc992ebb5a 100644 --- a/routers/api/packages/alpine/alpine.go +++ b/routers/api/packages/alpine/alpine.go @@ -13,16 +13,16 @@ import ( "net/http" "strings" - packages_model "code.gitea.io/gitea/models/packages" - alpine_model "code.gitea.io/gitea/models/packages/alpine" - "code.gitea.io/gitea/modules/json" - packages_module "code.gitea.io/gitea/modules/packages" - alpine_module "code.gitea.io/gitea/modules/packages/alpine" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" - alpine_service "code.gitea.io/gitea/services/packages/alpine" + packages_model "forgejo.org/models/packages" + alpine_model "forgejo.org/models/packages/alpine" + "forgejo.org/modules/json" + packages_module "forgejo.org/modules/packages" + alpine_module "forgejo.org/modules/packages/alpine" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" + alpine_service "forgejo.org/services/packages/alpine" ) func apiError(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/alt/alt.go b/routers/api/packages/alt/alt.go index 37a2b64563..a118459ce3 100644 --- a/routers/api/packages/alt/alt.go +++ b/routers/api/packages/alt/alt.go @@ -11,18 +11,18 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/json" - packages_module "code.gitea.io/gitea/modules/packages" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - notify_service "code.gitea.io/gitea/services/notify" - packages_service "code.gitea.io/gitea/services/packages" - alt_service "code.gitea.io/gitea/services/packages/alt" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/json" + packages_module "forgejo.org/modules/packages" + rpm_module "forgejo.org/modules/packages/rpm" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + notify_service "forgejo.org/services/notify" + packages_service "forgejo.org/services/packages" + alt_service "forgejo.org/services/packages/alt" ) func apiError(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/api.go b/routers/api/packages/api.go index ffc62254d0..ebd081ae77 100644 --- a/routers/api/packages/api.go +++ b/routers/api/packages/api.go @@ -8,37 +8,37 @@ import ( "regexp" "strings" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/perm" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/packages/alpine" - "code.gitea.io/gitea/routers/api/packages/alt" - "code.gitea.io/gitea/routers/api/packages/arch" - "code.gitea.io/gitea/routers/api/packages/cargo" - "code.gitea.io/gitea/routers/api/packages/chef" - "code.gitea.io/gitea/routers/api/packages/composer" - "code.gitea.io/gitea/routers/api/packages/conan" - "code.gitea.io/gitea/routers/api/packages/conda" - "code.gitea.io/gitea/routers/api/packages/container" - "code.gitea.io/gitea/routers/api/packages/cran" - "code.gitea.io/gitea/routers/api/packages/debian" - "code.gitea.io/gitea/routers/api/packages/generic" - "code.gitea.io/gitea/routers/api/packages/goproxy" - "code.gitea.io/gitea/routers/api/packages/helm" - "code.gitea.io/gitea/routers/api/packages/maven" - "code.gitea.io/gitea/routers/api/packages/npm" - "code.gitea.io/gitea/routers/api/packages/nuget" - "code.gitea.io/gitea/routers/api/packages/pub" - "code.gitea.io/gitea/routers/api/packages/pypi" - "code.gitea.io/gitea/routers/api/packages/rpm" - "code.gitea.io/gitea/routers/api/packages/rubygems" - "code.gitea.io/gitea/routers/api/packages/swift" - "code.gitea.io/gitea/routers/api/packages/vagrant" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/context" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/perm" + quota_model "forgejo.org/models/quota" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/routers/api/packages/alpine" + "forgejo.org/routers/api/packages/alt" + "forgejo.org/routers/api/packages/arch" + "forgejo.org/routers/api/packages/cargo" + "forgejo.org/routers/api/packages/chef" + "forgejo.org/routers/api/packages/composer" + "forgejo.org/routers/api/packages/conan" + "forgejo.org/routers/api/packages/conda" + "forgejo.org/routers/api/packages/container" + "forgejo.org/routers/api/packages/cran" + "forgejo.org/routers/api/packages/debian" + "forgejo.org/routers/api/packages/generic" + "forgejo.org/routers/api/packages/goproxy" + "forgejo.org/routers/api/packages/helm" + "forgejo.org/routers/api/packages/maven" + "forgejo.org/routers/api/packages/npm" + "forgejo.org/routers/api/packages/nuget" + "forgejo.org/routers/api/packages/pub" + "forgejo.org/routers/api/packages/pypi" + "forgejo.org/routers/api/packages/rpm" + "forgejo.org/routers/api/packages/rubygems" + "forgejo.org/routers/api/packages/swift" + "forgejo.org/routers/api/packages/vagrant" + "forgejo.org/services/auth" + "forgejo.org/services/context" ) func reqPackageAccess(accessMode perm.AccessMode) func(ctx *context.Context) { diff --git a/routers/api/packages/arch/arch.go b/routers/api/packages/arch/arch.go index eedce5cdbc..a45f38dd08 100644 --- a/routers/api/packages/arch/arch.go +++ b/routers/api/packages/arch/arch.go @@ -13,15 +13,15 @@ import ( "regexp" "strings" - packages_model "code.gitea.io/gitea/models/packages" - packages_module "code.gitea.io/gitea/modules/packages" - arch_module "code.gitea.io/gitea/modules/packages/arch" - "code.gitea.io/gitea/modules/sync" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" - arch_service "code.gitea.io/gitea/services/packages/arch" + packages_model "forgejo.org/models/packages" + packages_module "forgejo.org/modules/packages" + arch_module "forgejo.org/modules/packages/arch" + "forgejo.org/modules/sync" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" + arch_service "forgejo.org/services/packages/arch" ) var ( diff --git a/routers/api/packages/cargo/cargo.go b/routers/api/packages/cargo/cargo.go index 140e532efd..50dc8d1c3d 100644 --- a/routers/api/packages/cargo/cargo.go +++ b/routers/api/packages/cargo/cargo.go @@ -10,20 +10,20 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - cargo_module "code.gitea.io/gitea/modules/packages/cargo" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - packages_service "code.gitea.io/gitea/services/packages" - cargo_service "code.gitea.io/gitea/services/packages/cargo" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + cargo_module "forgejo.org/modules/packages/cargo" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + "forgejo.org/services/convert" + packages_service "forgejo.org/services/packages" + cargo_service "forgejo.org/services/packages/cargo" ) // https://doc.rust-lang.org/cargo/reference/registries.html#web-api diff --git a/routers/api/packages/chef/auth.go b/routers/api/packages/chef/auth.go index a790e9a363..fc552c1f1b 100644 --- a/routers/api/packages/chef/auth.go +++ b/routers/api/packages/chef/auth.go @@ -23,10 +23,10 @@ import ( "strings" "time" - user_model "code.gitea.io/gitea/models/user" - chef_module "code.gitea.io/gitea/modules/packages/chef" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/auth" + user_model "forgejo.org/models/user" + chef_module "forgejo.org/modules/packages/chef" + "forgejo.org/modules/util" + "forgejo.org/services/auth" ) const ( diff --git a/routers/api/packages/chef/chef.go b/routers/api/packages/chef/chef.go index b49f4e9d0a..909817861e 100644 --- a/routers/api/packages/chef/chef.go +++ b/routers/api/packages/chef/chef.go @@ -13,16 +13,16 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - chef_module "code.gitea.io/gitea/modules/packages/chef" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + chef_module "forgejo.org/modules/packages/chef" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) func apiError(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/composer/api.go b/routers/api/packages/composer/api.go index a3ea2c2f9a..dc491ea8a8 100644 --- a/routers/api/packages/composer/api.go +++ b/routers/api/packages/composer/api.go @@ -8,8 +8,8 @@ import ( "net/url" "time" - packages_model "code.gitea.io/gitea/models/packages" - composer_module "code.gitea.io/gitea/modules/packages/composer" + packages_model "forgejo.org/models/packages" + composer_module "forgejo.org/modules/packages/composer" ) // ServiceIndexResponse contains registry endpoints diff --git a/routers/api/packages/composer/composer.go b/routers/api/packages/composer/composer.go index a045da40de..9e67d419ec 100644 --- a/routers/api/packages/composer/composer.go +++ b/routers/api/packages/composer/composer.go @@ -12,17 +12,17 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - composer_module "code.gitea.io/gitea/modules/packages/composer" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + composer_module "forgejo.org/modules/packages/composer" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + "forgejo.org/services/convert" + packages_service "forgejo.org/services/packages" "github.com/hashicorp/go-version" ) diff --git a/routers/api/packages/conan/auth.go b/routers/api/packages/conan/auth.go index e2e1901b08..1f5af77304 100644 --- a/routers/api/packages/conan/auth.go +++ b/routers/api/packages/conan/auth.go @@ -6,10 +6,10 @@ package conan import ( "net/http" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/packages" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/services/auth" + "forgejo.org/services/packages" ) var _ auth.Method = &Auth{} diff --git a/routers/api/packages/conan/conan.go b/routers/api/packages/conan/conan.go index e07907a8b1..927d131309 100644 --- a/routers/api/packages/conan/conan.go +++ b/routers/api/packages/conan/conan.go @@ -11,20 +11,20 @@ import ( "strings" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - conan_model "code.gitea.io/gitea/models/packages/conan" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - conan_module "code.gitea.io/gitea/modules/packages/conan" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - notify_service "code.gitea.io/gitea/services/notify" - packages_service "code.gitea.io/gitea/services/packages" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + conan_model "forgejo.org/models/packages/conan" + "forgejo.org/modules/container" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + conan_module "forgejo.org/modules/packages/conan" + "forgejo.org/modules/setting" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + notify_service "forgejo.org/services/notify" + packages_service "forgejo.org/services/packages" ) const ( diff --git a/routers/api/packages/conan/search.go b/routers/api/packages/conan/search.go index 7370c702cd..afc94afef5 100644 --- a/routers/api/packages/conan/search.go +++ b/routers/api/packages/conan/search.go @@ -7,11 +7,11 @@ import ( "net/http" "strings" - conan_model "code.gitea.io/gitea/models/packages/conan" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - conan_module "code.gitea.io/gitea/modules/packages/conan" - "code.gitea.io/gitea/services/context" + conan_model "forgejo.org/models/packages/conan" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + conan_module "forgejo.org/modules/packages/conan" + "forgejo.org/services/context" ) // SearchResult contains the found recipe names diff --git a/routers/api/packages/conda/conda.go b/routers/api/packages/conda/conda.go index c7e4544d52..52872d2543 100644 --- a/routers/api/packages/conda/conda.go +++ b/routers/api/packages/conda/conda.go @@ -10,16 +10,16 @@ import ( "net/http" "strings" - packages_model "code.gitea.io/gitea/models/packages" - conda_model "code.gitea.io/gitea/models/packages/conda" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - conda_module "code.gitea.io/gitea/modules/packages/conda" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + conda_model "forgejo.org/models/packages/conda" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + conda_module "forgejo.org/modules/packages/conda" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" "github.com/dsnet/compress/bzip2" ) diff --git a/routers/api/packages/container/auth.go b/routers/api/packages/container/auth.go index a8b3ec117a..71c237326e 100644 --- a/routers/api/packages/container/auth.go +++ b/routers/api/packages/container/auth.go @@ -6,10 +6,10 @@ package container import ( "net/http" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/packages" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/services/auth" + "forgejo.org/services/packages" ) var _ auth.Method = &Auth{} diff --git a/routers/api/packages/container/blob.go b/routers/api/packages/container/blob.go index 24e52d0972..0e07b03c0c 100644 --- a/routers/api/packages/container/blob.go +++ b/routers/api/packages/container/blob.go @@ -12,14 +12,14 @@ import ( "strings" "sync" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - container_model "code.gitea.io/gitea/models/packages/container" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - container_module "code.gitea.io/gitea/modules/packages/container" - "code.gitea.io/gitea/modules/util" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + container_model "forgejo.org/models/packages/container" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + container_module "forgejo.org/modules/packages/container" + "forgejo.org/modules/util" + packages_service "forgejo.org/services/packages" ) var uploadVersionMutex sync.Mutex diff --git a/routers/api/packages/container/container.go b/routers/api/packages/container/container.go index 9c9da38424..5276dd5706 100644 --- a/routers/api/packages/container/container.go +++ b/routers/api/packages/container/container.go @@ -14,20 +14,20 @@ import ( "strconv" "strings" - auth_model "code.gitea.io/gitea/models/auth" - packages_model "code.gitea.io/gitea/models/packages" - container_model "code.gitea.io/gitea/models/packages/container" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - container_module "code.gitea.io/gitea/modules/packages/container" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" - container_service "code.gitea.io/gitea/services/packages/container" + auth_model "forgejo.org/models/auth" + packages_model "forgejo.org/models/packages" + container_model "forgejo.org/models/packages/container" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + container_module "forgejo.org/modules/packages/container" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" + container_service "forgejo.org/services/packages/container" digest "github.com/opencontainers/go-digest" ) diff --git a/routers/api/packages/container/manifest.go b/routers/api/packages/container/manifest.go index 4a79a58f51..428e7605a6 100644 --- a/routers/api/packages/container/manifest.go +++ b/routers/api/packages/container/manifest.go @@ -11,17 +11,17 @@ import ( "os" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - container_model "code.gitea.io/gitea/models/packages/container" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - container_module "code.gitea.io/gitea/modules/packages/container" - "code.gitea.io/gitea/modules/util" - notify_service "code.gitea.io/gitea/services/notify" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + container_model "forgejo.org/models/packages/container" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + container_module "forgejo.org/modules/packages/container" + "forgejo.org/modules/util" + notify_service "forgejo.org/services/notify" + packages_service "forgejo.org/services/packages" digest "github.com/opencontainers/go-digest" oci "github.com/opencontainers/image-spec/specs-go/v1" diff --git a/routers/api/packages/cran/cran.go b/routers/api/packages/cran/cran.go index f1d616724a..f73111278f 100644 --- a/routers/api/packages/cran/cran.go +++ b/routers/api/packages/cran/cran.go @@ -11,14 +11,14 @@ import ( "net/http" "strings" - packages_model "code.gitea.io/gitea/models/packages" - cran_model "code.gitea.io/gitea/models/packages/cran" - packages_module "code.gitea.io/gitea/modules/packages" - cran_module "code.gitea.io/gitea/modules/packages/cran" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + cran_model "forgejo.org/models/packages/cran" + packages_module "forgejo.org/modules/packages" + cran_module "forgejo.org/modules/packages/cran" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) func apiError(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/debian/debian.go b/routers/api/packages/debian/debian.go index 8c05476cbc..fd64e35657 100644 --- a/routers/api/packages/debian/debian.go +++ b/routers/api/packages/debian/debian.go @@ -11,16 +11,16 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - packages_module "code.gitea.io/gitea/modules/packages" - debian_module "code.gitea.io/gitea/modules/packages/debian" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - notify_service "code.gitea.io/gitea/services/notify" - packages_service "code.gitea.io/gitea/services/packages" - debian_service "code.gitea.io/gitea/services/packages/debian" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + packages_module "forgejo.org/modules/packages" + debian_module "forgejo.org/modules/packages/debian" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + notify_service "forgejo.org/services/notify" + packages_service "forgejo.org/services/packages" + debian_service "forgejo.org/services/packages/debian" ) func apiError(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/generic/generic.go b/routers/api/packages/generic/generic.go index e66f3ee676..6e116e050d 100644 --- a/routers/api/packages/generic/generic.go +++ b/routers/api/packages/generic/generic.go @@ -10,12 +10,12 @@ import ( "strings" "unicode" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) var ( diff --git a/routers/api/packages/goproxy/goproxy.go b/routers/api/packages/goproxy/goproxy.go index 56a07dbd43..488850ecbf 100644 --- a/routers/api/packages/goproxy/goproxy.go +++ b/routers/api/packages/goproxy/goproxy.go @@ -11,14 +11,14 @@ import ( "sort" "time" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - goproxy_module "code.gitea.io/gitea/modules/packages/goproxy" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + goproxy_module "forgejo.org/modules/packages/goproxy" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) func apiError(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/helm/helm.go b/routers/api/packages/helm/helm.go index efdb83ec0e..1d8efb8d68 100644 --- a/routers/api/packages/helm/helm.go +++ b/routers/api/packages/helm/helm.go @@ -12,17 +12,17 @@ import ( "strings" "time" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - helm_module "code.gitea.io/gitea/modules/packages/helm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + helm_module "forgejo.org/modules/packages/helm" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" "gopkg.in/yaml.v3" ) diff --git a/routers/api/packages/helper/helper.go b/routers/api/packages/helper/helper.go index cdb64109ad..99c0867bbb 100644 --- a/routers/api/packages/helper/helper.go +++ b/routers/api/packages/helper/helper.go @@ -9,10 +9,10 @@ import ( "net/http" "net/url" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) // LogAndProcessError logs an error and calls a custom callback with the processed error message. diff --git a/routers/api/packages/maven/api.go b/routers/api/packages/maven/api.go index 167fe42b56..21d2aaa100 100644 --- a/routers/api/packages/maven/api.go +++ b/routers/api/packages/maven/api.go @@ -7,8 +7,8 @@ import ( "encoding/xml" "strings" - packages_model "code.gitea.io/gitea/models/packages" - maven_module "code.gitea.io/gitea/modules/packages/maven" + packages_model "forgejo.org/models/packages" + maven_module "forgejo.org/modules/packages/maven" ) // MetadataResponse https://maven.apache.org/ref/3.2.5/maven-repository-metadata/repository-metadata.html diff --git a/routers/api/packages/maven/maven.go b/routers/api/packages/maven/maven.go index 92f20255e1..ea04a7b42e 100644 --- a/routers/api/packages/maven/maven.go +++ b/routers/api/packages/maven/maven.go @@ -19,15 +19,15 @@ import ( "strconv" "strings" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - maven_module "code.gitea.io/gitea/modules/packages/maven" - "code.gitea.io/gitea/modules/sync" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + maven_module "forgejo.org/modules/packages/maven" + "forgejo.org/modules/sync" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) const ( diff --git a/routers/api/packages/npm/api.go b/routers/api/packages/npm/api.go index b4379f3f49..e610c29b4d 100644 --- a/routers/api/packages/npm/api.go +++ b/routers/api/packages/npm/api.go @@ -10,9 +10,9 @@ import ( "net/url" "sort" - packages_model "code.gitea.io/gitea/models/packages" - npm_module "code.gitea.io/gitea/modules/packages/npm" - "code.gitea.io/gitea/modules/setting" + packages_model "forgejo.org/models/packages" + npm_module "forgejo.org/modules/packages/npm" + "forgejo.org/modules/setting" ) func createPackageMetadataResponse(registryURL string, pds []*packages_model.PackageDescriptor) *npm_module.PackageMetadata { diff --git a/routers/api/packages/npm/npm.go b/routers/api/packages/npm/npm.go index 84acfffae2..bf9d247b30 100644 --- a/routers/api/packages/npm/npm.go +++ b/routers/api/packages/npm/npm.go @@ -12,19 +12,19 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - npm_module "code.gitea.io/gitea/modules/packages/npm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + npm_module "forgejo.org/modules/packages/npm" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" "github.com/hashicorp/go-version" ) diff --git a/routers/api/packages/nuget/api_v2.go b/routers/api/packages/nuget/api_v2.go index 073b2700ef..13c93316d5 100644 --- a/routers/api/packages/nuget/api_v2.go +++ b/routers/api/packages/nuget/api_v2.go @@ -8,8 +8,8 @@ import ( "strings" "time" - packages_model "code.gitea.io/gitea/models/packages" - nuget_module "code.gitea.io/gitea/modules/packages/nuget" + packages_model "forgejo.org/models/packages" + nuget_module "forgejo.org/modules/packages/nuget" ) type AtomTitle struct { diff --git a/routers/api/packages/nuget/api_v3.go b/routers/api/packages/nuget/api_v3.go index 2fe25dc0f8..f1f5300523 100644 --- a/routers/api/packages/nuget/api_v3.go +++ b/routers/api/packages/nuget/api_v3.go @@ -7,8 +7,8 @@ import ( "sort" "time" - packages_model "code.gitea.io/gitea/models/packages" - nuget_module "code.gitea.io/gitea/modules/packages/nuget" + packages_model "forgejo.org/models/packages" + nuget_module "forgejo.org/modules/packages/nuget" "golang.org/x/text/collate" "golang.org/x/text/language" diff --git a/routers/api/packages/nuget/auth.go b/routers/api/packages/nuget/auth.go index 1bb68d059b..bab08bb1b8 100644 --- a/routers/api/packages/nuget/auth.go +++ b/routers/api/packages/nuget/auth.go @@ -6,11 +6,11 @@ package nuget import ( "net/http" - auth_model "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/services/auth" + auth_model "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + "forgejo.org/services/auth" ) var _ auth.Method = &Auth{} diff --git a/routers/api/packages/nuget/nuget.go b/routers/api/packages/nuget/nuget.go index 0d7212d7f7..254f4311c1 100644 --- a/routers/api/packages/nuget/nuget.go +++ b/routers/api/packages/nuget/nuget.go @@ -14,18 +14,18 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - nuget_model "code.gitea.io/gitea/models/packages/nuget" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - nuget_module "code.gitea.io/gitea/modules/packages/nuget" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + nuget_model "forgejo.org/models/packages/nuget" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + nuget_module "forgejo.org/modules/packages/nuget" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) func apiError(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/pub/pub.go b/routers/api/packages/pub/pub.go index f87df52a29..1a1343083f 100644 --- a/routers/api/packages/pub/pub.go +++ b/routers/api/packages/pub/pub.go @@ -13,16 +13,16 @@ import ( "strings" "time" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - pub_module "code.gitea.io/gitea/modules/packages/pub" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + pub_module "forgejo.org/modules/packages/pub" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) func jsonResponse(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/pypi/pypi.go b/routers/api/packages/pypi/pypi.go index 19d6dc6903..360632570e 100644 --- a/routers/api/packages/pypi/pypi.go +++ b/routers/api/packages/pypi/pypi.go @@ -12,14 +12,14 @@ import ( "strings" "unicode" - packages_model "code.gitea.io/gitea/models/packages" - packages_module "code.gitea.io/gitea/modules/packages" - pypi_module "code.gitea.io/gitea/modules/packages/pypi" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + packages_module "forgejo.org/modules/packages" + pypi_module "forgejo.org/modules/packages/pypi" + "forgejo.org/modules/setting" + "forgejo.org/modules/validation" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) // https://peps.python.org/pep-0426/#name diff --git a/routers/api/packages/rpm/rpm.go b/routers/api/packages/rpm/rpm.go index d56678514c..cdbf893183 100644 --- a/routers/api/packages/rpm/rpm.go +++ b/routers/api/packages/rpm/rpm.go @@ -11,18 +11,18 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/json" - packages_module "code.gitea.io/gitea/modules/packages" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - notify_service "code.gitea.io/gitea/services/notify" - packages_service "code.gitea.io/gitea/services/packages" - rpm_service "code.gitea.io/gitea/services/packages/rpm" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/json" + packages_module "forgejo.org/modules/packages" + rpm_module "forgejo.org/modules/packages/rpm" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + notify_service "forgejo.org/services/notify" + packages_service "forgejo.org/services/packages" + rpm_service "forgejo.org/services/packages/rpm" ) func apiError(ctx *context.Context, status int, obj any) { diff --git a/routers/api/packages/rubygems/rubygems.go b/routers/api/packages/rubygems/rubygems.go index 28f584b391..eed19467ff 100644 --- a/routers/api/packages/rubygems/rubygems.go +++ b/routers/api/packages/rubygems/rubygems.go @@ -13,14 +13,14 @@ import ( "net/http" "strings" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - rubygems_module "code.gitea.io/gitea/modules/packages/rubygems" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + rubygems_module "forgejo.org/modules/packages/rubygems" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" ) const ( diff --git a/routers/api/packages/swift/swift.go b/routers/api/packages/swift/swift.go index fce2a36dd6..304230a85e 100644 --- a/routers/api/packages/swift/swift.go +++ b/routers/api/packages/swift/swift.go @@ -12,17 +12,17 @@ import ( "sort" "strings" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - swift_module "code.gitea.io/gitea/modules/packages/swift" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + swift_module "forgejo.org/modules/packages/swift" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" "github.com/hashicorp/go-version" ) diff --git a/routers/api/packages/vagrant/vagrant.go b/routers/api/packages/vagrant/vagrant.go index 98a81da368..26131c2cf2 100644 --- a/routers/api/packages/vagrant/vagrant.go +++ b/routers/api/packages/vagrant/vagrant.go @@ -11,13 +11,13 @@ import ( "sort" "strings" - packages_model "code.gitea.io/gitea/models/packages" - packages_module "code.gitea.io/gitea/modules/packages" - vagrant_module "code.gitea.io/gitea/modules/packages/vagrant" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers/api/packages/helper" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + packages_module "forgejo.org/modules/packages" + vagrant_module "forgejo.org/modules/packages/vagrant" + "forgejo.org/modules/setting" + "forgejo.org/routers/api/packages/helper" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" "github.com/hashicorp/go-version" ) diff --git a/routers/api/shared/middleware.go b/routers/api/shared/middleware.go index 5e863cb9eb..f56acbe1bf 100644 --- a/routers/api/shared/middleware.go +++ b/routers/api/shared/middleware.go @@ -6,11 +6,11 @@ package shared import ( "net/http" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/routers/common" + "forgejo.org/services/auth" + "forgejo.org/services/context" "github.com/go-chi/cors" ) diff --git a/routers/api/v1/activitypub/actor.go b/routers/api/v1/activitypub/actor.go index 4f128e74c4..7568a2a7c8 100644 --- a/routers/api/v1/activitypub/actor.go +++ b/routers/api/v1/activitypub/actor.go @@ -7,11 +7,11 @@ package activitypub import ( "net/http" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/activitypub" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + user_model "forgejo.org/models/user" + "forgejo.org/modules/activitypub" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ap "github.com/go-ap/activitypub" "github.com/go-ap/jsonld" diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index 995a148f0b..1da7933418 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.go @@ -8,10 +8,10 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/modules/activitypub" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/activitypub" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ap "github.com/go-ap/activitypub" "github.com/go-ap/jsonld" diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 14381664d4..c506840f1c 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -8,12 +8,12 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/modules/forgefed" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/federation" + "forgejo.org/modules/forgefed" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/federation" ap "github.com/go-ap/activitypub" ) diff --git a/routers/api/v1/activitypub/repository_test.go b/routers/api/v1/activitypub/repository_test.go index 1e5af6acac..8d448a4356 100644 --- a/routers/api/v1/activitypub/repository_test.go +++ b/routers/api/v1/activitypub/repository_test.go @@ -6,7 +6,7 @@ package activitypub import ( "testing" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/modules/validation" ) func Test_UserEmailValidate(t *testing.T) { diff --git a/routers/api/v1/activitypub/reqsignature.go b/routers/api/v1/activitypub/reqsignature.go index 19d167b50b..a9bb4bd868 100644 --- a/routers/api/v1/activitypub/reqsignature.go +++ b/routers/api/v1/activitypub/reqsignature.go @@ -12,11 +12,11 @@ import ( "net/http" "net/url" - "code.gitea.io/gitea/modules/activitypub" - "code.gitea.io/gitea/modules/httplib" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - gitea_context "code.gitea.io/gitea/services/context" + "forgejo.org/modules/activitypub" + "forgejo.org/modules/httplib" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + gitea_context "forgejo.org/services/context" "github.com/42wim/httpsig" ap "github.com/go-ap/activitypub" diff --git a/routers/api/v1/activitypub/response.go b/routers/api/v1/activitypub/response.go index 42ef375f12..a97f363cc2 100644 --- a/routers/api/v1/activitypub/response.go +++ b/routers/api/v1/activitypub/response.go @@ -6,10 +6,10 @@ package activitypub import ( "net/http" - "code.gitea.io/gitea/modules/activitypub" - "code.gitea.io/gitea/modules/forgefed" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/activitypub" + "forgejo.org/modules/forgefed" + "forgejo.org/modules/log" + "forgejo.org/services/context" ap "github.com/go-ap/activitypub" "github.com/go-ap/jsonld" diff --git a/routers/api/v1/admin/adopt.go b/routers/api/v1/admin/adopt.go index a4708fe032..082411f2bc 100644 --- a/routers/api/v1/admin/adopt.go +++ b/routers/api/v1/admin/adopt.go @@ -6,12 +6,12 @@ package admin import ( "net/http" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/util" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" ) // ListUnadoptedRepositories lists the unadopted repositories that match the provided names diff --git a/routers/api/v1/admin/cron.go b/routers/api/v1/admin/cron.go index e1ca6048c9..5d68ab2dce 100644 --- a/routers/api/v1/admin/cron.go +++ b/routers/api/v1/admin/cron.go @@ -6,12 +6,12 @@ package admin import ( "net/http" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/cron" + "forgejo.org/modules/log" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/cron" ) // ListCronTasks api for getting cron tasks diff --git a/routers/api/v1/admin/email.go b/routers/api/v1/admin/email.go index ba963e9f69..906780a44b 100644 --- a/routers/api/v1/admin/email.go +++ b/routers/api/v1/admin/email.go @@ -6,11 +6,11 @@ package admin import ( "net/http" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // GetAllEmails diff --git a/routers/api/v1/admin/hooks.go b/routers/api/v1/admin/hooks.go index b246cb61b1..b3db2eb5e3 100644 --- a/routers/api/v1/admin/hooks.go +++ b/routers/api/v1/admin/hooks.go @@ -7,14 +7,14 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - webhook_service "code.gitea.io/gitea/services/webhook" + "forgejo.org/models/webhook" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + webhook_service "forgejo.org/services/webhook" ) // ListHooks list system's webhooks diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index a5c299bbf0..d3a5cea056 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -7,14 +7,14 @@ package admin import ( "net/http" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // CreateOrg api for create organization diff --git a/routers/api/v1/admin/quota.go b/routers/api/v1/admin/quota.go index 1e7c11e007..c7da0e6398 100644 --- a/routers/api/v1/admin/quota.go +++ b/routers/api/v1/admin/quota.go @@ -6,9 +6,9 @@ package admin import ( "net/http" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + quota_model "forgejo.org/models/quota" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // GetUserQuota return information about a user's quota diff --git a/routers/api/v1/admin/quota_group.go b/routers/api/v1/admin/quota_group.go index e20b361eb5..afe33b639c 100644 --- a/routers/api/v1/admin/quota_group.go +++ b/routers/api/v1/admin/quota_group.go @@ -7,12 +7,12 @@ import ( go_context "context" "net/http" - "code.gitea.io/gitea/models/db" - quota_model "code.gitea.io/gitea/models/quota" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + quota_model "forgejo.org/models/quota" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListQuotaGroups returns all the quota groups diff --git a/routers/api/v1/admin/quota_rule.go b/routers/api/v1/admin/quota_rule.go index 85c05e1e9b..ea188107fa 100644 --- a/routers/api/v1/admin/quota_rule.go +++ b/routers/api/v1/admin/quota_rule.go @@ -7,11 +7,11 @@ import ( "fmt" "net/http" - quota_model "code.gitea.io/gitea/models/quota" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + quota_model "forgejo.org/models/quota" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) func toLimitSubjects(subjStrings []string) (*quota_model.LimitSubjects, error) { diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go index c119d5390a..9f9118e0ab 100644 --- a/routers/api/v1/admin/repo.go +++ b/routers/api/v1/admin/repo.go @@ -4,10 +4,10 @@ package admin import ( - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/repo" - "code.gitea.io/gitea/services/context" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/repo" + "forgejo.org/services/context" ) // CreateRepo api for creating a repository diff --git a/routers/api/v1/admin/runners.go b/routers/api/v1/admin/runners.go index d0cfef8e48..e459b947ff 100644 --- a/routers/api/v1/admin/runners.go +++ b/routers/api/v1/admin/runners.go @@ -4,8 +4,8 @@ package admin import ( - "code.gitea.io/gitea/routers/api/v1/shared" - "code.gitea.io/gitea/services/context" + "forgejo.org/routers/api/v1/shared" + "forgejo.org/services/context" ) // https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-organization diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index db8f6627e6..32e1dd414d 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -10,26 +10,26 @@ import ( "net/http" "strconv" - "code.gitea.io/gitea/models" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/user" - "code.gitea.io/gitea/routers/api/v1/utils" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/mailer" - user_service "code.gitea.io/gitea/services/user" + "forgejo.org/models" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/auth" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/password" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/user" + "forgejo.org/routers/api/v1/utils" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/mailer" + user_service "forgejo.org/services/user" ) func parseAuthSource(ctx *context.APIContext, u *user_model.User, sourceID int64) { diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 3791a6fbba..2eb1ee4229 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -71,37 +71,37 @@ import ( "net/http" "strings" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/forgefed" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/shared" - "code.gitea.io/gitea/routers/api/v1/activitypub" - "code.gitea.io/gitea/routers/api/v1/admin" - "code.gitea.io/gitea/routers/api/v1/misc" - "code.gitea.io/gitea/routers/api/v1/notify" - "code.gitea.io/gitea/routers/api/v1/org" - "code.gitea.io/gitea/routers/api/v1/packages" - "code.gitea.io/gitea/routers/api/v1/repo" - "code.gitea.io/gitea/routers/api/v1/settings" - "code.gitea.io/gitea/routers/api/v1/user" - "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/forgefed" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/shared" + "forgejo.org/routers/api/v1/activitypub" + "forgejo.org/routers/api/v1/admin" + "forgejo.org/routers/api/v1/misc" + "forgejo.org/routers/api/v1/notify" + "forgejo.org/routers/api/v1/org" + "forgejo.org/routers/api/v1/packages" + "forgejo.org/routers/api/v1/repo" + "forgejo.org/routers/api/v1/settings" + "forgejo.org/routers/api/v1/user" + "forgejo.org/services/actions" + "forgejo.org/services/auth" + "forgejo.org/services/context" + "forgejo.org/services/forms" - _ "code.gitea.io/gitea/routers/api/v1/swagger" // for swagger generation + _ "forgejo.org/routers/api/v1/swagger" // for swagger generation "code.forgejo.org/go-chi/binding" ) diff --git a/routers/api/v1/misc/gitignore.go b/routers/api/v1/misc/gitignore.go index dffd771752..ec57038a9b 100644 --- a/routers/api/v1/misc/gitignore.go +++ b/routers/api/v1/misc/gitignore.go @@ -6,11 +6,11 @@ package misc import ( "net/http" - "code.gitea.io/gitea/modules/options" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/options" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/services/context" ) // Shows a list of all Gitignore templates diff --git a/routers/api/v1/misc/label_templates.go b/routers/api/v1/misc/label_templates.go index cc11f37626..dad5ee34c1 100644 --- a/routers/api/v1/misc/label_templates.go +++ b/routers/api/v1/misc/label_templates.go @@ -6,10 +6,10 @@ package misc import ( "net/http" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/util" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // Shows a list of all Label templates diff --git a/routers/api/v1/misc/licenses.go b/routers/api/v1/misc/licenses.go index 2a980f5084..c9b657a890 100644 --- a/routers/api/v1/misc/licenses.go +++ b/routers/api/v1/misc/licenses.go @@ -8,12 +8,12 @@ import ( "net/http" "net/url" - "code.gitea.io/gitea/modules/options" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/options" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/services/context" ) // Returns a list of all License templates diff --git a/routers/api/v1/misc/markup.go b/routers/api/v1/misc/markup.go index 155ad15712..e9f03fdd5c 100644 --- a/routers/api/v1/misc/markup.go +++ b/routers/api/v1/misc/markup.go @@ -6,12 +6,12 @@ package misc import ( "net/http" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/common" + "forgejo.org/services/context" ) // Markup render markup document to HTML diff --git a/routers/api/v1/misc/markup_test.go b/routers/api/v1/misc/markup_test.go index 32568b805f..3335199e12 100644 --- a/routers/api/v1/misc/markup_test.go +++ b/routers/api/v1/misc/markup_test.go @@ -10,11 +10,11 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" ) diff --git a/routers/api/v1/misc/nodeinfo.go b/routers/api/v1/misc/nodeinfo.go index 70187e0ebf..9631de7edd 100644 --- a/routers/api/v1/misc/nodeinfo.go +++ b/routers/api/v1/misc/nodeinfo.go @@ -7,11 +7,11 @@ import ( "net/http" "time" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/services/context" ) const cacheKeyNodeInfoUsage = "API_NodeInfoUsage" diff --git a/routers/api/v1/misc/signing.go b/routers/api/v1/misc/signing.go index 24a46c1e70..945df6068f 100644 --- a/routers/api/v1/misc/signing.go +++ b/routers/api/v1/misc/signing.go @@ -7,8 +7,8 @@ import ( "fmt" "net/http" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/context" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/context" ) // SigningKey returns the public key of the default signing key if it exists diff --git a/routers/api/v1/misc/version.go b/routers/api/v1/misc/version.go index 3417475d21..5802c12462 100644 --- a/routers/api/v1/misc/version.go +++ b/routers/api/v1/misc/version.go @@ -6,9 +6,9 @@ package misc import ( "net/http" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/services/context" ) // Version shows the version of the Gitea server diff --git a/routers/api/v1/notify/notifications.go b/routers/api/v1/notify/notifications.go index 46b3c7f5e7..2e19fa0b9c 100644 --- a/routers/api/v1/notify/notifications.go +++ b/routers/api/v1/notify/notifications.go @@ -7,11 +7,11 @@ import ( "net/http" "strings" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" ) // NewAvailable check if unread notifications exist diff --git a/routers/api/v1/notify/repo.go b/routers/api/v1/notify/repo.go index 1744426ee8..64a9654d48 100644 --- a/routers/api/v1/notify/repo.go +++ b/routers/api/v1/notify/repo.go @@ -8,11 +8,11 @@ import ( "strings" "time" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + "forgejo.org/modules/structs" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) func statusStringToNotificationStatus(status string) activities_model.NotificationStatus { diff --git a/routers/api/v1/notify/threads.go b/routers/api/v1/notify/threads.go index 8e12d359cb..57c78f5f15 100644 --- a/routers/api/v1/notify/threads.go +++ b/routers/api/v1/notify/threads.go @@ -7,11 +7,11 @@ import ( "fmt" "net/http" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // GetThread get notification by ID diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go index 879f484cce..2b8cc8c112 100644 --- a/routers/api/v1/notify/user.go +++ b/routers/api/v1/notify/user.go @@ -7,11 +7,11 @@ import ( "net/http" "time" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + "forgejo.org/modules/structs" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListNotifications list users's notification threads diff --git a/routers/api/v1/org/action.go b/routers/api/v1/org/action.go index 99e70e0740..0d8550a019 100644 --- a/routers/api/v1/org/action.go +++ b/routers/api/v1/org/action.go @@ -7,17 +7,17 @@ import ( "errors" "net/http" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - secret_model "code.gitea.io/gitea/models/secret" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/shared" - "code.gitea.io/gitea/routers/api/v1/utils" - actions_service "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/context" - secret_service "code.gitea.io/gitea/services/secrets" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + secret_model "forgejo.org/models/secret" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/shared" + "forgejo.org/routers/api/v1/utils" + actions_service "forgejo.org/services/actions" + "forgejo.org/services/context" + secret_service "forgejo.org/services/secrets" ) // ListActionsSecrets list an organization's actions secrets diff --git a/routers/api/v1/org/avatar.go b/routers/api/v1/org/avatar.go index f11eb6c1cd..824a9f3495 100644 --- a/routers/api/v1/org/avatar.go +++ b/routers/api/v1/org/avatar.go @@ -7,10 +7,10 @@ import ( "encoding/base64" "net/http" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - user_service "code.gitea.io/gitea/services/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + user_service "forgejo.org/services/user" ) // UpdateAvatarupdates the Avatar of an Organisation diff --git a/routers/api/v1/org/hook.go b/routers/api/v1/org/hook.go index c1dc0519ea..2877acd3c7 100644 --- a/routers/api/v1/org/hook.go +++ b/routers/api/v1/org/hook.go @@ -6,11 +6,11 @@ package org import ( "net/http" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - webhook_service "code.gitea.io/gitea/services/webhook" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + webhook_service "forgejo.org/services/webhook" ) // ListHooks list an organziation's webhooks diff --git a/routers/api/v1/org/label.go b/routers/api/v1/org/label.go index b5ec54ccf4..172d531229 100644 --- a/routers/api/v1/org/label.go +++ b/routers/api/v1/org/label.go @@ -8,13 +8,13 @@ import ( "strconv" "strings" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/label" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/label" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListLabels list all the labels of an organization diff --git a/routers/api/v1/org/member.go b/routers/api/v1/org/member.go index 0895c53328..c6e67b2ab9 100644 --- a/routers/api/v1/org/member.go +++ b/routers/api/v1/org/member.go @@ -7,14 +7,14 @@ import ( "net/http" "net/url" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/user" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models" + "forgejo.org/models/organization" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/user" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // listMembers list an organization's members diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index 7d503c3ad7..fcf2c6b412 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -8,21 +8,21 @@ import ( "fmt" "net/http" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/user" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/org" - user_service "code.gitea.io/gitea/services/user" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + api "forgejo.org/modules/structs" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/user" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/org" + user_service "forgejo.org/services/user" ) func listUserOrgs(ctx *context.APIContext, u *user_model.User) { diff --git a/routers/api/v1/org/quota.go b/routers/api/v1/org/quota.go index 57c41f5ce3..f4f89b0aaf 100644 --- a/routers/api/v1/org/quota.go +++ b/routers/api/v1/org/quota.go @@ -4,8 +4,8 @@ package org import ( - "code.gitea.io/gitea/routers/api/v1/shared" - "code.gitea.io/gitea/services/context" + "forgejo.org/routers/api/v1/shared" + "forgejo.org/services/context" ) // GetQuota returns the quota information for a given organization diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index bf28d54c42..680cc19ce8 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.go @@ -8,22 +8,22 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/models" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/user" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - org_service "code.gitea.io/gitea/services/org" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/user" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + org_service "forgejo.org/services/org" + repo_service "forgejo.org/services/repository" ) // ListTeams list all the teams of an organization diff --git a/routers/api/v1/packages/package.go b/routers/api/v1/packages/package.go index a98b5dbc69..03057c4feb 100644 --- a/routers/api/v1/packages/package.go +++ b/routers/api/v1/packages/package.go @@ -7,15 +7,15 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/optional" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/optional" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + packages_service "forgejo.org/services/packages" ) // ListPackages gets all packages of an owner diff --git a/routers/api/v1/repo/action.go b/routers/api/v1/repo/action.go index 2ce9ad253c..a39d4836e1 100644 --- a/routers/api/v1/repo/action.go +++ b/routers/api/v1/repo/action.go @@ -7,18 +7,18 @@ import ( "errors" "net/http" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - secret_model "code.gitea.io/gitea/models/secret" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/shared" - "code.gitea.io/gitea/routers/api/v1/utils" - actions_service "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - secret_service "code.gitea.io/gitea/services/secrets" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + secret_model "forgejo.org/models/secret" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/shared" + "forgejo.org/routers/api/v1/utils" + actions_service "forgejo.org/services/actions" + "forgejo.org/services/context" + "forgejo.org/services/convert" + secret_service "forgejo.org/services/secrets" ) // ListActionsSecrets list an repo's actions secrets diff --git a/routers/api/v1/repo/avatar.go b/routers/api/v1/repo/avatar.go index 698337ffd2..84aafe764d 100644 --- a/routers/api/v1/repo/avatar.go +++ b/routers/api/v1/repo/avatar.go @@ -7,10 +7,10 @@ import ( "encoding/base64" "net/http" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" ) // UpdateVatar updates the Avatar of an Repo diff --git a/routers/api/v1/repo/blob.go b/routers/api/v1/repo/blob.go index 3b116666ea..8ed57d4787 100644 --- a/routers/api/v1/repo/blob.go +++ b/routers/api/v1/repo/blob.go @@ -6,8 +6,8 @@ package repo import ( "net/http" - "code.gitea.io/gitea/services/context" - files_service "code.gitea.io/gitea/services/repository/files" + "forgejo.org/services/context" + files_service "forgejo.org/services/repository/files" ) // GetBlob get the blob of a repository file. diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index 3ca97f7770..6263360a8e 100644 --- a/routers/api/v1/repo/branch.go +++ b/routers/api/v1/repo/branch.go @@ -9,22 +9,22 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/optional" - repo_module "code.gitea.io/gitea/modules/repository" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - pull_service "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/optional" + repo_module "forgejo.org/modules/repository" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + pull_service "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" ) // GetBranch get a branch of a repository diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go index 14915d31ba..3ef7721ef5 100644 --- a/routers/api/v1/repo/collaborators.go +++ b/routers/api/v1/repo/collaborators.go @@ -8,18 +8,18 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - repo_module "code.gitea.io/gitea/modules/repository" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + repo_module "forgejo.org/modules/repository" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + repo_service "forgejo.org/services/repository" ) // ListCollaborators list a repository's collaborators diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go index c5e8cf99eb..4221e59f17 100644 --- a/routers/api/v1/repo/commits.go +++ b/routers/api/v1/repo/commits.go @@ -10,14 +10,14 @@ import ( "net/http" "strconv" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // GetSingleCommit get a commit via sha diff --git a/routers/api/v1/repo/compare.go b/routers/api/v1/repo/compare.go index 7781e996f5..9c941ea07f 100644 --- a/routers/api/v1/repo/compare.go +++ b/routers/api/v1/repo/compare.go @@ -7,11 +7,11 @@ import ( "net/http" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // CompareDiff compare two branches or commits diff --git a/routers/api/v1/repo/download.go b/routers/api/v1/repo/download.go index 3a0401a5b0..86910123e6 100644 --- a/routers/api/v1/repo/download.go +++ b/routers/api/v1/repo/download.go @@ -7,10 +7,10 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/services/context" - archiver_service "code.gitea.io/gitea/services/repository/archiver" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/services/context" + archiver_service "forgejo.org/services/repository/archiver" ) func DownloadArchive(ctx *context.APIContext) { diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index 55b245676d..fb71d76388 100644 --- a/routers/api/v1/repo/file.go +++ b/routers/api/v1/repo/file.go @@ -14,23 +14,23 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/context" - archiver_service "code.gitea.io/gitea/services/repository/archiver" - files_service "code.gitea.io/gitea/services/repository/files" + "forgejo.org/models" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/common" + "forgejo.org/services/context" + archiver_service "forgejo.org/services/repository/archiver" + files_service "forgejo.org/services/repository/files" ) const ( diff --git a/routers/api/v1/repo/flags.go b/routers/api/v1/repo/flags.go index ac5cb2e6d6..46af528f0f 100644 --- a/routers/api/v1/repo/flags.go +++ b/routers/api/v1/repo/flags.go @@ -6,9 +6,9 @@ package repo import ( "net/http" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" ) func ListFlags(ctx *context.APIContext) { diff --git a/routers/api/v1/repo/fork.go b/routers/api/v1/repo/fork.go index c9dc9681c9..edb85cf54f 100644 --- a/routers/api/v1/repo/fork.go +++ b/routers/api/v1/repo/fork.go @@ -9,19 +9,19 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + repo_service "forgejo.org/services/repository" ) // ListForks list a repository's forks diff --git a/routers/api/v1/repo/git_hook.go b/routers/api/v1/repo/git_hook.go index 26ae84d08d..31957c8b4d 100644 --- a/routers/api/v1/repo/git_hook.go +++ b/routers/api/v1/repo/git_hook.go @@ -6,11 +6,11 @@ package repo import ( "net/http" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListGitHooks list all Git hooks of a repository diff --git a/routers/api/v1/repo/git_ref.go b/routers/api/v1/repo/git_ref.go index 54da5eeaa7..b2e52ad95d 100644 --- a/routers/api/v1/repo/git_ref.go +++ b/routers/api/v1/repo/git_ref.go @@ -7,10 +7,10 @@ import ( "net/http" "net/url" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" ) // GetGitAllRefs get ref or an list all the refs of a repository diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go index ffd2313591..5d277604b8 100644 --- a/routers/api/v1/repo/hook.go +++ b/routers/api/v1/repo/hook.go @@ -7,19 +7,19 @@ package repo import ( "net/http" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - webhook_service "code.gitea.io/gitea/services/webhook" + "forgejo.org/models/db" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + webhook_service "forgejo.org/services/webhook" ) // ListHooks list all hooks of a repository diff --git a/routers/api/v1/repo/hook_test.go b/routers/api/v1/repo/hook_test.go index a8065e4a60..77c86388f5 100644 --- a/routers/api/v1/repo/hook_test.go +++ b/routers/api/v1/repo/hook_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/models/unittest" + "forgejo.org/models/webhook" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" ) diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 57fc4b2f17..5495c4a6ba 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -12,23 +12,23 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - issue_indexer "code.gitea.io/gitea/modules/indexer/issues" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - issue_service "code.gitea.io/gitea/services/issue" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + issue_indexer "forgejo.org/modules/indexer/issues" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + issue_service "forgejo.org/services/issue" ) // SearchIssues searches for issues across the repositories that the user has access to diff --git a/routers/api/v1/repo/issue_attachment.go b/routers/api/v1/repo/issue_attachment.go index a972ab0374..0cb1875af1 100644 --- a/routers/api/v1/repo/issue_attachment.go +++ b/routers/api/v1/repo/issue_attachment.go @@ -7,17 +7,17 @@ import ( "net/http" "time" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/attachment" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/convert" - issue_service "code.gitea.io/gitea/services/issue" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/attachment" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/convert" + issue_service "forgejo.org/services/issue" ) // GetIssueAttachment gets a single attachment of the issue diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index 2fe7aaacb4..1b98c154c8 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -9,18 +9,18 @@ import ( "errors" "net/http" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - issue_service "code.gitea.io/gitea/services/issue" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + issue_service "forgejo.org/services/issue" ) // ListIssueComments list all the comments of an issue diff --git a/routers/api/v1/repo/issue_comment_attachment.go b/routers/api/v1/repo/issue_comment_attachment.go index c45e2ebe89..9edc9a3cb1 100644 --- a/routers/api/v1/repo/issue_comment_attachment.go +++ b/routers/api/v1/repo/issue_comment_attachment.go @@ -7,17 +7,17 @@ import ( "net/http" "time" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/attachment" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/convert" - issue_service "code.gitea.io/gitea/services/issue" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/attachment" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/convert" + issue_service "forgejo.org/services/issue" ) // GetIssueCommentAttachment gets a single attachment of the comment diff --git a/routers/api/v1/repo/issue_dependency.go b/routers/api/v1/repo/issue_dependency.go index c40e92c01b..bed1e7ecf9 100644 --- a/routers/api/v1/repo/issue_dependency.go +++ b/routers/api/v1/repo/issue_dependency.go @@ -7,15 +7,15 @@ package repo import ( "net/http" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // GetIssueDependencies list an issue's dependencies diff --git a/routers/api/v1/repo/issue_label.go b/routers/api/v1/repo/issue_label.go index 6458fbf514..85af1149ff 100644 --- a/routers/api/v1/repo/issue_label.go +++ b/routers/api/v1/repo/issue_label.go @@ -9,12 +9,12 @@ import ( "net/http" "reflect" - issues_model "code.gitea.io/gitea/models/issues" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - issue_service "code.gitea.io/gitea/services/issue" + issues_model "forgejo.org/models/issues" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" + issue_service "forgejo.org/services/issue" ) // ListIssueLabels list all the labels of an issue diff --git a/routers/api/v1/repo/issue_pin.go b/routers/api/v1/repo/issue_pin.go index af3e06332a..84079ed452 100644 --- a/routers/api/v1/repo/issue_pin.go +++ b/routers/api/v1/repo/issue_pin.go @@ -6,10 +6,10 @@ package repo import ( "net/http" - issues_model "code.gitea.io/gitea/models/issues" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + issues_model "forgejo.org/models/issues" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // PinIssue pins a issue diff --git a/routers/api/v1/repo/issue_reaction.go b/routers/api/v1/repo/issue_reaction.go index c395255c13..2d6218bf46 100644 --- a/routers/api/v1/repo/issue_reaction.go +++ b/routers/api/v1/repo/issue_reaction.go @@ -7,14 +7,14 @@ import ( "errors" "net/http" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - issue_service "code.gitea.io/gitea/services/issue" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + issue_service "forgejo.org/services/issue" ) // GetIssueCommentReactions list reactions of a comment from an issue diff --git a/routers/api/v1/repo/issue_stopwatch.go b/routers/api/v1/repo/issue_stopwatch.go index dd61967ed0..83bcabbe15 100644 --- a/routers/api/v1/repo/issue_stopwatch.go +++ b/routers/api/v1/repo/issue_stopwatch.go @@ -7,10 +7,10 @@ import ( "errors" "net/http" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + issues_model "forgejo.org/models/issues" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // StartIssueStopwatch creates a stopwatch for the given issue. diff --git a/routers/api/v1/repo/issue_subscription.go b/routers/api/v1/repo/issue_subscription.go index 6b29218575..33654dc136 100644 --- a/routers/api/v1/repo/issue_subscription.go +++ b/routers/api/v1/repo/issue_subscription.go @@ -7,12 +7,12 @@ import ( "fmt" "net/http" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // AddIssueSubscription Subscribe user to issue diff --git a/routers/api/v1/repo/issue_tracked_time.go b/routers/api/v1/repo/issue_tracked_time.go index 3d8abfa5f3..7d88b1b2cd 100644 --- a/routers/api/v1/repo/issue_tracked_time.go +++ b/routers/api/v1/repo/issue_tracked_time.go @@ -8,15 +8,15 @@ import ( "net/http" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListTrackedTimes list all the tracked times of an issue diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go index 88444a2625..2abf95a189 100644 --- a/routers/api/v1/repo/key.go +++ b/routers/api/v1/repo/key.go @@ -10,18 +10,18 @@ import ( "net/http" "net/url" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // appendPrivateInformation appends the owner and key type information to api.PublicKey diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index b6eb51fd20..bf722ace34 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -8,13 +8,13 @@ import ( "net/http" "strconv" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/label" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/label" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListLabels list all the labels of a repository diff --git a/routers/api/v1/repo/language.go b/routers/api/v1/repo/language.go index f1d5bbe45f..498aac3447 100644 --- a/routers/api/v1/repo/language.go +++ b/routers/api/v1/repo/language.go @@ -8,9 +8,9 @@ import ( "net/http" "strconv" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/context" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + "forgejo.org/services/context" ) type languageResponse []*repo_model.LanguageStat diff --git a/routers/api/v1/repo/main_test.go b/routers/api/v1/repo/main_test.go index 451f34d72f..a3655fb76b 100644 --- a/routers/api/v1/repo/main_test.go +++ b/routers/api/v1/repo/main_test.go @@ -6,9 +6,9 @@ package repo import ( "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - webhook_service "code.gitea.io/gitea/services/webhook" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + webhook_service "forgejo.org/services/webhook" ) func TestMain(m *testing.M) { diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go index 723a696b92..d0ab5e270e 100644 --- a/routers/api/v1/repo/migrate.go +++ b/routers/api/v1/repo/migrate.go @@ -10,28 +10,28 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/migrations" - notify_service "code.gitea.io/gitea/services/notify" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/graceful" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/forms" + "forgejo.org/services/migrations" + notify_service "forgejo.org/services/notify" + repo_service "forgejo.org/services/repository" ) // Migrate migrate remote git repository to gitea diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go index b9534016e4..7aa9881bc4 100644 --- a/routers/api/v1/repo/milestone.go +++ b/routers/api/v1/repo/milestone.go @@ -9,15 +9,15 @@ import ( "strconv" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/optional" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/optional" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListMilestones list milestones for a repository diff --git a/routers/api/v1/repo/mirror.go b/routers/api/v1/repo/mirror.go index 11b026abb7..bc48c6acb7 100644 --- a/routers/api/v1/repo/mirror.go +++ b/routers/api/v1/repo/mirror.go @@ -9,21 +9,21 @@ import ( "net/http" "time" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/migrations" - mirror_service "code.gitea.io/gitea/services/mirror" + "forgejo.org/models" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/forms" + "forgejo.org/services/migrations" + mirror_service "forgejo.org/services/mirror" ) // MirrorSync adds a mirrored repository to the sync queue diff --git a/routers/api/v1/repo/notes.go b/routers/api/v1/repo/notes.go index 9ed78ce80f..87903d9f36 100644 --- a/routers/api/v1/repo/notes.go +++ b/routers/api/v1/repo/notes.go @@ -7,11 +7,11 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // GetNote Get a note corresponding to a single commit from a repository diff --git a/routers/api/v1/repo/patch.go b/routers/api/v1/repo/patch.go index 27c5c17dce..6f35891627 100644 --- a/routers/api/v1/repo/patch.go +++ b/routers/api/v1/repo/patch.go @@ -7,14 +7,14 @@ import ( "net/http" "time" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/repository/files" + "forgejo.org/models" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/repository/files" ) // ApplyDiffPatch handles API call for applying a patch diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go index 1a791e8dd5..25c85e7531 100644 --- a/routers/api/v1/repo/pull.go +++ b/routers/api/v1/repo/pull.go @@ -12,35 +12,35 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - activities_model "code.gitea.io/gitea/models/activities" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - pull_model "code.gitea.io/gitea/models/pull" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/automerge" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/gitdiff" - issue_service "code.gitea.io/gitea/services/issue" - notify_service "code.gitea.io/gitea/services/notify" - pull_service "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + activities_model "forgejo.org/models/activities" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + pull_model "forgejo.org/models/pull" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/automerge" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/forms" + "forgejo.org/services/gitdiff" + issue_service "forgejo.org/services/issue" + notify_service "forgejo.org/services/notify" + pull_service "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" ) // ListPullRequests returns a list of all PRs diff --git a/routers/api/v1/repo/pull_review.go b/routers/api/v1/repo/pull_review.go index 8fba085ff7..aa4c7318a2 100644 --- a/routers/api/v1/repo/pull_review.go +++ b/routers/api/v1/repo/pull_review.go @@ -8,18 +8,18 @@ import ( "net/http" "strings" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - issue_service "code.gitea.io/gitea/services/issue" - pull_service "code.gitea.io/gitea/services/pull" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + issue_service "forgejo.org/services/issue" + pull_service "forgejo.org/services/pull" ) // ListPullReviews lists all reviews of a pull request diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index 2fc5f095cb..68254a530a 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/release.go @@ -7,18 +7,18 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - release_service "code.gitea.io/gitea/services/release" + "forgejo.org/models" + "forgejo.org/models/db" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + release_service "forgejo.org/services/release" ) // GetRelease get a single release of a repository diff --git a/routers/api/v1/repo/release_attachment.go b/routers/api/v1/repo/release_attachment.go index d569f6e928..ba273a8d2a 100644 --- a/routers/api/v1/repo/release_attachment.go +++ b/routers/api/v1/repo/release_attachment.go @@ -11,15 +11,15 @@ import ( "path" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/attachment" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/convert" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/attachment" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/convert" ) func checkReleaseMatchRepo(ctx *context.APIContext, releaseID int64) bool { diff --git a/routers/api/v1/repo/release_tags.go b/routers/api/v1/repo/release_tags.go index f845fad53b..b27f8584bc 100644 --- a/routers/api/v1/repo/release_tags.go +++ b/routers/api/v1/repo/release_tags.go @@ -6,11 +6,11 @@ package repo import ( "net/http" - "code.gitea.io/gitea/models" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - releaseservice "code.gitea.io/gitea/services/release" + "forgejo.org/models" + repo_model "forgejo.org/models/repo" + "forgejo.org/services/context" + "forgejo.org/services/convert" + releaseservice "forgejo.org/services/release" ) // GetReleaseByTag get a single release of a repository by tag name diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 457f179f39..59b32eb667 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -11,32 +11,32 @@ import ( "strings" "time" - actions_model "code.gitea.io/gitea/models/actions" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/label" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - actions_service "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/issue" - repo_service "code.gitea.io/gitea/services/repository" - wiki_service "code.gitea.io/gitea/services/wiki" + actions_model "forgejo.org/models/actions" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/label" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + actions_service "forgejo.org/services/actions" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/issue" + repo_service "forgejo.org/services/repository" + wiki_service "forgejo.org/services/wiki" ) // Search repositories via options diff --git a/routers/api/v1/repo/repo_test.go b/routers/api/v1/repo/repo_test.go index 8d6ca9e3b5..69eeb1cfdf 100644 --- a/routers/api/v1/repo/repo_test.go +++ b/routers/api/v1/repo/repo_test.go @@ -7,11 +7,11 @@ import ( "net/http" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/contexttest" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" ) diff --git a/routers/api/v1/repo/star.go b/routers/api/v1/repo/star.go index 99676de119..7a836cd506 100644 --- a/routers/api/v1/repo/star.go +++ b/routers/api/v1/repo/star.go @@ -6,11 +6,11 @@ package repo import ( "net/http" - repo_model "code.gitea.io/gitea/models/repo" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + repo_model "forgejo.org/models/repo" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListStargazers list a repository's stargazers diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go index 9e36ea0aed..f02150f881 100644 --- a/routers/api/v1/repo/status.go +++ b/routers/api/v1/repo/status.go @@ -7,14 +7,14 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - commitstatus_service "code.gitea.io/gitea/services/repository/commitstatus" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + commitstatus_service "forgejo.org/services/repository/commitstatus" ) // NewCommitStatus creates a new CommitStatus diff --git a/routers/api/v1/repo/subscriber.go b/routers/api/v1/repo/subscriber.go index 8584182857..37a2bef85c 100644 --- a/routers/api/v1/repo/subscriber.go +++ b/routers/api/v1/repo/subscriber.go @@ -6,11 +6,11 @@ package repo import ( "net/http" - repo_model "code.gitea.io/gitea/models/repo" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + repo_model "forgejo.org/models/repo" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListSubscribers list a repo's subscribers (i.e. watchers) diff --git a/routers/api/v1/repo/tag.go b/routers/api/v1/repo/tag.go index 7dbdd1fcbd..f53a6da811 100644 --- a/routers/api/v1/repo/tag.go +++ b/routers/api/v1/repo/tag.go @@ -9,17 +9,17 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - releaseservice "code.gitea.io/gitea/services/release" + "forgejo.org/models" + git_model "forgejo.org/models/git" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + releaseservice "forgejo.org/services/release" ) // ListTags list all the tags of a repository diff --git a/routers/api/v1/repo/teams.go b/routers/api/v1/repo/teams.go index 0ecf3a39d8..4e9d3c40a9 100644 --- a/routers/api/v1/repo/teams.go +++ b/routers/api/v1/repo/teams.go @@ -7,11 +7,11 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - org_service "code.gitea.io/gitea/services/org" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/organization" + "forgejo.org/services/context" + "forgejo.org/services/convert" + org_service "forgejo.org/services/org" + repo_service "forgejo.org/services/repository" ) // ListTeams list a repository's teams diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go index 1d8e675bde..daa637936e 100644 --- a/routers/api/v1/repo/topic.go +++ b/routers/api/v1/repo/topic.go @@ -7,13 +7,13 @@ import ( "net/http" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListTopics returns list of current topics for repo diff --git a/routers/api/v1/repo/transfer.go b/routers/api/v1/repo/transfer.go index 0715aed064..3b6cb4d3f2 100644 --- a/routers/api/v1/repo/transfer.go +++ b/routers/api/v1/repo/transfer.go @@ -8,19 +8,19 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" + repo_service "forgejo.org/services/repository" ) // Transfer transfers the ownership of a repository diff --git a/routers/api/v1/repo/tree.go b/routers/api/v1/repo/tree.go index 353a996d5b..af92170abb 100644 --- a/routers/api/v1/repo/tree.go +++ b/routers/api/v1/repo/tree.go @@ -6,8 +6,8 @@ package repo import ( "net/http" - "code.gitea.io/gitea/services/context" - files_service "code.gitea.io/gitea/services/repository/files" + "forgejo.org/services/context" + files_service "forgejo.org/services/repository/files" ) // GetTree get the tree of a repository. diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go index 12aaa8edf8..bb4cf0f211 100644 --- a/routers/api/v1/repo/wiki.go +++ b/routers/api/v1/repo/wiki.go @@ -9,17 +9,17 @@ import ( "net/http" "net/url" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - notify_service "code.gitea.io/gitea/services/notify" - wiki_service "code.gitea.io/gitea/services/wiki" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" + notify_service "forgejo.org/services/notify" + wiki_service "forgejo.org/services/wiki" ) // NewWikiPage response for wiki create request diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go index c422315b22..32ef50423c 100644 --- a/routers/api/v1/settings/settings.go +++ b/routers/api/v1/settings/settings.go @@ -6,9 +6,9 @@ package settings import ( "net/http" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" ) // GetGeneralUISettings returns instance's global settings for ui diff --git a/routers/api/v1/shared/quota.go b/routers/api/v1/shared/quota.go index b892df4b2f..ceba9fea57 100644 --- a/routers/api/v1/shared/quota.go +++ b/routers/api/v1/shared/quota.go @@ -6,10 +6,10 @@ package shared import ( "net/http" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + quota_model "forgejo.org/models/quota" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) func GetQuota(ctx *context.APIContext, userID int64) { diff --git a/routers/api/v1/shared/runners.go b/routers/api/v1/shared/runners.go index 9c27078326..a7811a95b5 100644 --- a/routers/api/v1/shared/runners.go +++ b/routers/api/v1/shared/runners.go @@ -8,11 +8,11 @@ import ( "net/http" "strings" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/services/context" ) // RegistrationToken is a string used to register a runner with a server diff --git a/routers/api/v1/swagger/action.go b/routers/api/v1/swagger/action.go index 2174b1ff17..6fc58abd76 100644 --- a/routers/api/v1/swagger/action.go +++ b/routers/api/v1/swagger/action.go @@ -3,7 +3,7 @@ package swagger -import api "code.gitea.io/gitea/modules/structs" +import api "forgejo.org/modules/structs" // SecretList // swagger:response SecretList diff --git a/routers/api/v1/swagger/activity.go b/routers/api/v1/swagger/activity.go index 95e1ba9035..64466e5e7b 100644 --- a/routers/api/v1/swagger/activity.go +++ b/routers/api/v1/swagger/activity.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // ActivityFeedsList diff --git a/routers/api/v1/swagger/activitypub.go b/routers/api/v1/swagger/activitypub.go index 91341669da..6235009572 100644 --- a/routers/api/v1/swagger/activitypub.go +++ b/routers/api/v1/swagger/activitypub.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // ActivityPub diff --git a/routers/api/v1/swagger/app.go b/routers/api/v1/swagger/app.go index 6a08b11874..7d62b6d494 100644 --- a/routers/api/v1/swagger/app.go +++ b/routers/api/v1/swagger/app.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // OAuth2Application diff --git a/routers/api/v1/swagger/cron.go b/routers/api/v1/swagger/cron.go index 00cfbe0adb..2c26b22441 100644 --- a/routers/api/v1/swagger/cron.go +++ b/routers/api/v1/swagger/cron.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // CronList diff --git a/routers/api/v1/swagger/issue.go b/routers/api/v1/swagger/issue.go index 62458a3424..b2b5de2228 100644 --- a/routers/api/v1/swagger/issue.go +++ b/routers/api/v1/swagger/issue.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // Issue diff --git a/routers/api/v1/swagger/key.go b/routers/api/v1/swagger/key.go index 8390833589..27aa72458d 100644 --- a/routers/api/v1/swagger/key.go +++ b/routers/api/v1/swagger/key.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // PublicKey diff --git a/routers/api/v1/swagger/misc.go b/routers/api/v1/swagger/misc.go index 0553eac2a9..df95a94571 100644 --- a/routers/api/v1/swagger/misc.go +++ b/routers/api/v1/swagger/misc.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // ServerVersion diff --git a/routers/api/v1/swagger/nodeinfo.go b/routers/api/v1/swagger/nodeinfo.go index 8650dfa092..227db61648 100644 --- a/routers/api/v1/swagger/nodeinfo.go +++ b/routers/api/v1/swagger/nodeinfo.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // NodeInfo diff --git a/routers/api/v1/swagger/notify.go b/routers/api/v1/swagger/notify.go index 743d807a0a..cd60ef2bcb 100644 --- a/routers/api/v1/swagger/notify.go +++ b/routers/api/v1/swagger/notify.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // NotificationThread diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index 48c11c467f..4860f10c98 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -5,9 +5,9 @@ package swagger import ( - ffed "code.gitea.io/gitea/modules/forgefed" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/forms" + ffed "forgejo.org/modules/forgefed" + api "forgejo.org/modules/structs" + "forgejo.org/services/forms" ) // not actually a response, just a hack to get go-swagger to include definitions diff --git a/routers/api/v1/swagger/org.go b/routers/api/v1/swagger/org.go index 0105446b00..2d081708a8 100644 --- a/routers/api/v1/swagger/org.go +++ b/routers/api/v1/swagger/org.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // Organization diff --git a/routers/api/v1/swagger/package.go b/routers/api/v1/swagger/package.go index eada12d1ea..dd1b45e9aa 100644 --- a/routers/api/v1/swagger/package.go +++ b/routers/api/v1/swagger/package.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // Package diff --git a/routers/api/v1/swagger/quota.go b/routers/api/v1/swagger/quota.go index 35e633c39d..b2ea59fb31 100644 --- a/routers/api/v1/swagger/quota.go +++ b/routers/api/v1/swagger/quota.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // QuotaInfo diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go index ca214b4900..445e3417fb 100644 --- a/routers/api/v1/swagger/repo.go +++ b/routers/api/v1/swagger/repo.go @@ -4,7 +4,7 @@ package swagger import ( - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" ) // Repository diff --git a/routers/api/v1/swagger/settings.go b/routers/api/v1/swagger/settings.go index a9466699df..3a07eaf2e0 100644 --- a/routers/api/v1/swagger/settings.go +++ b/routers/api/v1/swagger/settings.go @@ -3,7 +3,7 @@ package swagger -import api "code.gitea.io/gitea/modules/structs" +import api "forgejo.org/modules/structs" // GeneralRepoSettings // swagger:response GeneralRepoSettings diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go index 37e28664fb..805cfe3df4 100644 --- a/routers/api/v1/swagger/user.go +++ b/routers/api/v1/swagger/user.go @@ -4,8 +4,8 @@ package swagger import ( - activities_model "code.gitea.io/gitea/models/activities" - api "code.gitea.io/gitea/modules/structs" + activities_model "forgejo.org/models/activities" + api "forgejo.org/modules/structs" ) // User diff --git a/routers/api/v1/user/action.go b/routers/api/v1/user/action.go index c34c5950c0..dd816cb7ae 100644 --- a/routers/api/v1/user/action.go +++ b/routers/api/v1/user/action.go @@ -7,15 +7,15 @@ import ( "errors" "net/http" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - actions_service "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/context" - secret_service "code.gitea.io/gitea/services/secrets" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + actions_service "forgejo.org/services/actions" + "forgejo.org/services/context" + secret_service "forgejo.org/services/secrets" ) // create or update one secret of the user scope diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index c4fb2ea38d..138ad5a1d2 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.go @@ -11,13 +11,13 @@ import ( "strconv" "strings" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // ListAccessTokens list all the access tokens diff --git a/routers/api/v1/user/avatar.go b/routers/api/v1/user/avatar.go index d3833a32bb..453682a37b 100644 --- a/routers/api/v1/user/avatar.go +++ b/routers/api/v1/user/avatar.go @@ -7,10 +7,10 @@ import ( "encoding/base64" "net/http" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - user_service "code.gitea.io/gitea/services/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + user_service "forgejo.org/services/user" ) // UpdateAvatar updates the Avatar of an User diff --git a/routers/api/v1/user/email.go b/routers/api/v1/user/email.go index 6bd7e10dd8..7b18ea97b0 100644 --- a/routers/api/v1/user/email.go +++ b/routers/api/v1/user/email.go @@ -7,13 +7,13 @@ import ( "fmt" "net/http" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - user_service "code.gitea.io/gitea/services/user" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" + user_service "forgejo.org/services/user" ) // ListEmails list all of the authenticated user's email addresses diff --git a/routers/api/v1/user/follower.go b/routers/api/v1/user/follower.go index 784e2325a3..643ad49b80 100644 --- a/routers/api/v1/user/follower.go +++ b/routers/api/v1/user/follower.go @@ -8,11 +8,11 @@ import ( "errors" "net/http" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) func responseAPIUsers(ctx *context.APIContext, users []*user_model.User) { diff --git a/routers/api/v1/user/gpg_key.go b/routers/api/v1/user/gpg_key.go index 652007a78b..1581358b66 100644 --- a/routers/api/v1/user/gpg_key.go +++ b/routers/api/v1/user/gpg_key.go @@ -8,15 +8,15 @@ import ( "net/http" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) func listGPGKeys(ctx *context.APIContext, uid int64, listOptions db.ListOptions) { diff --git a/routers/api/v1/user/helper.go b/routers/api/v1/user/helper.go index 8b5c64e291..fe0943091f 100644 --- a/routers/api/v1/user/helper.go +++ b/routers/api/v1/user/helper.go @@ -6,8 +6,8 @@ package user import ( "net/http" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/services/context" + user_model "forgejo.org/models/user" + "forgejo.org/services/context" ) // GetUserByParamsName get user by name diff --git a/routers/api/v1/user/hook.go b/routers/api/v1/user/hook.go index 47b6498d85..c8cdf5040d 100644 --- a/routers/api/v1/user/hook.go +++ b/routers/api/v1/user/hook.go @@ -6,11 +6,11 @@ package user import ( "net/http" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - webhook_service "code.gitea.io/gitea/services/webhook" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + webhook_service "forgejo.org/services/webhook" ) // ListHooks list the authenticated user's webhooks diff --git a/routers/api/v1/user/key.go b/routers/api/v1/user/key.go index 1b4ba0a40f..3aecf5fc3a 100644 --- a/routers/api/v1/user/key.go +++ b/routers/api/v1/user/key.go @@ -8,18 +8,18 @@ import ( "fmt" "net/http" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/api/v1/repo" - "code.gitea.io/gitea/routers/api/v1/utils" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + "forgejo.org/models/perm" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/api/v1/repo" + "forgejo.org/routers/api/v1/utils" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // appendPrivateInformation appends the owner and key type information to api.PublicKey diff --git a/routers/api/v1/user/quota.go b/routers/api/v1/user/quota.go index ab2881b355..40c8ee43e9 100644 --- a/routers/api/v1/user/quota.go +++ b/routers/api/v1/user/quota.go @@ -4,8 +4,8 @@ package user import ( - "code.gitea.io/gitea/routers/api/v1/shared" - "code.gitea.io/gitea/services/context" + "forgejo.org/routers/api/v1/shared" + "forgejo.org/services/context" ) // GetQuota returns the quota information for the authenticated user diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go index 7df13ee413..7b326812a7 100644 --- a/routers/api/v1/user/repo.go +++ b/routers/api/v1/user/repo.go @@ -6,13 +6,13 @@ package user import ( "net/http" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // listUserRepos - List the repositories owned by the given user. diff --git a/routers/api/v1/user/runners.go b/routers/api/v1/user/runners.go index 5e8cdbeb58..579e3eb932 100644 --- a/routers/api/v1/user/runners.go +++ b/routers/api/v1/user/runners.go @@ -4,8 +4,8 @@ package user import ( - "code.gitea.io/gitea/routers/api/v1/shared" - "code.gitea.io/gitea/services/context" + "forgejo.org/routers/api/v1/shared" + "forgejo.org/services/context" ) // https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28#create-a-registration-token-for-an-organization diff --git a/routers/api/v1/user/settings.go b/routers/api/v1/user/settings.go index 67ab0dd964..134b448718 100644 --- a/routers/api/v1/user/settings.go +++ b/routers/api/v1/user/settings.go @@ -6,12 +6,12 @@ package user import ( "net/http" - "code.gitea.io/gitea/modules/optional" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - user_service "code.gitea.io/gitea/services/user" + "forgejo.org/modules/optional" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" + user_service "forgejo.org/services/user" ) // GetUserSettings returns user settings diff --git a/routers/api/v1/user/star.go b/routers/api/v1/user/star.go index be84b13204..19fa49f2ad 100644 --- a/routers/api/v1/user/star.go +++ b/routers/api/v1/user/star.go @@ -9,15 +9,15 @@ import ( std_context "context" "net/http" - "code.gitea.io/gitea/models/db" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/repository" ) // getStarredRepos returns the repos that the user with the specified userID has diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index da1250b283..5bdd56c892 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -8,12 +8,12 @@ import ( "fmt" "net/http" - activities_model "code.gitea.io/gitea/models/activities" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + activities_model "forgejo.org/models/activities" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // Search search users diff --git a/routers/api/v1/user/watch.go b/routers/api/v1/user/watch.go index dc27a38a03..1358a63f51 100644 --- a/routers/api/v1/user/watch.go +++ b/routers/api/v1/user/watch.go @@ -7,14 +7,14 @@ import ( std_context "context" "net/http" - "code.gitea.io/gitea/models/db" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/v1/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/routers/api/v1/utils" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // getWatchedRepos returns the repos that the user with the specified userID is watching diff --git a/routers/api/v1/utils/block.go b/routers/api/v1/utils/block.go index 34fad96034..a1f044d1ef 100644 --- a/routers/api/v1/utils/block.go +++ b/routers/api/v1/utils/block.go @@ -6,10 +6,10 @@ package utils import ( "net/http" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" - user_service "code.gitea.io/gitea/services/user" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" + user_service "forgejo.org/services/user" ) // ListUserBlockedUsers lists the blocked users of the provided doer. diff --git a/routers/api/v1/utils/git.go b/routers/api/v1/utils/git.go index 4e25137817..5359a54899 100644 --- a/routers/api/v1/utils/git.go +++ b/routers/api/v1/utils/git.go @@ -8,10 +8,10 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/services/context" ) // ResolveRefOrSha resolve ref to sha if exist diff --git a/routers/api/v1/utils/hook.go b/routers/api/v1/utils/hook.go index f1abd49a7d..d882845008 100644 --- a/routers/api/v1/utils/hook.go +++ b/routers/api/v1/utils/hook.go @@ -9,16 +9,16 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/context" - webhook_service "code.gitea.io/gitea/services/webhook" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/models/webhook" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/context" + webhook_service "forgejo.org/services/webhook" ) // ListOwnerHooks lists the webhooks of the provided owner diff --git a/routers/api/v1/utils/page.go b/routers/api/v1/utils/page.go index 024ba7b8d9..4ab141ca64 100644 --- a/routers/api/v1/utils/page.go +++ b/routers/api/v1/utils/page.go @@ -4,9 +4,9 @@ package utils import ( - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // GetListOptions returns list options using the page and limit parameters diff --git a/routers/common/auth.go b/routers/common/auth.go index 722c625e7b..d4b3b1fea7 100644 --- a/routers/common/auth.go +++ b/routers/common/auth.go @@ -4,10 +4,10 @@ package common import ( - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/web/middleware" - auth_service "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/context" + user_model "forgejo.org/models/user" + "forgejo.org/modules/web/middleware" + auth_service "forgejo.org/services/auth" + "forgejo.org/services/context" ) type AuthResult struct { diff --git a/routers/common/compare.go b/routers/common/compare.go index 4d1cc2f0d8..9c158814d1 100644 --- a/routers/common/compare.go +++ b/routers/common/compare.go @@ -4,9 +4,9 @@ package common import ( - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" ) // CompareInfo represents the collected results from ParseCompareInfo diff --git a/routers/common/db.go b/routers/common/db.go index ac24303989..0646071264 100644 --- a/routers/common/db.go +++ b/routers/common/db.go @@ -8,12 +8,12 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/migrations" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/setting/config" + "forgejo.org/models/db" + "forgejo.org/models/migrations" + system_model "forgejo.org/models/system" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/setting/config" "xorm.io/xorm" ) diff --git a/routers/common/errpage.go b/routers/common/errpage.go index 402ca44c12..907c278ab1 100644 --- a/routers/common/errpage.go +++ b/routers/common/errpage.go @@ -7,15 +7,15 @@ import ( "fmt" "net/http" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/modules/web/routing" - "code.gitea.io/gitea/services/context" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/web/middleware" + "forgejo.org/modules/web/routing" + "forgejo.org/services/context" ) const tplStatus500 base.TplName = "status/500" diff --git a/routers/common/errpage_test.go b/routers/common/errpage_test.go index f15d3f1b35..3a492ea304 100644 --- a/routers/common/errpage_test.go +++ b/routers/common/errpage_test.go @@ -10,9 +10,9 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/web/middleware" + "forgejo.org/models/unittest" + "forgejo.org/modules/test" + "forgejo.org/modules/web/middleware" "github.com/stretchr/testify/assert" ) diff --git a/routers/common/markup.go b/routers/common/markup.go index ce3a8acdb0..715d7d883f 100644 --- a/routers/common/markup.go +++ b/routers/common/markup.go @@ -9,11 +9,11 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/services/context" "mvdan.cc/xurls/v2" ) diff --git a/routers/common/middleware.go b/routers/common/middleware.go index ee2e504ff1..d44f046a1e 100644 --- a/routers/common/middleware.go +++ b/routers/common/middleware.go @@ -9,12 +9,12 @@ import ( "runtime/trace" "strings" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/modules/web/routing" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/cache" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/modules/web/middleware" + "forgejo.org/modules/web/routing" + "forgejo.org/services/context" "code.forgejo.org/go-chi/session" "github.com/chi-middleware/proxy" diff --git a/routers/common/middleware_test.go b/routers/common/middleware_test.go index 6126e0afcc..b9c1b226e8 100644 --- a/routers/common/middleware_test.go +++ b/routers/common/middleware_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/modules/web" + "forgejo.org/modules/web" chi "github.com/go-chi/chi/v5" "github.com/stretchr/testify/assert" diff --git a/routers/common/redirect.go b/routers/common/redirect.go index 9bf2025e19..8c13911a9c 100644 --- a/routers/common/redirect.go +++ b/routers/common/redirect.go @@ -6,7 +6,7 @@ package common import ( "net/http" - "code.gitea.io/gitea/modules/httplib" + "forgejo.org/modules/httplib" ) // FetchRedirectDelegate helps the "fetch" requests to redirect to the correct location diff --git a/routers/common/serve.go b/routers/common/serve.go index 446908db75..9d017ec5a1 100644 --- a/routers/common/serve.go +++ b/routers/common/serve.go @@ -7,11 +7,11 @@ import ( "io" "time" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/httplib" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/git" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/httplib" + "forgejo.org/modules/log" + "forgejo.org/services/context" ) // ServeBlob download a git.Blob diff --git a/routers/init.go b/routers/init.go index 821a0ef38c..90a1cb1e89 100644 --- a/routers/init.go +++ b/routers/init.go @@ -8,50 +8,50 @@ import ( "reflect" "runtime" - "code.gitea.io/gitea/models" - asymkey_model "code.gitea.io/gitea/models/asymkey" - authmodel "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/eventsource" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/highlight" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/external" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/ssh" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/svg" - "code.gitea.io/gitea/modules/system" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/web" - actions_router "code.gitea.io/gitea/routers/api/actions" - forgejo "code.gitea.io/gitea/routers/api/forgejo/v1" - packages_router "code.gitea.io/gitea/routers/api/packages" - apiv1 "code.gitea.io/gitea/routers/api/v1" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/routers/private" - web_routers "code.gitea.io/gitea/routers/web" - actions_service "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/oauth2" - "code.gitea.io/gitea/services/automerge" - "code.gitea.io/gitea/services/cron" - feed_service "code.gitea.io/gitea/services/feed" - indexer_service "code.gitea.io/gitea/services/indexer" - "code.gitea.io/gitea/services/mailer" - mailer_incoming "code.gitea.io/gitea/services/mailer/incoming" - markup_service "code.gitea.io/gitea/services/markup" - repo_migrations "code.gitea.io/gitea/services/migrations" - mirror_service "code.gitea.io/gitea/services/mirror" - pull_service "code.gitea.io/gitea/services/pull" - release_service "code.gitea.io/gitea/services/release" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/services/repository/archiver" - "code.gitea.io/gitea/services/task" - "code.gitea.io/gitea/services/uinotification" - "code.gitea.io/gitea/services/webhook" + "forgejo.org/models" + asymkey_model "forgejo.org/models/asymkey" + authmodel "forgejo.org/models/auth" + "forgejo.org/modules/cache" + "forgejo.org/modules/eventsource" + "forgejo.org/modules/git" + "forgejo.org/modules/highlight" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/external" + "forgejo.org/modules/setting" + "forgejo.org/modules/ssh" + "forgejo.org/modules/storage" + "forgejo.org/modules/svg" + "forgejo.org/modules/system" + "forgejo.org/modules/templates" + "forgejo.org/modules/translation" + "forgejo.org/modules/web" + actions_router "forgejo.org/routers/api/actions" + forgejo "forgejo.org/routers/api/forgejo/v1" + packages_router "forgejo.org/routers/api/packages" + apiv1 "forgejo.org/routers/api/v1" + "forgejo.org/routers/common" + "forgejo.org/routers/private" + web_routers "forgejo.org/routers/web" + actions_service "forgejo.org/services/actions" + "forgejo.org/services/auth" + "forgejo.org/services/auth/source/oauth2" + "forgejo.org/services/automerge" + "forgejo.org/services/cron" + feed_service "forgejo.org/services/feed" + indexer_service "forgejo.org/services/indexer" + "forgejo.org/services/mailer" + mailer_incoming "forgejo.org/services/mailer/incoming" + markup_service "forgejo.org/services/markup" + repo_migrations "forgejo.org/services/migrations" + mirror_service "forgejo.org/services/mirror" + pull_service "forgejo.org/services/pull" + release_service "forgejo.org/services/release" + repo_service "forgejo.org/services/repository" + "forgejo.org/services/repository/archiver" + "forgejo.org/services/task" + "forgejo.org/services/uinotification" + "forgejo.org/services/webhook" ) func mustInit(fn func() error) { diff --git a/routers/install/install.go b/routers/install/install.go index 86e342f1f9..b9333a9e16 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -15,25 +15,25 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - db_install "code.gitea.io/gitea/models/db/install" - "code.gitea.io/gitea/models/migrations" - system_model "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/password/hash" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/generate" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/db" + db_install "forgejo.org/models/db/install" + "forgejo.org/models/migrations" + system_model "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/password/hash" + "forgejo.org/modules/base" + "forgejo.org/modules/generate" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/translation" + "forgejo.org/modules/web" + "forgejo.org/modules/web/middleware" + "forgejo.org/routers/common" + "forgejo.org/services/context" + "forgejo.org/services/forms" "code.forgejo.org/go-chi/session" ) diff --git a/routers/install/routes.go b/routers/install/routes.go index 06c9d389a6..f7fb40f688 100644 --- a/routers/install/routes.go +++ b/routers/install/routes.go @@ -8,12 +8,12 @@ import ( "html" "net/http" - "code.gitea.io/gitea/modules/public" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/routers/web/healthcheck" - "code.gitea.io/gitea/services/forms" + "forgejo.org/modules/public" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/routers/common" + "forgejo.org/routers/web/healthcheck" + "forgejo.org/services/forms" ) // Routes registers the installation routes diff --git a/routers/install/routes_test.go b/routers/install/routes_test.go index 2aa7f5d7b7..a504cf1baa 100644 --- a/routers/install/routes_test.go +++ b/routers/install/routes_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" ) diff --git a/routers/private/actions.go b/routers/private/actions.go index 425c480b3e..441fb881ed 100644 --- a/routers/private/actions.go +++ b/routers/private/actions.go @@ -10,14 +10,14 @@ import ( "net/http" "strings" - actions_model "code.gitea.io/gitea/models/actions" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + actions_model "forgejo.org/models/actions" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/util" + "forgejo.org/services/context" ) // GenerateActionsRunnerToken generates a new runner token for a given scope diff --git a/routers/private/default_branch.go b/routers/private/default_branch.go index af5d75634b..da185e1ab1 100644 --- a/routers/private/default_branch.go +++ b/routers/private/default_branch.go @@ -7,10 +7,10 @@ import ( "fmt" "net/http" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/private" - gitea_context "code.gitea.io/gitea/services/context" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/private" + gitea_context "forgejo.org/services/context" ) // SetDefaultBranch updates the default branch diff --git a/routers/private/hook_post_receive.go b/routers/private/hook_post_receive.go index 11d1161e85..c7748b01c8 100644 --- a/routers/private/hook_post_receive.go +++ b/routers/private/hook_post_receive.go @@ -10,25 +10,25 @@ import ( "strconv" "time" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - pull_model "code.gitea.io/gitea/models/pull" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/git/pushoptions" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - timeutil "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - gitea_context "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + pull_model "forgejo.org/models/pull" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/git/pushoptions" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + timeutil "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + gitea_context "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" ) // HookPostReceive updates services and users diff --git a/routers/private/hook_post_receive_test.go b/routers/private/hook_post_receive_test.go index 28f1a7d0be..bbd0c45769 100644 --- a/routers/private/hook_post_receive_test.go +++ b/routers/private/hook_post_receive_test.go @@ -6,15 +6,15 @@ package private import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - pull_model "code.gitea.io/gitea/models/pull" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/private" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + pull_model "forgejo.org/models/pull" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/private" + repo_module "forgejo.org/modules/repository" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/private/hook_pre_receive.go b/routers/private/hook_pre_receive.go index 4b8439d2da..191273209e 100644 --- a/routers/private/hook_pre_receive.go +++ b/routers/private/hook_pre_receive.go @@ -9,22 +9,22 @@ import ( "net/http" "os" - "code.gitea.io/gitea/models" - asymkey_model "code.gitea.io/gitea/models/asymkey" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - perm_model "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - gitea_context "code.gitea.io/gitea/services/context" - pull_service "code.gitea.io/gitea/services/pull" + "forgejo.org/models" + asymkey_model "forgejo.org/models/asymkey" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + perm_model "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + quota_model "forgejo.org/models/quota" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + gitea_context "forgejo.org/services/context" + pull_service "forgejo.org/services/pull" ) type preReceiveContext struct { diff --git a/routers/private/hook_proc_receive.go b/routers/private/hook_proc_receive.go index e4aabd858c..cd45794261 100644 --- a/routers/private/hook_proc_receive.go +++ b/routers/private/hook_proc_receive.go @@ -6,13 +6,13 @@ package private import ( "net/http" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/agit" - gitea_context "code.gitea.io/gitea/services/context" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/web" + "forgejo.org/services/agit" + gitea_context "forgejo.org/services/context" ) // HookProcReceive proc-receive hook - only handles agit Proc-Receive requests at present diff --git a/routers/private/hook_verification.go b/routers/private/hook_verification.go index 764c976fa9..e9a1967bd2 100644 --- a/routers/private/hook_verification.go +++ b/routers/private/hook_verification.go @@ -10,9 +10,9 @@ import ( "io" "os" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/modules/git" + "forgejo.org/modules/log" ) // This file contains commit verification functions for refs passed across in hooks diff --git a/routers/private/hook_verification_test.go b/routers/private/hook_verification_test.go index 47e06245ed..35458f672e 100644 --- a/routers/private/hook_verification_test.go +++ b/routers/private/hook_verification_test.go @@ -6,8 +6,8 @@ package private import ( "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" "github.com/stretchr/testify/require" ) diff --git a/routers/private/internal.go b/routers/private/internal.go index dfbdc6967b..5e8d51d970 100644 --- a/routers/private/internal.go +++ b/routers/private/internal.go @@ -9,11 +9,11 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" chi_middleware "github.com/go-chi/chi/v5/middleware" diff --git a/routers/private/internal_repo.go b/routers/private/internal_repo.go index e8ee8ba8ac..f237d2c676 100644 --- a/routers/private/internal_repo.go +++ b/routers/private/internal_repo.go @@ -8,11 +8,11 @@ import ( "fmt" "net/http" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - gitea_context "code.gitea.io/gitea/services/context" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + gitea_context "forgejo.org/services/context" ) // This file contains common functions relating to setting the Repository for the internal routes diff --git a/routers/private/key.go b/routers/private/key.go index 5b8f238a83..2d77c9c5be 100644 --- a/routers/private/key.go +++ b/routers/private/key.go @@ -6,10 +6,10 @@ package private import ( "net/http" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/services/context" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/modules/private" + "forgejo.org/modules/timeutil" + "forgejo.org/services/context" ) // UpdatePublicKeyInRepo update public key and deploy key updates diff --git a/routers/private/mail.go b/routers/private/mail.go index cf3abb31c6..2b96ce910e 100644 --- a/routers/private/mail.go +++ b/routers/private/mail.go @@ -9,14 +9,14 @@ import ( "net/http" "strconv" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/mailer" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + "forgejo.org/services/mailer" ) // SendEmail pushes messages to mail queue diff --git a/routers/private/main_test.go b/routers/private/main_test.go index a6bec72b41..1b7f00f439 100644 --- a/routers/private/main_test.go +++ b/routers/private/main_test.go @@ -6,7 +6,7 @@ package private import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/private/manager.go b/routers/private/manager.go index a6aa03e4ec..7ab198f71b 100644 --- a/routers/private/manager.go +++ b/routers/private/manager.go @@ -7,16 +7,16 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/graceful/releasereopen" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + "forgejo.org/modules/graceful" + "forgejo.org/modules/graceful/releasereopen" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/web" + "forgejo.org/services/context" ) // ReloadTemplates reloads all the templates diff --git a/routers/private/manager_process.go b/routers/private/manager_process.go index 9a0298a37c..87447da2be 100644 --- a/routers/private/manager_process.go +++ b/routers/private/manager_process.go @@ -11,10 +11,10 @@ import ( "runtime" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - process_module "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + process_module "forgejo.org/modules/process" + "forgejo.org/services/context" ) // Processes prints out the processes diff --git a/routers/private/manager_unix.go b/routers/private/manager_unix.go index 311bfe6858..c831b44036 100644 --- a/routers/private/manager_unix.go +++ b/routers/private/manager_unix.go @@ -6,8 +6,8 @@ package private import ( "net/http" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/graceful" + "forgejo.org/services/context" ) // Restart causes the server to perform a graceful restart diff --git a/routers/private/restore_repo.go b/routers/private/restore_repo.go index 4e95d3071d..6586c9bb2b 100644 --- a/routers/private/restore_repo.go +++ b/routers/private/restore_repo.go @@ -7,10 +7,10 @@ import ( "io" "net/http" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/private" - myCtx "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/migrations" + "forgejo.org/modules/json" + "forgejo.org/modules/private" + myCtx "forgejo.org/services/context" + "forgejo.org/services/migrations" ) // RestoreRepo restore a repository from data diff --git a/routers/private/serv.go b/routers/private/serv.go index ef3920d359..df61355fb0 100644 --- a/routers/private/serv.go +++ b/routers/private/serv.go @@ -8,19 +8,19 @@ import ( "net/http" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" - wiki_service "code.gitea.io/gitea/services/wiki" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" + wiki_service "forgejo.org/services/wiki" ) // ServNoCommand returns information about the provided keyid diff --git a/routers/private/ssh_log.go b/routers/private/ssh_log.go index 5bec632ead..f6974967c0 100644 --- a/routers/private/ssh_log.go +++ b/routers/private/ssh_log.go @@ -6,11 +6,11 @@ package private import ( "net/http" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" ) // SSHLog hook to response ssh log diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go index 067203b28b..96a714376b 100644 --- a/routers/web/admin/admin.go +++ b/routers/web/admin/admin.go @@ -11,20 +11,20 @@ import ( "runtime" "time" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/updatechecker" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/cron" - "code.gitea.io/gitea/services/forms" - release_service "code.gitea.io/gitea/services/release" - repo_service "code.gitea.io/gitea/services/repository" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + "forgejo.org/modules/base" + "forgejo.org/modules/cache" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/updatechecker" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/cron" + "forgejo.org/services/forms" + release_service "forgejo.org/services/release" + repo_service "forgejo.org/services/repository" ) const ( diff --git a/routers/web/admin/admin_test.go b/routers/web/admin/admin_test.go index 3518869ede..d0c3c2b56f 100644 --- a/routers/web/admin/admin_test.go +++ b/routers/web/admin/admin_test.go @@ -6,11 +6,11 @@ package admin import ( "testing" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/services/contexttest" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" ) diff --git a/routers/web/admin/applications.go b/routers/web/admin/applications.go index 8583398074..ba15e0a000 100644 --- a/routers/web/admin/applications.go +++ b/routers/web/admin/applications.go @@ -7,12 +7,12 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - user_setting "code.gitea.io/gitea/routers/web/user/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + user_setting "forgejo.org/routers/web/user/setting" + "forgejo.org/services/context" ) var ( diff --git a/routers/web/admin/auths.go b/routers/web/admin/auths.go index 8af14f6d52..2c6dc76305 100644 --- a/routers/web/admin/auths.go +++ b/routers/web/admin/auths.go @@ -10,20 +10,20 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/auth/pam" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - auth_service "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/ldap" - "code.gitea.io/gitea/services/auth/source/oauth2" - pam_service "code.gitea.io/gitea/services/auth/source/pam" - "code.gitea.io/gitea/services/auth/source/smtp" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/auth/pam" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + auth_service "forgejo.org/services/auth" + "forgejo.org/services/auth/source/ldap" + "forgejo.org/services/auth/source/oauth2" + pam_service "forgejo.org/services/auth/source/pam" + "forgejo.org/services/auth/source/smtp" + "forgejo.org/services/context" + "forgejo.org/services/forms" "xorm.io/xorm/convert" ) diff --git a/routers/web/admin/config.go b/routers/web/admin/config.go index 06d0ea60fb..f99a193960 100644 --- a/routers/web/admin/config.go +++ b/routers/web/admin/config.go @@ -10,17 +10,17 @@ import ( "strconv" "strings" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/setting/config" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/mailer" + system_model "forgejo.org/models/system" + "forgejo.org/modules/base" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/setting/config" + "forgejo.org/modules/util" + "forgejo.org/services/context" + "forgejo.org/services/mailer" "code.forgejo.org/go-chi/session" ) diff --git a/routers/web/admin/diagnosis.go b/routers/web/admin/diagnosis.go index 959c9bc444..e436dca663 100644 --- a/routers/web/admin/diagnosis.go +++ b/routers/web/admin/diagnosis.go @@ -11,8 +11,8 @@ import ( "runtime/trace" "time" - "code.gitea.io/gitea/modules/httplib" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/httplib" + "forgejo.org/services/context" ) func MonitorDiagnosis(ctx *context.Context) { diff --git a/routers/web/admin/emails.go b/routers/web/admin/emails.go index f0d8555070..a4421cf495 100644 --- a/routers/web/admin/emails.go +++ b/routers/web/admin/emails.go @@ -8,14 +8,14 @@ import ( "net/http" "net/url" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/user" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + "forgejo.org/services/user" ) const ( diff --git a/routers/web/admin/hooks.go b/routers/web/admin/hooks.go index cdca0a5c2d..aeceffe848 100644 --- a/routers/web/admin/hooks.go +++ b/routers/web/admin/hooks.go @@ -6,11 +6,11 @@ package admin import ( "net/http" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - webhook_service "code.gitea.io/gitea/services/webhook" + "forgejo.org/models/webhook" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + webhook_service "forgejo.org/services/webhook" ) const ( diff --git a/routers/web/admin/main_test.go b/routers/web/admin/main_test.go index e1294ddbb4..bccb0d7058 100644 --- a/routers/web/admin/main_test.go +++ b/routers/web/admin/main_test.go @@ -6,7 +6,7 @@ package admin import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/web/admin/notice.go b/routers/web/admin/notice.go index 36303cbc06..8bcaadf915 100644 --- a/routers/web/admin/notice.go +++ b/routers/web/admin/notice.go @@ -8,12 +8,12 @@ import ( "net/http" "strconv" - "code.gitea.io/gitea/models/db" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + system_model "forgejo.org/models/system" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/admin/orgs.go b/routers/web/admin/orgs.go index cea28f8220..6ece35dcaf 100644 --- a/routers/web/admin/orgs.go +++ b/routers/web/admin/orgs.go @@ -5,13 +5,13 @@ package admin import ( - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/web/explore" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/routers/web/explore" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/admin/packages.go b/routers/web/admin/packages.go index 39f064a1be..5c80a1eada 100644 --- a/routers/web/admin/packages.go +++ b/routers/web/admin/packages.go @@ -8,14 +8,14 @@ import ( "net/url" "time" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - packages_service "code.gitea.io/gitea/services/packages" - packages_cleanup_service "code.gitea.io/gitea/services/packages/cleanup" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/modules/base" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + packages_service "forgejo.org/services/packages" + packages_cleanup_service "forgejo.org/services/packages/cleanup" ) const ( diff --git a/routers/web/admin/queue.go b/routers/web/admin/queue.go index 246ab379b5..03bbfe5af4 100644 --- a/routers/web/admin/queue.go +++ b/routers/web/admin/queue.go @@ -7,9 +7,9 @@ import ( "net/http" "strconv" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) func Queues(ctx *context.Context) { diff --git a/routers/web/admin/queue_tester.go b/routers/web/admin/queue_tester.go index 8f713b3bb1..831947fe41 100644 --- a/routers/web/admin/queue_tester.go +++ b/routers/web/admin/queue_tester.go @@ -8,11 +8,11 @@ import ( "sync" "time" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" ) var testQueueOnce sync.Once diff --git a/routers/web/admin/repos.go b/routers/web/admin/repos.go index d0339fdd93..a94b9bb5c3 100644 --- a/routers/web/admin/repos.go +++ b/routers/web/admin/repos.go @@ -8,16 +8,16 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/web/explore" - "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/web/explore" + "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" ) const ( diff --git a/routers/web/admin/runners.go b/routers/web/admin/runners.go index d73290a8db..c6451a9329 100644 --- a/routers/web/admin/runners.go +++ b/routers/web/admin/runners.go @@ -4,8 +4,8 @@ package admin import ( - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) func RedirectToDefaultSetting(ctx *context.Context) { diff --git a/routers/web/admin/stacktrace.go b/routers/web/admin/stacktrace.go index d6def94bb4..7c6cd98a56 100644 --- a/routers/web/admin/stacktrace.go +++ b/routers/web/admin/stacktrace.go @@ -7,9 +7,9 @@ import ( "net/http" "runtime" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) // Stacktrace show admin monitor goroutines page diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index 36ce8d286c..f53a0197cb 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.go @@ -11,26 +11,26 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/web/explore" - user_setting "code.gitea.io/gitea/routers/web/user/setting" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/mailer" - user_service "code.gitea.io/gitea/services/user" + "forgejo.org/models" + "forgejo.org/models/auth" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/password" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + "forgejo.org/routers/web/explore" + user_setting "forgejo.org/routers/web/user/setting" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/mailer" + user_service "forgejo.org/services/user" ) const ( diff --git a/routers/web/admin/users_test.go b/routers/web/admin/users_test.go index ae3b130101..c8e6f8cb86 100644 --- a/routers/web/admin/users_test.go +++ b/routers/web/admin/users_test.go @@ -6,13 +6,13 @@ package admin import ( "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/contexttest" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/services/contexttest" + "forgejo.org/services/forms" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/web/auth/2fa.go b/routers/web/auth/2fa.go index f93177bf96..7acf9a87d3 100644 --- a/routers/web/auth/2fa.go +++ b/routers/web/auth/2fa.go @@ -7,14 +7,14 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/externalaccount" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/externalaccount" + "forgejo.org/services/forms" ) var ( diff --git a/routers/web/auth/auth.go b/routers/web/auth/auth.go index 816e6534d2..21ee765d65 100644 --- a/routers/web/auth/auth.go +++ b/routers/web/auth/auth.go @@ -11,30 +11,30 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/eventsource" - "code.gitea.io/gitea/modules/httplib" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/session" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/modules/web/middleware" - auth_service "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/oauth2" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/externalaccount" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/mailer" - notify_service "code.gitea.io/gitea/services/notify" - user_service "code.gitea.io/gitea/services/user" + "forgejo.org/models/auth" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/password" + "forgejo.org/modules/base" + "forgejo.org/modules/eventsource" + "forgejo.org/modules/httplib" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/session" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + "forgejo.org/modules/web/middleware" + auth_service "forgejo.org/services/auth" + "forgejo.org/services/auth/source/oauth2" + "forgejo.org/services/context" + "forgejo.org/services/externalaccount" + "forgejo.org/services/forms" + "forgejo.org/services/mailer" + notify_service "forgejo.org/services/notify" + user_service "forgejo.org/services/user" "github.com/markbates/goth" ) diff --git a/routers/web/auth/auth_test.go b/routers/web/auth/auth_test.go index c6afbf877c..7a33a3841c 100644 --- a/routers/web/auth/auth_test.go +++ b/routers/web/auth/auth_test.go @@ -8,8 +8,8 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/modules/test" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" ) diff --git a/routers/web/auth/linkaccount.go b/routers/web/auth/linkaccount.go index e6c9089380..9566652751 100644 --- a/routers/web/auth/linkaccount.go +++ b/routers/web/auth/linkaccount.go @@ -9,18 +9,18 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - auth_service "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/oauth2" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/externalaccount" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + auth_service "forgejo.org/services/auth" + "forgejo.org/services/auth/source/oauth2" + "forgejo.org/services/context" + "forgejo.org/services/externalaccount" + "forgejo.org/services/forms" "github.com/markbates/goth" ) diff --git a/routers/web/auth/main_test.go b/routers/web/auth/main_test.go index b438e5d518..a8a32b71f2 100644 --- a/routers/web/auth/main_test.go +++ b/routers/web/auth/main_test.go @@ -6,7 +6,7 @@ package auth import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/web/auth/oauth.go b/routers/web/auth/oauth.go index 62b7b0b6d3..f1554638cb 100644 --- a/routers/web/auth/oauth.go +++ b/routers/web/auth/oauth.go @@ -17,29 +17,29 @@ import ( "sort" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/auth" - org_model "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - auth_module "code.gitea.io/gitea/modules/auth" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/modules/web/middleware" - auth_service "code.gitea.io/gitea/services/auth" - source_service "code.gitea.io/gitea/services/auth/source" - "code.gitea.io/gitea/services/auth/source/oauth2" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/externalaccount" - "code.gitea.io/gitea/services/forms" - remote_service "code.gitea.io/gitea/services/remote" - user_service "code.gitea.io/gitea/services/user" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/auth" + org_model "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + auth_module "forgejo.org/modules/auth" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/modules/web/middleware" + auth_service "forgejo.org/services/auth" + source_service "forgejo.org/services/auth/source" + "forgejo.org/services/auth/source/oauth2" + "forgejo.org/services/context" + "forgejo.org/services/externalaccount" + "forgejo.org/services/forms" + remote_service "forgejo.org/services/remote" + user_service "forgejo.org/services/user" "code.forgejo.org/go-chi/binding" "github.com/golang-jwt/jwt/v5" diff --git a/routers/web/auth/oauth_test.go b/routers/web/auth/oauth_test.go index a5f2dd7713..6275d63382 100644 --- a/routers/web/auth/oauth_test.go +++ b/routers/web/auth/oauth_test.go @@ -6,12 +6,12 @@ package auth import ( "testing" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/services/auth/source/oauth2" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" + "forgejo.org/services/auth/source/oauth2" "github.com/golang-jwt/jwt/v5" "github.com/stretchr/testify/assert" diff --git a/routers/web/auth/openid.go b/routers/web/auth/openid.go index 83268faacb..b12dea84ea 100644 --- a/routers/web/auth/openid.go +++ b/routers/web/auth/openid.go @@ -8,16 +8,16 @@ import ( "net/http" "net/url" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/openid" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/openid" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/auth" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) const ( diff --git a/routers/web/auth/password.go b/routers/web/auth/password.go index 84f343bfca..82c2d4e9d3 100644 --- a/routers/web/auth/password.go +++ b/routers/web/auth/password.go @@ -8,20 +8,20 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/mailer" - user_service "code.gitea.io/gitea/services/user" + "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/password" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/web" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/mailer" + user_service "forgejo.org/services/user" ) var ( diff --git a/routers/web/auth/webauthn.go b/routers/web/auth/webauthn.go index 5c93c1410e..ac69e03389 100644 --- a/routers/web/auth/webauthn.go +++ b/routers/web/auth/webauthn.go @@ -7,14 +7,14 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - wa "code.gitea.io/gitea/modules/auth/webauthn" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/externalaccount" + "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + wa "forgejo.org/modules/auth/webauthn" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + "forgejo.org/services/externalaccount" "github.com/go-webauthn/webauthn/protocol" "github.com/go-webauthn/webauthn/webauthn" diff --git a/routers/web/base.go b/routers/web/base.go index 285d1ecddc..c1bc7fef5e 100644 --- a/routers/web/base.go +++ b/routers/web/base.go @@ -11,12 +11,12 @@ import ( "path" "strings" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web/routing" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" + "forgejo.org/modules/web/routing" ) func storageHandler(storageSetting *setting.Storage, prefix string, objStore storage.ObjectStorage) http.HandlerFunc { diff --git a/routers/web/devtest/devtest.go b/routers/web/devtest/devtest.go index dd20663f94..37496ca117 100644 --- a/routers/web/devtest/devtest.go +++ b/routers/web/devtest/devtest.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/modules/templates" + "forgejo.org/services/context" ) // List all devtest templates, they will be used for e2e tests for the UI components diff --git a/routers/web/events/events.go b/routers/web/events/events.go index 52f20e07dc..1672f12bda 100644 --- a/routers/web/events/events.go +++ b/routers/web/events/events.go @@ -7,11 +7,11 @@ import ( "net/http" "time" - "code.gitea.io/gitea/modules/eventsource" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/routers/web/auth" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/eventsource" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/routers/web/auth" + "forgejo.org/services/context" ) // Events listens for events diff --git a/routers/web/explore/code.go b/routers/web/explore/code.go index 0a4e828c71..f0b12e9142 100644 --- a/routers/web/explore/code.go +++ b/routers/web/explore/code.go @@ -6,12 +6,12 @@ package explore import ( "net/http" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/base" - code_indexer "code.gitea.io/gitea/modules/indexer/code" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/base" + code_indexer "forgejo.org/modules/indexer/code" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/explore/org.go b/routers/web/explore/org.go index d13271ae53..6c9293e959 100644 --- a/routers/web/explore/org.go +++ b/routers/web/explore/org.go @@ -4,12 +4,12 @@ package explore import ( - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/services/context" ) // Organizations render explore organizations page diff --git a/routers/web/explore/repo.go b/routers/web/explore/repo.go index 798fdf5654..0707420a8d 100644 --- a/routers/web/explore/repo.go +++ b/routers/web/explore/repo.go @@ -7,13 +7,13 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/sitemap" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/sitemap" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/explore/topic.go b/routers/web/explore/topic.go index 95fecfe2b8..3b67bd48b1 100644 --- a/routers/web/explore/topic.go +++ b/routers/web/explore/topic.go @@ -6,11 +6,11 @@ package explore import ( "net/http" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // TopicSearch search for creating topic diff --git a/routers/web/explore/user.go b/routers/web/explore/user.go index 241e5f61a1..e349bb1e92 100644 --- a/routers/web/explore/user.go +++ b/routers/web/explore/user.go @@ -7,16 +7,16 @@ import ( "bytes" "net/http" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/sitemap" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/sitemap" + "forgejo.org/modules/structs" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/feed/branch.go b/routers/web/feed/branch.go index a8a001e0cd..2337b43d4c 100644 --- a/routers/web/feed/branch.go +++ b/routers/web/feed/branch.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/repo" + "forgejo.org/services/context" "github.com/gorilla/feeds" ) diff --git a/routers/web/feed/convert.go b/routers/web/feed/convert.go index 5f7687d803..24532334ea 100644 --- a/routers/web/feed/convert.go +++ b/routers/web/feed/convert.go @@ -12,16 +12,16 @@ import ( "strconv" "strings" - activities_model "code.gitea.io/gitea/models/activities" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + activities_model "forgejo.org/models/activities" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/util" + "forgejo.org/services/context" "github.com/gorilla/feeds" "github.com/jaytaylor/html2text" diff --git a/routers/web/feed/file.go b/routers/web/feed/file.go index 48f87c7c62..45ceedac12 100644 --- a/routers/web/feed/file.go +++ b/routers/web/feed/file.go @@ -8,10 +8,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/util" + "forgejo.org/services/context" "github.com/gorilla/feeds" ) diff --git a/routers/web/feed/profile.go b/routers/web/feed/profile.go index 08cbcd9e12..dd2fec186f 100644 --- a/routers/web/feed/profile.go +++ b/routers/web/feed/profile.go @@ -6,10 +6,10 @@ package feed import ( "time" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/services/context" + activities_model "forgejo.org/models/activities" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/services/context" "github.com/gorilla/feeds" ) diff --git a/routers/web/feed/release.go b/routers/web/feed/release.go index fb6e3add65..646241c021 100644 --- a/routers/web/feed/release.go +++ b/routers/web/feed/release.go @@ -6,9 +6,9 @@ package feed import ( "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/services/context" "github.com/gorilla/feeds" ) diff --git a/routers/web/feed/render.go b/routers/web/feed/render.go index dc99fb49ed..79681dd0fb 100644 --- a/routers/web/feed/render.go +++ b/routers/web/feed/render.go @@ -4,7 +4,7 @@ package feed import ( - "code.gitea.io/gitea/services/context" + "forgejo.org/services/context" ) // RenderBranchFeed render format for branch or file diff --git a/routers/web/feed/repo.go b/routers/web/feed/repo.go index a0033c7d45..0d105dc3a7 100644 --- a/routers/web/feed/repo.go +++ b/routers/web/feed/repo.go @@ -6,9 +6,9 @@ package feed import ( "time" - activities_model "code.gitea.io/gitea/models/activities" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/services/context" + activities_model "forgejo.org/models/activities" + repo_model "forgejo.org/models/repo" + "forgejo.org/services/context" "github.com/gorilla/feeds" ) diff --git a/routers/web/githttp.go b/routers/web/githttp.go index 5f1dedce76..e5ed806f2e 100644 --- a/routers/web/githttp.go +++ b/routers/web/githttp.go @@ -6,10 +6,10 @@ package web import ( "net/http" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/web/repo" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/routers/web/repo" + "forgejo.org/services/context" ) func requireSignIn(ctx *context.Context) { diff --git a/routers/web/goget.go b/routers/web/goget.go index 8d5612ebfe..0fcd755ca1 100644 --- a/routers/web/goget.go +++ b/routers/web/goget.go @@ -11,10 +11,10 @@ import ( "path" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/services/context" ) func goGet(ctx *context.Context) { diff --git a/routers/web/healthcheck/check.go b/routers/web/healthcheck/check.go index 83dfe62537..f0b51aa515 100644 --- a/routers/web/healthcheck/check.go +++ b/routers/web/healthcheck/check.go @@ -9,11 +9,11 @@ import ( "os" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/cache" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) type status string diff --git a/routers/web/home.go b/routers/web/home.go index 4ea961c055..e0a466a81c 100644 --- a/routers/web/home.go +++ b/routers/web/home.go @@ -8,19 +8,19 @@ import ( "net/http" "strconv" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/sitemap" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/routers/web/auth" - "code.gitea.io/gitea/routers/web/user" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/sitemap" + "forgejo.org/modules/structs" + "forgejo.org/modules/web/middleware" + "forgejo.org/routers/web/auth" + "forgejo.org/routers/web/user" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/metrics.go b/routers/web/metrics.go index 46c13f0a24..8c188e206e 100644 --- a/routers/web/metrics.go +++ b/routers/web/metrics.go @@ -7,7 +7,7 @@ import ( "crypto/subtle" "net/http" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/prometheus/client_golang/prometheus/promhttp" ) diff --git a/routers/web/misc/markup.go b/routers/web/misc/markup.go index 2bae122b91..d2b67f88c8 100644 --- a/routers/web/misc/markup.go +++ b/routers/web/misc/markup.go @@ -5,10 +5,10 @@ package misc import ( - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/context" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web" + "forgejo.org/routers/common" + "forgejo.org/services/context" ) // Markup render markup document to HTML diff --git a/routers/web/misc/misc.go b/routers/web/misc/misc.go index 54c93763f6..306b15e3d5 100644 --- a/routers/web/misc/misc.go +++ b/routers/web/misc/misc.go @@ -7,11 +7,11 @@ import ( "net/http" "path" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/git" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) func SSHInfo(rw http.ResponseWriter, req *http.Request) { diff --git a/routers/web/misc/swagger-forgejo.go b/routers/web/misc/swagger-forgejo.go index e3aff02c5f..17e3814712 100644 --- a/routers/web/misc/swagger-forgejo.go +++ b/routers/web/misc/swagger-forgejo.go @@ -6,8 +6,8 @@ package misc import ( "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/services/context" ) // tplSwagger swagger page template diff --git a/routers/web/misc/swagger.go b/routers/web/misc/swagger.go index 5fddfa8885..226dddaff2 100644 --- a/routers/web/misc/swagger.go +++ b/routers/web/misc/swagger.go @@ -6,8 +6,8 @@ package misc import ( "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/services/context" ) // tplSwagger swagger page template diff --git a/routers/web/nodeinfo.go b/routers/web/nodeinfo.go index f1cc7bf530..d8c1727479 100644 --- a/routers/web/nodeinfo.go +++ b/routers/web/nodeinfo.go @@ -7,8 +7,8 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) type nodeInfoLinks struct { diff --git a/routers/web/org/home.go b/routers/web/org/home.go index 1b58d8fde9..a3823565ed 100644 --- a/routers/web/org/home.go +++ b/routers/web/org/home.go @@ -9,18 +9,18 @@ import ( "path" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/org/main_test.go b/routers/web/org/main_test.go index 92237d6e88..d1d4e89120 100644 --- a/routers/web/org/main_test.go +++ b/routers/web/org/main_test.go @@ -6,7 +6,7 @@ package org_test import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/web/org/members.go b/routers/web/org/members.go index 3a5509f911..51ac566e1a 100644 --- a/routers/web/org/members.go +++ b/routers/web/org/members.go @@ -7,13 +7,13 @@ package org import ( "net/http" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" + "forgejo.org/models" + "forgejo.org/models/organization" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/org/org.go b/routers/web/org/org.go index dd3aab458b..e9907c04af 100644 --- a/routers/web/org/org.go +++ b/routers/web/org/org.go @@ -8,15 +8,15 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/db" + "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) const ( diff --git a/routers/web/org/org_labels.go b/routers/web/org/org_labels.go index 02eae8052e..dc18c55aa3 100644 --- a/routers/web/org/org_labels.go +++ b/routers/web/org/org_labels.go @@ -6,13 +6,13 @@ package org import ( "net/http" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/label" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/label" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) // RetrieveLabels find all the labels of an organization diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go index 034483aba2..96bd0f1ee2 100644 --- a/routers/web/org/projects.go +++ b/routers/web/org/projects.go @@ -9,20 +9,20 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - project_model "code.gitea.io/gitea/models/project" - attachment_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/web" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + project_model "forgejo.org/models/project" + attachment_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/modules/json" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/web" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) const ( diff --git a/routers/web/org/projects_test.go b/routers/web/org/projects_test.go index ab419cc878..dec78502f2 100644 --- a/routers/web/org/projects_test.go +++ b/routers/web/org/projects_test.go @@ -6,9 +6,9 @@ package org_test import ( "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/routers/web/org" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/models/unittest" + "forgejo.org/routers/web/org" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" ) diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 1683728a8e..284f406413 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.go @@ -9,25 +9,25 @@ import ( "net/url" "time" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - user_setting "code.gitea.io/gitea/routers/web/user/setting" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - org_service "code.gitea.io/gitea/services/org" - repo_service "code.gitea.io/gitea/services/repository" - user_service "code.gitea.io/gitea/services/user" - webhook_service "code.gitea.io/gitea/services/webhook" + "forgejo.org/models" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/models/webhook" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + shared_user "forgejo.org/routers/web/shared/user" + user_setting "forgejo.org/routers/web/user/setting" + "forgejo.org/services/context" + "forgejo.org/services/forms" + org_service "forgejo.org/services/org" + repo_service "forgejo.org/services/repository" + user_service "forgejo.org/services/user" + webhook_service "forgejo.org/services/webhook" ) const ( diff --git a/routers/web/org/setting/blocked_users.go b/routers/web/org/setting/blocked_users.go index 2cf3f39ef4..77b2791874 100644 --- a/routers/web/org/setting/blocked_users.go +++ b/routers/web/org/setting/blocked_users.go @@ -8,11 +8,11 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" - user_service "code.gitea.io/gitea/services/user" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" + user_service "forgejo.org/services/user" ) const tplBlockedUsers = "org/settings/blocked_users" diff --git a/routers/web/org/setting/runners.go b/routers/web/org/setting/runners.go index fe05709237..8053ed7729 100644 --- a/routers/web/org/setting/runners.go +++ b/routers/web/org/setting/runners.go @@ -4,7 +4,7 @@ package setting import ( - "code.gitea.io/gitea/services/context" + "forgejo.org/services/context" ) func RedirectToDefaultSetting(ctx *context.Context) { diff --git a/routers/web/org/setting/storage_overview.go b/routers/web/org/setting/storage_overview.go index 4b9bd02ca4..5714d7ee23 100644 --- a/routers/web/org/setting/storage_overview.go +++ b/routers/web/org/setting/storage_overview.go @@ -4,9 +4,9 @@ package setting import ( - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/routers/web/shared" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/routers/web/shared" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/org/setting_oauth2.go b/routers/web/org/setting_oauth2.go index 7f855795d3..9c31063974 100644 --- a/routers/web/org/setting_oauth2.go +++ b/routers/web/org/setting_oauth2.go @@ -7,13 +7,13 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - user_setting "code.gitea.io/gitea/routers/web/user/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + shared_user "forgejo.org/routers/web/shared/user" + user_setting "forgejo.org/routers/web/user/setting" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/org/setting_packages.go b/routers/web/org/setting_packages.go index af9836e42c..4457c8fb0f 100644 --- a/routers/web/org/setting_packages.go +++ b/routers/web/org/setting_packages.go @@ -7,11 +7,11 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - shared "code.gitea.io/gitea/routers/web/shared/packages" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + shared "forgejo.org/routers/web/shared/packages" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/org/teams.go b/routers/web/org/teams.go index df9de4af98..659bee469f 100644 --- a/routers/web/org/teams.go +++ b/routers/web/org/teams.go @@ -12,24 +12,24 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/forms" - org_service "code.gitea.io/gitea/services/org" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/forms" + org_service "forgejo.org/services/org" + repo_service "forgejo.org/services/repository" ) const ( diff --git a/routers/web/repo/action_aggregator_test.go b/routers/web/repo/action_aggregator_test.go index 181c1120db..7da14f1912 100644 --- a/routers/web/repo/action_aggregator_test.go +++ b/routers/web/repo/action_aggregator_test.go @@ -7,10 +7,10 @@ import ( "strings" "testing" - issue_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + issue_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" ) diff --git a/routers/web/repo/actions/actions.go b/routers/web/repo/actions/actions.go index e0ef709ea6..0a63f566e0 100644 --- a/routers/web/repo/actions/actions.go +++ b/routers/web/repo/actions/actions.go @@ -11,21 +11,21 @@ import ( "slices" "strings" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/web/repo" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/unit" + "forgejo.org/modules/actions" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/web/repo" + "forgejo.org/services/context" + "forgejo.org/services/convert" "github.com/nektos/act/pkg/model" ) diff --git a/routers/web/repo/actions/actions_test.go b/routers/web/repo/actions/actions_test.go index 939c4aaf57..232aacf96b 100644 --- a/routers/web/repo/actions/actions_test.go +++ b/routers/web/repo/actions/actions_test.go @@ -6,9 +6,9 @@ package actions import ( "testing" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - unittest "code.gitea.io/gitea/models/unittest" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + unittest "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/web/repo/actions/main_test.go b/routers/web/repo/actions/main_test.go index a82f9c6672..0f82a0e7ea 100644 --- a/routers/web/repo/actions/main_test.go +++ b/routers/web/repo/actions/main_test.go @@ -6,7 +6,7 @@ package actions import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/web/repo/actions/manual.go b/routers/web/repo/actions/manual.go index 285dc7ab7e..413b087e8b 100644 --- a/routers/web/repo/actions/manual.go +++ b/routers/web/repo/actions/manual.go @@ -6,8 +6,8 @@ package actions import ( "net/url" - actions_service "code.gitea.io/gitea/services/actions" - context_module "code.gitea.io/gitea/services/context" + actions_service "forgejo.org/services/actions" + context_module "forgejo.org/services/context" ) func ManualRunWorkflow(ctx *context_module.Context) { diff --git a/routers/web/repo/actions/view.go b/routers/web/repo/actions/view.go index dea31bb1c4..2d009c5720 100644 --- a/routers/web/repo/actions/view.go +++ b/routers/web/repo/actions/view.go @@ -18,24 +18,24 @@ import ( "strings" "time" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/common" - actions_service "code.gitea.io/gitea/services/actions" - context_module "code.gitea.io/gitea/services/context" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/actions" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/templates" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/common" + actions_service "forgejo.org/services/actions" + context_module "forgejo.org/services/context" "xorm.io/builder" ) diff --git a/routers/web/repo/activity.go b/routers/web/repo/activity.go index af9cea0f33..c9cd2c13bb 100644 --- a/routers/web/repo/activity.go +++ b/routers/web/repo/activity.go @@ -7,10 +7,10 @@ import ( "net/http" "time" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/services/context" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/attachment.go b/routers/web/repo/attachment.go index b5078e1f63..e46c08fef8 100644 --- a/routers/web/repo/attachment.go +++ b/routers/web/repo/attachment.go @@ -7,18 +7,18 @@ import ( "fmt" "net/http" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/attachment" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - repo_service "code.gitea.io/gitea/services/repository" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" + "forgejo.org/routers/common" + "forgejo.org/services/attachment" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + repo_service "forgejo.org/services/repository" ) // UploadIssueAttachment response for Issue/PR attachments diff --git a/routers/web/repo/badges/badges.go b/routers/web/repo/badges/badges.go index a2306d5836..e623a21fc0 100644 --- a/routers/web/repo/badges/badges.go +++ b/routers/web/repo/badges/badges.go @@ -8,11 +8,11 @@ import ( "net/url" "strings" - actions_model "code.gitea.io/gitea/models/actions" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/setting" - context_module "code.gitea.io/gitea/services/context" + actions_model "forgejo.org/models/actions" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/setting" + context_module "forgejo.org/services/context" ) func getBadgeURL(ctx *context_module.Context, label, text, color string) string { diff --git a/routers/web/repo/blame.go b/routers/web/repo/blame.go index c7fbaaefcb..ccdd59f2dd 100644 --- a/routers/web/repo/blame.go +++ b/routers/web/repo/blame.go @@ -10,16 +10,16 @@ import ( "net/url" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/highlight" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" - files_service "code.gitea.io/gitea/services/repository/files" + user_model "forgejo.org/models/user" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/highlight" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/util" + "forgejo.org/services/context" + files_service "forgejo.org/services/repository/files" ) type blameRow struct { diff --git a/routers/web/repo/branch.go b/routers/web/repo/branch.go index 4897a5f4fc..af8a838fc9 100644 --- a/routers/web/repo/branch.go +++ b/routers/web/repo/branch.go @@ -11,23 +11,23 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - release_service "code.gitea.io/gitea/services/release" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/utils" + "forgejo.org/services/context" + "forgejo.org/services/forms" + release_service "forgejo.org/services/release" + repo_service "forgejo.org/services/repository" ) const ( diff --git a/routers/web/repo/card.go b/routers/web/repo/card.go index e73971cd94..449e5c4890 100644 --- a/routers/web/repo/card.go +++ b/routers/web/repo/card.go @@ -15,17 +15,17 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - issue_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/card" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + issue_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/card" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/services/context" ) // drawUser draws a user avatar in a summary card diff --git a/routers/web/repo/cherry_pick.go b/routers/web/repo/cherry_pick.go index 90dae704f4..0f57eb66f0 100644 --- a/routers/web/repo/cherry_pick.go +++ b/routers/web/repo/cherry_pick.go @@ -8,17 +8,17 @@ import ( "errors" "strings" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/repository/files" + "forgejo.org/models" + git_model "forgejo.org/models/git" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/repository/files" ) var tplCherryPick base.TplName = "repo/editor/cherry_pick" diff --git a/routers/web/repo/code_frequency.go b/routers/web/repo/code_frequency.go index c76f492da0..04009b4afa 100644 --- a/routers/web/repo/code_frequency.go +++ b/routers/web/repo/code_frequency.go @@ -7,9 +7,9 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/services/context" - contributors_service "code.gitea.io/gitea/services/repository" + "forgejo.org/modules/base" + "forgejo.org/services/context" + contributors_service "forgejo.org/services/repository" ) const ( diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index 857e34381e..3cd80a6777 100644 --- a/routers/web/repo/commit.go +++ b/routers/web/repo/commit.go @@ -12,26 +12,26 @@ import ( "path" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/gitdiff" - git_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/services/repository/gitgraph" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/gitdiff" + git_service "forgejo.org/services/repository" + "forgejo.org/services/repository/gitgraph" ) const ( diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go index 24785d867e..db65e889e0 100644 --- a/routers/web/repo/compare.go +++ b/routers/web/repo/compare.go @@ -16,29 +16,29 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/charset" - csv_module "code.gitea.io/gitea/modules/csv" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/gitdiff" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/charset" + csv_module "forgejo.org/modules/csv" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/util" + "forgejo.org/routers/common" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/gitdiff" ) const ( diff --git a/routers/web/repo/contributors.go b/routers/web/repo/contributors.go index 762fbf9379..094d13b54b 100644 --- a/routers/web/repo/contributors.go +++ b/routers/web/repo/contributors.go @@ -7,9 +7,9 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/services/context" - contributors_service "code.gitea.io/gitea/services/repository" + "forgejo.org/modules/base" + "forgejo.org/services/context" + contributors_service "forgejo.org/services/repository" ) const ( diff --git a/routers/web/repo/download.go b/routers/web/repo/download.go index d7fe368474..fc82ece4cb 100644 --- a/routers/web/repo/download.go +++ b/routers/web/repo/download.go @@ -7,15 +7,15 @@ package repo import ( "time" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/context" + git_model "forgejo.org/models/git" + "forgejo.org/modules/git" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/routers/common" + "forgejo.org/services/context" ) // ServeBlobOrLFS download a git.Blob redirecting to LFS if necessary diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go index f27ad62982..77f71fd2b1 100644 --- a/routers/web/repo/editor.go +++ b/routers/web/repo/editor.go @@ -10,26 +10,26 @@ import ( "path" "strings" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/utils" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/forms" - files_service "code.gitea.io/gitea/services/repository/files" + "forgejo.org/models" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/utils" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/forms" + files_service "forgejo.org/services/repository/files" ) const ( diff --git a/routers/web/repo/editor_test.go b/routers/web/repo/editor_test.go index 4d565b5fd6..5b893cf258 100644 --- a/routers/web/repo/editor_test.go +++ b/routers/web/repo/editor_test.go @@ -6,11 +6,11 @@ package repo import ( "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/services/contexttest" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" ) diff --git a/routers/web/repo/find.go b/routers/web/repo/find.go index 9da4237c1e..808323631c 100644 --- a/routers/web/repo/find.go +++ b/routers/web/repo/find.go @@ -6,9 +6,9 @@ package repo import ( "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/modules/util" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/flags/manage.go b/routers/web/repo/flags/manage.go index 377a5c20f8..c97ef54818 100644 --- a/routers/web/repo/flags/manage.go +++ b/routers/web/repo/flags/manage.go @@ -6,10 +6,10 @@ package flags import ( "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/githttp.go b/routers/web/repo/githttp.go index bced8e61b1..650b1d88f4 100644 --- a/routers/web/repo/githttp.go +++ b/routers/web/repo/githttp.go @@ -18,20 +18,20 @@ import ( "sync" "time" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" "github.com/go-chi/cors" ) diff --git a/routers/web/repo/helper.go b/routers/web/repo/helper.go index 6fa7579231..9d67f142fb 100644 --- a/routers/web/repo/helper.go +++ b/routers/web/repo/helper.go @@ -7,9 +7,9 @@ import ( "net/url" "slices" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/services/context" ) func MakeSelfOnTop(doer *user.User, users []*user.User) []*user.User { diff --git a/routers/web/repo/helper_test.go b/routers/web/repo/helper_test.go index 844ad5bf79..2607fd32f8 100644 --- a/routers/web/repo/helper_test.go +++ b/routers/web/repo/helper_test.go @@ -6,7 +6,7 @@ package repo import ( "testing" - "code.gitea.io/gitea/models/user" + "forgejo.org/models/user" "github.com/stretchr/testify/assert" ) diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 5b7ac17372..1e3c185058 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -20,44 +20,44 @@ import ( "strings" "time" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - project_model "code.gitea.io/gitea/models/project" - pull_model "code.gitea.io/gitea/models/pull" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/emoji" - "code.gitea.io/gitea/modules/git" - issue_indexer "code.gitea.io/gitea/modules/indexer/issues" - issue_template "code.gitea.io/gitea/modules/issue/template" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/optional" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/templates/vars" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/utils" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/forms" - issue_service "code.gitea.io/gitea/services/issue" - pull_service "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + project_model "forgejo.org/models/project" + pull_model "forgejo.org/models/pull" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/emoji" + "forgejo.org/modules/git" + issue_indexer "forgejo.org/modules/indexer/issues" + issue_template "forgejo.org/modules/issue/template" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/optional" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/templates" + "forgejo.org/modules/templates/vars" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/utils" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/convert" + "forgejo.org/services/forms" + issue_service "forgejo.org/services/issue" + pull_service "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" "code.forgejo.org/go-chi/binding" ) diff --git a/routers/web/repo/issue_content_history.go b/routers/web/repo/issue_content_history.go index 4ce76b2bb9..5c71d75f80 100644 --- a/routers/web/repo/issue_content_history.go +++ b/routers/web/repo/issue_content_history.go @@ -9,12 +9,12 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/avatars" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/avatars" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/services/context" "github.com/sergi/go-diff/diffmatchpatch" ) diff --git a/routers/web/repo/issue_dependency.go b/routers/web/repo/issue_dependency.go index 66b38688ec..3764a6bd7e 100644 --- a/routers/web/repo/issue_dependency.go +++ b/routers/web/repo/issue_dependency.go @@ -6,10 +6,10 @@ package repo import ( "net/http" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) // AddDependency adds new dependencies diff --git a/routers/web/repo/issue_label.go b/routers/web/repo/issue_label.go index 81bee4dbb5..74674e9550 100644 --- a/routers/web/repo/issue_label.go +++ b/routers/web/repo/issue_label.go @@ -6,17 +6,17 @@ package repo import ( "net/http" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/label" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - issue_service "code.gitea.io/gitea/services/issue" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + "forgejo.org/modules/base" + "forgejo.org/modules/label" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + issue_service "forgejo.org/services/issue" ) const ( diff --git a/routers/web/repo/issue_label_test.go b/routers/web/repo/issue_label_test.go index 2b4915e855..406ab4918c 100644 --- a/routers/web/repo/issue_label_test.go +++ b/routers/web/repo/issue_label_test.go @@ -8,13 +8,13 @@ import ( "strconv" "testing" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/contexttest" - "code.gitea.io/gitea/services/forms" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + "forgejo.org/modules/repository" + "forgejo.org/modules/test" + "forgejo.org/modules/web" + "forgejo.org/services/contexttest" + "forgejo.org/services/forms" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/web/repo/issue_lock.go b/routers/web/repo/issue_lock.go index 1d5fc8a5f3..dea67ab996 100644 --- a/routers/web/repo/issue_lock.go +++ b/routers/web/repo/issue_lock.go @@ -4,10 +4,10 @@ package repo import ( - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) // LockIssue locks an issue. This would limit commenting abilities to diff --git a/routers/web/repo/issue_pin.go b/routers/web/repo/issue_pin.go index 365c812681..5e2075a17f 100644 --- a/routers/web/repo/issue_pin.go +++ b/routers/web/repo/issue_pin.go @@ -6,10 +6,10 @@ package repo import ( "net/http" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/context" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/services/context" ) // IssuePinOrUnpin pin or unpin a Issue diff --git a/routers/web/repo/issue_stopwatch.go b/routers/web/repo/issue_stopwatch.go index 70d42b27c0..5bc49464dd 100644 --- a/routers/web/repo/issue_stopwatch.go +++ b/routers/web/repo/issue_stopwatch.go @@ -7,10 +7,10 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/eventsource" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/eventsource" + "forgejo.org/services/context" ) // IssueStopwatch creates or stops a stopwatch for the given issue. diff --git a/routers/web/repo/issue_timetrack.go b/routers/web/repo/issue_timetrack.go index 241e434049..e63f7e2dc2 100644 --- a/routers/web/repo/issue_timetrack.go +++ b/routers/web/repo/issue_timetrack.go @@ -7,12 +7,12 @@ import ( "net/http" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) // AddTimeManually tracks time manually diff --git a/routers/web/repo/issue_watch.go b/routers/web/repo/issue_watch.go index 5cff9f4ddd..5af223f865 100644 --- a/routers/web/repo/issue_watch.go +++ b/routers/web/repo/issue_watch.go @@ -7,10 +7,10 @@ import ( "net/http" "strconv" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/context" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/main_test.go b/routers/web/repo/main_test.go index 6e469cf2ed..8b30ad41ed 100644 --- a/routers/web/repo/main_test.go +++ b/routers/web/repo/main_test.go @@ -6,7 +6,7 @@ package repo import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/web/repo/middlewares.go b/routers/web/repo/middlewares.go index ddda9f3ff2..9aba447433 100644 --- a/routers/web/repo/middlewares.go +++ b/routers/web/repo/middlewares.go @@ -7,12 +7,12 @@ import ( "fmt" "strconv" - system_model "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/services/context" - user_service "code.gitea.io/gitea/services/user" + system_model "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/optional" + "forgejo.org/services/context" + user_service "forgejo.org/services/user" ) // SetEditorconfigIfExists set editor config as render variable diff --git a/routers/web/repo/migrate.go b/routers/web/repo/migrate.go index 0acf966bca..86d2461e94 100644 --- a/routers/web/repo/migrate.go +++ b/routers/web/repo/migrate.go @@ -9,23 +9,23 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/models" - admin_model "code.gitea.io/gitea/models/admin" - "code.gitea.io/gitea/models/db" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/migrations" - "code.gitea.io/gitea/services/task" + "forgejo.org/models" + admin_model "forgejo.org/models/admin" + "forgejo.org/models/db" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/migrations" + "forgejo.org/services/task" ) const ( diff --git a/routers/web/repo/milestone.go b/routers/web/repo/milestone.go index 1c53f73fdb..920a9ee12a 100644 --- a/routers/web/repo/milestone.go +++ b/routers/web/repo/milestone.go @@ -9,18 +9,18 @@ import ( "net/url" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/issue" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/base" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/issue" "xorm.io/builder" ) diff --git a/routers/web/repo/packages.go b/routers/web/repo/packages.go index 11874ab0d0..c947fb99bf 100644 --- a/routers/web/repo/packages.go +++ b/routers/web/repo/packages.go @@ -6,13 +6,13 @@ package repo import ( "net/http" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/patch.go b/routers/web/repo/patch.go index d234f6c964..688ef19375 100644 --- a/routers/web/repo/patch.go +++ b/routers/web/repo/patch.go @@ -6,16 +6,16 @@ package repo import ( "strings" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/repository/files" + "forgejo.org/models" + git_model "forgejo.org/models/git" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/repository/files" ) const ( diff --git a/routers/web/repo/projects.go b/routers/web/repo/projects.go index 0689b0a721..80f699787c 100644 --- a/routers/web/repo/projects.go +++ b/routers/web/repo/projects.go @@ -9,22 +9,22 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/perm" - project_model "code.gitea.io/gitea/models/project" - attachment_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/perm" + project_model "forgejo.org/models/project" + attachment_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/modules/json" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) const ( diff --git a/routers/web/repo/projects_test.go b/routers/web/repo/projects_test.go index d61230a57e..bc8b747980 100644 --- a/routers/web/repo/projects_test.go +++ b/routers/web/repo/projects_test.go @@ -6,8 +6,8 @@ package repo import ( "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/models/unittest" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" ) diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index 98dacc1a0d..a54a31ac36 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -16,39 +16,39 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - pull_model "code.gitea.io/gitea/models/pull" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/emoji" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - issue_template "code.gitea.io/gitea/modules/issue/template" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/utils" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/automerge" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/gitdiff" - notify_service "code.gitea.io/gitea/services/notify" - pull_service "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + pull_model "forgejo.org/models/pull" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/emoji" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + issue_template "forgejo.org/modules/issue/template" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/utils" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/automerge" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/forms" + "forgejo.org/services/gitdiff" + notify_service "forgejo.org/services/notify" + pull_service "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" "github.com/gobwas/glob" ) diff --git a/routers/web/repo/pull_review.go b/routers/web/repo/pull_review.go index eb8dd83d9c..18a5b872f1 100644 --- a/routers/web/repo/pull_review.go +++ b/routers/web/repo/pull_review.go @@ -8,17 +8,17 @@ import ( "fmt" "net/http" - issues_model "code.gitea.io/gitea/models/issues" - pull_model "code.gitea.io/gitea/models/pull" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/forms" - pull_service "code.gitea.io/gitea/services/pull" + issues_model "forgejo.org/models/issues" + pull_model "forgejo.org/models/pull" + "forgejo.org/modules/base" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/forms" + pull_service "forgejo.org/services/pull" ) const ( diff --git a/routers/web/repo/pull_review_test.go b/routers/web/repo/pull_review_test.go index 329e83fe4b..14e6714a63 100644 --- a/routers/web/repo/pull_review_test.go +++ b/routers/web/repo/pull_review_test.go @@ -8,13 +8,13 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/contexttest" - "code.gitea.io/gitea/services/pull" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + "forgejo.org/modules/templates" + "forgejo.org/services/context" + "forgejo.org/services/contexttest" + "forgejo.org/services/pull" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/web/repo/recent_commits.go b/routers/web/repo/recent_commits.go index c158fb30b6..6154de7377 100644 --- a/routers/web/repo/recent_commits.go +++ b/routers/web/repo/recent_commits.go @@ -7,9 +7,9 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/services/context" - contributors_service "code.gitea.io/gitea/services/repository" + "forgejo.org/modules/base" + "forgejo.org/services/context" + contributors_service "forgejo.org/services/repository" ) const ( diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go index 1791788743..024dd7b62d 100644 --- a/routers/web/repo/release.go +++ b/routers/web/repo/release.go @@ -10,29 +10,29 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/web/feed" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/context/upload" - "code.gitea.io/gitea/services/forms" - releaseservice "code.gitea.io/gitea/services/release" + "forgejo.org/models" + "forgejo.org/models/asymkey" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/web/feed" + "forgejo.org/services/context" + "forgejo.org/services/context/upload" + "forgejo.org/services/forms" + releaseservice "forgejo.org/services/release" ) const ( diff --git a/routers/web/repo/release_test.go b/routers/web/repo/release_test.go index 5c7b6e2e8f..785b1fdf69 100644 --- a/routers/web/repo/release_test.go +++ b/routers/web/repo/release_test.go @@ -6,13 +6,13 @@ package repo import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/contexttest" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + "forgejo.org/modules/web" + "forgejo.org/services/contexttest" + "forgejo.org/services/forms" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/web/repo/render.go b/routers/web/repo/render.go index e64db03e20..b31e2e203a 100644 --- a/routers/web/repo/render.go +++ b/routers/web/repo/render.go @@ -9,13 +9,13 @@ import ( "net/http" "path" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/util" + "forgejo.org/services/context" ) // RenderFile renders a file by repos path diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go index 2e8ca61bf5..53b3f34347 100644 --- a/routers/web/repo/repo.go +++ b/routers/web/repo/repo.go @@ -12,32 +12,32 @@ import ( "slices" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/forms" - repo_service "code.gitea.io/gitea/services/repository" - archiver_service "code.gitea.io/gitea/services/repository/archiver" - commitstatus_service "code.gitea.io/gitea/services/repository/commitstatus" + "forgejo.org/models" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/forms" + repo_service "forgejo.org/services/repository" + archiver_service "forgejo.org/services/repository/archiver" + commitstatus_service "forgejo.org/services/repository/commitstatus" ) const ( diff --git a/routers/web/repo/search.go b/routers/web/repo/search.go index d10eb67528..1671378a3b 100644 --- a/routers/web/repo/search.go +++ b/routers/web/repo/search.go @@ -7,12 +7,12 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - code_indexer "code.gitea.io/gitea/modules/indexer/code" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + code_indexer "forgejo.org/modules/indexer/code" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) const tplSearch base.TplName = "repo/search" diff --git a/routers/web/repo/setting/avatar.go b/routers/web/repo/setting/avatar.go index 504f57cfc2..abbb12cacb 100644 --- a/routers/web/repo/setting/avatar.go +++ b/routers/web/repo/setting/avatar.go @@ -8,13 +8,13 @@ import ( "fmt" "io" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + repo_service "forgejo.org/services/repository" ) // UpdateAvatarSetting update repo's avatar diff --git a/routers/web/repo/setting/collaboration.go b/routers/web/repo/setting/collaboration.go index 75b55151e7..a816a16bc8 100644 --- a/routers/web/repo/setting/collaboration.go +++ b/routers/web/repo/setting/collaboration.go @@ -8,19 +8,19 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/mailer" - org_service "code.gitea.io/gitea/services/org" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + "forgejo.org/services/mailer" + org_service "forgejo.org/services/org" + repo_service "forgejo.org/services/repository" ) // Collaboration render a repository's collaboration page diff --git a/routers/web/repo/setting/default_branch.go b/routers/web/repo/setting/default_branch.go index 881d148afc..1c6033f1e4 100644 --- a/routers/web/repo/setting/default_branch.go +++ b/routers/web/repo/setting/default_branch.go @@ -6,12 +6,12 @@ package setting import ( "net/http" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers/web/repo" - "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" + git_model "forgejo.org/models/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/routers/web/repo" + "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" ) // SetDefaultBranchPost set default branch diff --git a/routers/web/repo/setting/deploy_key.go b/routers/web/repo/setting/deploy_key.go index abc3eb4af1..c59f0e90c2 100644 --- a/routers/web/repo/setting/deploy_key.go +++ b/routers/web/repo/setting/deploy_key.go @@ -6,14 +6,14 @@ package setting import ( "net/http" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) // DeployKeys render the deploy keys list of a repository page diff --git a/routers/web/repo/setting/git_hooks.go b/routers/web/repo/setting/git_hooks.go index 217a01c90c..a50bce2a27 100644 --- a/routers/web/repo/setting/git_hooks.go +++ b/routers/web/repo/setting/git_hooks.go @@ -6,8 +6,8 @@ package setting import ( "net/http" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/git" + "forgejo.org/services/context" ) // GitHooks hooks of a repository diff --git a/routers/web/repo/setting/lfs.go b/routers/web/repo/setting/lfs.go index 7e3634375a..2e9c34e8a7 100644 --- a/routers/web/repo/setting/lfs.go +++ b/routers/web/repo/setting/lfs.go @@ -14,20 +14,20 @@ import ( "strconv" "strings" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/git/pipeline" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" + git_model "forgejo.org/models/git" + "forgejo.org/modules/base" + "forgejo.org/modules/charset" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/git/pipeline" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/util" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/setting/main_test.go b/routers/web/repo/setting/main_test.go index c414b853e5..6b5a70ba08 100644 --- a/routers/web/repo/setting/main_test.go +++ b/routers/web/repo/setting/main_test.go @@ -6,7 +6,7 @@ package setting import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/web/repo/setting/protected_branch.go b/routers/web/repo/setting/protected_branch.go index b2f5798a26..18efbc37c4 100644 --- a/routers/web/repo/setting/protected_branch.go +++ b/routers/web/repo/setting/protected_branch.go @@ -11,17 +11,17 @@ import ( "strings" "time" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/web/repo" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - pull_service "code.gitea.io/gitea/services/pull" - "code.gitea.io/gitea/services/repository" + git_model "forgejo.org/models/git" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + "forgejo.org/modules/base" + "forgejo.org/modules/web" + "forgejo.org/routers/web/repo" + "forgejo.org/services/context" + "forgejo.org/services/forms" + pull_service "forgejo.org/services/pull" + "forgejo.org/services/repository" "github.com/gobwas/glob" ) diff --git a/routers/web/repo/setting/protected_tag.go b/routers/web/repo/setting/protected_tag.go index 2c25b650b9..5735149dfd 100644 --- a/routers/web/repo/setting/protected_tag.go +++ b/routers/web/repo/setting/protected_tag.go @@ -8,15 +8,15 @@ import ( "net/http" "strings" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + git_model "forgejo.org/models/git" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) const ( diff --git a/routers/web/repo/setting/runners.go b/routers/web/repo/setting/runners.go index 9dce5d13b7..32c8667825 100644 --- a/routers/web/repo/setting/runners.go +++ b/routers/web/repo/setting/runners.go @@ -8,13 +8,13 @@ import ( "net/http" "net/url" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - actions_shared "code.gitea.io/gitea/routers/web/shared/actions" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + actions_shared "forgejo.org/routers/web/shared/actions" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/setting/secrets.go b/routers/web/repo/setting/secrets.go index d4d56bfc57..11c83e8bd6 100644 --- a/routers/web/repo/setting/secrets.go +++ b/routers/web/repo/setting/secrets.go @@ -7,11 +7,11 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - shared "code.gitea.io/gitea/routers/web/shared/secrets" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + shared "forgejo.org/routers/web/shared/secrets" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/setting/setting.go b/routers/web/repo/setting/setting.go index df7e388680..2af2eef4a5 100644 --- a/routers/web/repo/setting/setting.go +++ b/routers/web/repo/setting/setting.go @@ -13,34 +13,34 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/indexer/code" - "code.gitea.io/gitea/modules/indexer/stats" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - actions_service "code.gitea.io/gitea/services/actions" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/federation" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/migrations" - mirror_service "code.gitea.io/gitea/services/mirror" - repo_service "code.gitea.io/gitea/services/repository" - wiki_service "code.gitea.io/gitea/services/wiki" + "forgejo.org/models" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/models/organization" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/indexer/code" + "forgejo.org/modules/indexer/stats" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + actions_service "forgejo.org/services/actions" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/context" + "forgejo.org/services/federation" + "forgejo.org/services/forms" + "forgejo.org/services/migrations" + mirror_service "forgejo.org/services/mirror" + repo_service "forgejo.org/services/repository" + wiki_service "forgejo.org/services/wiki" ) const ( diff --git a/routers/web/repo/setting/settings_test.go b/routers/web/repo/setting/settings_test.go index 0c8553faea..6f05953bfb 100644 --- a/routers/web/repo/setting/settings_test.go +++ b/routers/web/repo/setting/settings_test.go @@ -7,19 +7,19 @@ import ( "net/http" "testing" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/contexttest" - "code.gitea.io/gitea/services/forms" - repo_service "code.gitea.io/gitea/services/repository" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/contexttest" + "forgejo.org/services/forms" + repo_service "forgejo.org/services/repository" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/web/repo/setting/variables.go b/routers/web/repo/setting/variables.go index 4fb8c06e84..a83d2dea6f 100644 --- a/routers/web/repo/setting/variables.go +++ b/routers/web/repo/setting/variables.go @@ -7,11 +7,11 @@ import ( "errors" "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - shared "code.gitea.io/gitea/routers/web/shared/actions" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + shared "forgejo.org/routers/web/shared/actions" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/repo/setting/webhook.go b/routers/web/repo/setting/webhook.go index af54997794..6d4d9e47e2 100644 --- a/routers/web/repo/setting/webhook.go +++ b/routers/web/repo/setting/webhook.go @@ -11,22 +11,22 @@ import ( "net/url" "path" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web/middleware" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/services/forms" - webhook_service "code.gitea.io/gitea/services/webhook" + "forgejo.org/models/db" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + user_model "forgejo.org/models/user" + "forgejo.org/models/webhook" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/web/middleware" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/context" + "forgejo.org/services/convert" + "forgejo.org/services/forms" + webhook_service "forgejo.org/services/webhook" "code.forgejo.org/go-chi/binding" ) diff --git a/routers/web/repo/topic.go b/routers/web/repo/topic.go index d81a695df9..a028afb042 100644 --- a/routers/web/repo/topic.go +++ b/routers/web/repo/topic.go @@ -7,9 +7,9 @@ import ( "net/http" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/context" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + "forgejo.org/services/context" ) // TopicsPost response for creating repository diff --git a/routers/web/repo/treelist.go b/routers/web/repo/treelist.go index d11af4669f..5c37f2ebca 100644 --- a/routers/web/repo/treelist.go +++ b/routers/web/repo/treelist.go @@ -6,9 +6,9 @@ package repo import ( "net/http" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/services/context" "github.com/go-enry/go-enry/v2" ) diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 9030b03a90..b7a7a3f042 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -24,35 +24,35 @@ import ( _ "image/jpeg" // for processing jpeg images _ "image/png" // for processing png images - activities_model "code.gitea.io/gitea/models/activities" - admin_model "code.gitea.io/gitea/models/admin" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issue_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/highlight" - code_indexer "code.gitea.io/gitea/modules/indexer/code" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/svg" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/web/feed" - "code.gitea.io/gitea/services/context" - issue_service "code.gitea.io/gitea/services/issue" - files_service "code.gitea.io/gitea/services/repository/files" + activities_model "forgejo.org/models/activities" + admin_model "forgejo.org/models/admin" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issue_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/actions" + "forgejo.org/modules/base" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/highlight" + code_indexer "forgejo.org/modules/indexer/code" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/svg" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/util" + "forgejo.org/routers/web/feed" + "forgejo.org/services/context" + issue_service "forgejo.org/services/issue" + files_service "forgejo.org/services/repository/files" "github.com/nektos/act/pkg/model" diff --git a/routers/web/repo/wiki.go b/routers/web/repo/wiki.go index 070d07cdf3..9a21ac21a3 100644 --- a/routers/web/repo/wiki.go +++ b/routers/web/repo/wiki.go @@ -14,25 +14,25 @@ import ( "path/filepath" "strings" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - notify_service "code.gitea.io/gitea/services/notify" - wiki_service "code.gitea.io/gitea/services/wiki" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers/common" + "forgejo.org/services/context" + "forgejo.org/services/forms" + notify_service "forgejo.org/services/notify" + wiki_service "forgejo.org/services/wiki" ) const ( diff --git a/routers/web/repo/wiki_test.go b/routers/web/repo/wiki_test.go index 0c49e7d902..cba416fc92 100644 --- a/routers/web/repo/wiki_test.go +++ b/routers/web/repo/wiki_test.go @@ -9,14 +9,14 @@ import ( "net/url" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/contexttest" - "code.gitea.io/gitea/services/forms" - wiki_service "code.gitea.io/gitea/services/wiki" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/web" + "forgejo.org/services/contexttest" + "forgejo.org/services/forms" + wiki_service "forgejo.org/services/wiki" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/web/shared/actions/runners.go b/routers/web/shared/actions/runners.go index 66dce1412b..98a649d1d8 100644 --- a/routers/web/shared/actions/runners.go +++ b/routers/web/shared/actions/runners.go @@ -6,13 +6,13 @@ package actions import ( "errors" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) // RunnersList prepares data for runners list diff --git a/routers/web/shared/actions/variables.go b/routers/web/shared/actions/variables.go index 47f1176f46..13dff2f11a 100644 --- a/routers/web/shared/actions/variables.go +++ b/routers/web/shared/actions/variables.go @@ -4,13 +4,13 @@ package actions import ( - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/web" - actions_service "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/web" + actions_service "forgejo.org/services/actions" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) func SetVariablesContext(ctx *context.Context, ownerID, repoID int64) { diff --git a/routers/web/shared/packages/packages.go b/routers/web/shared/packages/packages.go index af960f1c0c..1d4fb1588d 100644 --- a/routers/web/shared/packages/packages.go +++ b/routers/web/shared/packages/packages.go @@ -9,19 +9,19 @@ import ( "net/http" "time" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - cargo_service "code.gitea.io/gitea/services/packages/cargo" - container_service "code.gitea.io/gitea/services/packages/container" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + cargo_service "forgejo.org/services/packages/cargo" + container_service "forgejo.org/services/packages/container" ) func SetPackagesContext(ctx *context.Context, owner *user_model.User) { diff --git a/routers/web/shared/project/column.go b/routers/web/shared/project/column.go index 599842ea9e..40bb439452 100644 --- a/routers/web/shared/project/column.go +++ b/routers/web/shared/project/column.go @@ -4,9 +4,9 @@ package project import ( - project_model "code.gitea.io/gitea/models/project" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/services/context" + project_model "forgejo.org/models/project" + "forgejo.org/modules/json" + "forgejo.org/services/context" ) // MoveColumns moves or keeps columns in a project and sorts them inside that project diff --git a/routers/web/shared/secrets/secrets.go b/routers/web/shared/secrets/secrets.go index 3bd421f86a..a853598939 100644 --- a/routers/web/shared/secrets/secrets.go +++ b/routers/web/shared/secrets/secrets.go @@ -4,14 +4,14 @@ package secrets import ( - "code.gitea.io/gitea/models/db" - secret_model "code.gitea.io/gitea/models/secret" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - secret_service "code.gitea.io/gitea/services/secrets" + "forgejo.org/models/db" + secret_model "forgejo.org/models/secret" + "forgejo.org/modules/log" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + secret_service "forgejo.org/services/secrets" ) func SetSecretsContext(ctx *context.Context, ownerID, repoID int64) { diff --git a/routers/web/shared/storage_overview.go b/routers/web/shared/storage_overview.go index 3bebdfb688..fac4aa99e5 100644 --- a/routers/web/shared/storage_overview.go +++ b/routers/web/shared/storage_overview.go @@ -7,10 +7,10 @@ import ( "html/template" "net/http" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + quota_model "forgejo.org/models/quota" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) // StorageOverview render a size overview of the user, as well as relevant diff --git a/routers/web/shared/user/header.go b/routers/web/shared/user/header.go index fd7605c33b..c26ff19165 100644 --- a/routers/web/shared/user/header.go +++ b/routers/web/shared/user/header.go @@ -7,22 +7,22 @@ package user import ( "net/url" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - packages_model "code.gitea.io/gitea/models/packages" - access_model "code.gitea.io/gitea/models/perm/access" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + "forgejo.org/models/organization" + packages_model "forgejo.org/models/packages" + access_model "forgejo.org/models/perm/access" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) // prepareContextForCommonProfile store some common data into context data for user's profile related pages (including the nav menu) diff --git a/routers/web/swagger_json.go b/routers/web/swagger_json.go index fc39b504a9..1569600734 100644 --- a/routers/web/swagger_json.go +++ b/routers/web/swagger_json.go @@ -4,7 +4,7 @@ package web import ( - "code.gitea.io/gitea/services/context" + "forgejo.org/services/context" ) // SwaggerV1Json render swagger v1 json diff --git a/routers/web/user/avatar.go b/routers/web/user/avatar.go index 04f510161d..76cc342770 100644 --- a/routers/web/user/avatar.go +++ b/routers/web/user/avatar.go @@ -7,10 +7,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/avatars" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/avatars" + user_model "forgejo.org/models/user" + "forgejo.org/modules/httpcache" + "forgejo.org/services/context" ) func cacheableRedirect(ctx *context.Context, location string) { diff --git a/routers/web/user/code.go b/routers/web/user/code.go index 019249e3e0..ac1852e410 100644 --- a/routers/web/user/code.go +++ b/routers/web/user/code.go @@ -6,13 +6,13 @@ package user import ( "net/http" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/base" - code_indexer "code.gitea.io/gitea/modules/indexer/code" - "code.gitea.io/gitea/modules/setting" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/base" + code_indexer "forgejo.org/modules/indexer/code" + "forgejo.org/modules/setting" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/user/home.go b/routers/web/user/home.go index a0841c0227..9f22cebaba 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -13,27 +13,27 @@ import ( "strconv" "strings" - activities_model "code.gitea.io/gitea/models/activities" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - issue_indexer "code.gitea.io/gitea/modules/indexer/issues" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers/web/feed" - "code.gitea.io/gitea/services/context" - issue_service "code.gitea.io/gitea/services/issue" - pull_service "code.gitea.io/gitea/services/pull" + activities_model "forgejo.org/models/activities" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + issue_indexer "forgejo.org/modules/indexer/issues" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/routers/web/feed" + "forgejo.org/services/context" + issue_service "forgejo.org/services/issue" + pull_service "forgejo.org/services/pull" "github.com/ProtonMail/go-crypto/openpgp" "github.com/ProtonMail/go-crypto/openpgp/armor" diff --git a/routers/web/user/home_test.go b/routers/web/user/home_test.go index c09f609161..af9d50538d 100644 --- a/routers/web/user/home_test.go +++ b/routers/web/user/home_test.go @@ -7,14 +7,14 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/services/context" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/routers/web/user/main_test.go b/routers/web/user/main_test.go index 8b6ae69296..080e3fdcfe 100644 --- a/routers/web/user/main_test.go +++ b/routers/web/user/main_test.go @@ -6,7 +6,7 @@ package user import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go index c3358dbf62..296951b2ff 100644 --- a/routers/web/user/notification.go +++ b/routers/web/user/notification.go @@ -11,21 +11,21 @@ import ( "net/url" "strings" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" - issue_service "code.gitea.io/gitea/services/issue" - pull_service "code.gitea.io/gitea/services/pull" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/services/context" + issue_service "forgejo.org/services/issue" + pull_service "forgejo.org/services/pull" ) const ( diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 70ea20d388..2862c6684b 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/package.go @@ -8,28 +8,28 @@ import ( "net/http" "slices" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - packages_model "code.gitea.io/gitea/models/packages" - container_model "code.gitea.io/gitea/models/packages/container" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - alpine_module "code.gitea.io/gitea/modules/packages/alpine" - arch_model "code.gitea.io/gitea/modules/packages/arch" - debian_module "code.gitea.io/gitea/modules/packages/debian" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - packages_helper "code.gitea.io/gitea/routers/api/packages/helper" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + packages_model "forgejo.org/models/packages" + container_model "forgejo.org/models/packages/container" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + alpine_module "forgejo.org/modules/packages/alpine" + arch_model "forgejo.org/modules/packages/arch" + debian_module "forgejo.org/modules/packages/debian" + rpm_module "forgejo.org/modules/packages/rpm" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + packages_helper "forgejo.org/routers/api/packages/helper" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" + "forgejo.org/services/forms" + packages_service "forgejo.org/services/packages" ) const ( diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index de1c6850aa..5132b1da5c 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -11,23 +11,23 @@ import ( "path" "strings" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers/web/feed" - "code.gitea.io/gitea/routers/web/org" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" - user_service "code.gitea.io/gitea/services/user" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/routers/web/feed" + "forgejo.org/routers/web/org" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" + user_service "forgejo.org/services/user" ) const ( diff --git a/routers/web/user/search.go b/routers/web/user/search.go index be5eee90a9..411a356d9b 100644 --- a/routers/web/user/search.go +++ b/routers/web/user/search.go @@ -6,12 +6,12 @@ package user import ( "net/http" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // SearchCandidates searches candidate users for dropdown list diff --git a/routers/web/user/setting/account.go b/routers/web/user/setting/account.go index 6f40e39c8d..a0cdb25f44 100644 --- a/routers/web/user/setting/account.go +++ b/routers/web/user/setting/account.go @@ -9,23 +9,23 @@ import ( "net/http" "time" - "code.gitea.io/gitea/models" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/db" - "code.gitea.io/gitea/services/auth/source/smtp" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/mailer" - "code.gitea.io/gitea/services/user" + "forgejo.org/models" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/password" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + "forgejo.org/services/auth" + "forgejo.org/services/auth/source/db" + "forgejo.org/services/auth/source/smtp" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/mailer" + "forgejo.org/services/user" ) const ( diff --git a/routers/web/user/setting/account_test.go b/routers/web/user/setting/account_test.go index 9fdc5e4d53..82e00bbf7c 100644 --- a/routers/web/user/setting/account_test.go +++ b/routers/web/user/setting/account_test.go @@ -7,11 +7,11 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/contexttest" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/contexttest" + "forgejo.org/services/forms" "github.com/stretchr/testify/assert" ) diff --git a/routers/web/user/setting/adopt.go b/routers/web/user/setting/adopt.go index 171c1933d4..f7fd1c3803 100644 --- a/routers/web/user/setting/adopt.go +++ b/routers/web/user/setting/adopt.go @@ -6,12 +6,12 @@ package setting import ( "path/filepath" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" ) // AdoptOrDeleteRepository adopts or deletes a repository diff --git a/routers/web/user/setting/applications.go b/routers/web/user/setting/applications.go index 4dfd859a44..631d5958ea 100644 --- a/routers/web/user/setting/applications.go +++ b/routers/web/user/setting/applications.go @@ -7,14 +7,14 @@ package setting import ( "net/http" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) const ( diff --git a/routers/web/user/setting/blocked_users.go b/routers/web/user/setting/blocked_users.go index 3f35b2eadf..1448dc9a3c 100644 --- a/routers/web/user/setting/blocked_users.go +++ b/routers/web/user/setting/blocked_users.go @@ -6,11 +6,11 @@ package setting import ( "net/http" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/user/setting/keys.go b/routers/web/user/setting/keys.go index 9462be71c2..94d32b730f 100644 --- a/routers/web/user/setting/keys.go +++ b/routers/web/user/setting/keys.go @@ -8,15 +8,15 @@ import ( "fmt" "net/http" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) const ( diff --git a/routers/web/user/setting/main_test.go b/routers/web/user/setting/main_test.go index e398208d0d..38ac2842dd 100644 --- a/routers/web/user/setting/main_test.go +++ b/routers/web/user/setting/main_test.go @@ -6,7 +6,7 @@ package setting import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/routers/web/user/setting/oauth2.go b/routers/web/user/setting/oauth2.go index 1f485e06c8..64b252e97f 100644 --- a/routers/web/user/setting/oauth2.go +++ b/routers/web/user/setting/oauth2.go @@ -4,9 +4,9 @@ package setting import ( - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/user/setting/oauth2_common.go b/routers/web/user/setting/oauth2_common.go index 2132d127b8..7449e45216 100644 --- a/routers/web/user/setting/oauth2_common.go +++ b/routers/web/user/setting/oauth2_common.go @@ -7,13 +7,13 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - shared_user "code.gitea.io/gitea/routers/web/shared/user" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/auth" + "forgejo.org/modules/base" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + shared_user "forgejo.org/routers/web/shared/user" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) type OAuth2CommonHandlers struct { diff --git a/routers/web/user/setting/packages.go b/routers/web/user/setting/packages.go index 4132659495..ba739a03fc 100644 --- a/routers/web/user/setting/packages.go +++ b/routers/web/user/setting/packages.go @@ -7,13 +7,13 @@ import ( "net/http" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - chef_module "code.gitea.io/gitea/modules/packages/chef" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - shared "code.gitea.io/gitea/routers/web/shared/packages" - "code.gitea.io/gitea/services/context" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + chef_module "forgejo.org/modules/packages/chef" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + shared "forgejo.org/routers/web/shared/packages" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/user/setting/profile.go b/routers/web/user/setting/profile.go index 7009fb767d..482816c5bb 100644 --- a/routers/web/user/setting/profile.go +++ b/routers/web/user/setting/profile.go @@ -15,24 +15,27 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/avatars" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/theme" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/typesniffer" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - user_service "code.gitea.io/gitea/services/user" + "forgejo.org/models/avatars" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" +<<<<<<< HEAD + "forgejo.org/modules/theme" +======= +>>>>>>> upstream/v11.0/forgejo + "forgejo.org/modules/translation" + "forgejo.org/modules/typesniffer" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" + "forgejo.org/services/forms" + user_service "forgejo.org/services/user" ) const ( diff --git a/routers/web/user/setting/runner.go b/routers/web/user/setting/runner.go index 2bb10cceb9..5c8bba82a1 100644 --- a/routers/web/user/setting/runner.go +++ b/routers/web/user/setting/runner.go @@ -4,8 +4,8 @@ package setting import ( - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) func RedirectToDefaultSetting(ctx *context.Context) { diff --git a/routers/web/user/setting/security/2fa.go b/routers/web/user/setting/security/2fa.go index 37ccb5e5c4..f1271c8370 100644 --- a/routers/web/user/setting/security/2fa.go +++ b/routers/web/user/setting/security/2fa.go @@ -12,13 +12,13 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/mailer" + "forgejo.org/models/auth" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/mailer" "github.com/pquerna/otp" "github.com/pquerna/otp/totp" diff --git a/routers/web/user/setting/security/openid.go b/routers/web/user/setting/security/openid.go index 8f788e1735..14660e1646 100644 --- a/routers/web/user/setting/security/openid.go +++ b/routers/web/user/setting/security/openid.go @@ -6,13 +6,13 @@ package security import ( "net/http" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/openid" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/openid" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" ) // OpenIDPost response for change user's openid diff --git a/routers/web/user/setting/security/security.go b/routers/web/user/setting/security/security.go index 8d6859ab87..9acc6ab6f0 100644 --- a/routers/web/user/setting/security/security.go +++ b/routers/web/user/setting/security/security.go @@ -8,14 +8,14 @@ import ( "net/http" "sort" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/auth/source/oauth2" - "code.gitea.io/gitea/services/context" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/services/auth/source/oauth2" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/user/setting/security/webauthn.go b/routers/web/user/setting/security/webauthn.go index bfbc06c701..a909d479c9 100644 --- a/routers/web/user/setting/security/webauthn.go +++ b/routers/web/user/setting/security/webauthn.go @@ -9,14 +9,14 @@ import ( "strconv" "time" - "code.gitea.io/gitea/models/auth" - wa "code.gitea.io/gitea/modules/auth/webauthn" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/mailer" + "forgejo.org/models/auth" + wa "forgejo.org/modules/auth/webauthn" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/mailer" "github.com/go-webauthn/webauthn/protocol" "github.com/go-webauthn/webauthn/webauthn" diff --git a/routers/web/user/setting/storage_overview.go b/routers/web/user/setting/storage_overview.go index 8a0c773077..4586600572 100644 --- a/routers/web/user/setting/storage_overview.go +++ b/routers/web/user/setting/storage_overview.go @@ -4,9 +4,9 @@ package setting import ( - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/routers/web/shared" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/base" + "forgejo.org/routers/web/shared" + "forgejo.org/services/context" ) const ( diff --git a/routers/web/user/setting/webhooks.go b/routers/web/user/setting/webhooks.go index 3cc67d9def..bc07accad4 100644 --- a/routers/web/user/setting/webhooks.go +++ b/routers/web/user/setting/webhooks.go @@ -6,12 +6,12 @@ package setting import ( "net/http" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" - webhook_service "code.gitea.io/gitea/services/webhook" + "forgejo.org/models/db" + "forgejo.org/models/webhook" + "forgejo.org/modules/base" + "forgejo.org/modules/setting" + "forgejo.org/services/context" + webhook_service "forgejo.org/services/webhook" ) const ( diff --git a/routers/web/user/stop_watch.go b/routers/web/user/stop_watch.go index 38f74ea455..210b32d205 100644 --- a/routers/web/user/stop_watch.go +++ b/routers/web/user/stop_watch.go @@ -6,10 +6,10 @@ package user import ( "net/http" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) // GetStopwatches get all stopwatches diff --git a/routers/web/user/task.go b/routers/web/user/task.go index 8476767e9e..296c44f809 100644 --- a/routers/web/user/task.go +++ b/routers/web/user/task.go @@ -7,9 +7,9 @@ import ( "net/http" "strconv" - admin_model "code.gitea.io/gitea/models/admin" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/services/context" + admin_model "forgejo.org/models/admin" + "forgejo.org/modules/json" + "forgejo.org/services/context" ) // TaskStatus returns task's status diff --git a/routers/web/web.go b/routers/web/web.go index 15264ccc89..303167a6b9 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -8,46 +8,46 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/perm" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/metrics" - "code.gitea.io/gitea/modules/public" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/modules/web/routing" - "code.gitea.io/gitea/routers/common" - "code.gitea.io/gitea/routers/web/admin" - "code.gitea.io/gitea/routers/web/auth" - "code.gitea.io/gitea/routers/web/devtest" - "code.gitea.io/gitea/routers/web/events" - "code.gitea.io/gitea/routers/web/explore" - "code.gitea.io/gitea/routers/web/feed" - "code.gitea.io/gitea/routers/web/healthcheck" - "code.gitea.io/gitea/routers/web/misc" - "code.gitea.io/gitea/routers/web/org" - org_setting "code.gitea.io/gitea/routers/web/org/setting" - "code.gitea.io/gitea/routers/web/repo" - "code.gitea.io/gitea/routers/web/repo/actions" - "code.gitea.io/gitea/routers/web/repo/badges" - repo_flags "code.gitea.io/gitea/routers/web/repo/flags" - repo_setting "code.gitea.io/gitea/routers/web/repo/setting" - "code.gitea.io/gitea/routers/web/shared/project" - "code.gitea.io/gitea/routers/web/user" - user_setting "code.gitea.io/gitea/routers/web/user/setting" - "code.gitea.io/gitea/routers/web/user/setting/security" - auth_service "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/lfs" + "forgejo.org/models/perm" + quota_model "forgejo.org/models/quota" + "forgejo.org/models/unit" + "forgejo.org/modules/log" + "forgejo.org/modules/metrics" + "forgejo.org/modules/public" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/structs" + "forgejo.org/modules/templates" + "forgejo.org/modules/validation" + "forgejo.org/modules/web" + "forgejo.org/modules/web/middleware" + "forgejo.org/modules/web/routing" + "forgejo.org/routers/common" + "forgejo.org/routers/web/admin" + "forgejo.org/routers/web/auth" + "forgejo.org/routers/web/devtest" + "forgejo.org/routers/web/events" + "forgejo.org/routers/web/explore" + "forgejo.org/routers/web/feed" + "forgejo.org/routers/web/healthcheck" + "forgejo.org/routers/web/misc" + "forgejo.org/routers/web/org" + org_setting "forgejo.org/routers/web/org/setting" + "forgejo.org/routers/web/repo" + "forgejo.org/routers/web/repo/actions" + "forgejo.org/routers/web/repo/badges" + repo_flags "forgejo.org/routers/web/repo/flags" + repo_setting "forgejo.org/routers/web/repo/setting" + "forgejo.org/routers/web/shared/project" + "forgejo.org/routers/web/user" + user_setting "forgejo.org/routers/web/user/setting" + "forgejo.org/routers/web/user/setting/security" + auth_service "forgejo.org/services/auth" + "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/lfs" - _ "code.gitea.io/gitea/modules/session" // to registers all internal adapters + _ "forgejo.org/modules/session" // to registers all internal adapters "code.forgejo.org/go-chi/captcha" chi_middleware "github.com/go-chi/chi/v5/middleware" diff --git a/routers/web/webfinger.go b/routers/web/webfinger.go index 1f3de70db0..be3c2925fe 100644 --- a/routers/web/webfinger.go +++ b/routers/web/webfinger.go @@ -9,10 +9,10 @@ import ( "net/url" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) // https://datatracker.ietf.org/doc/html/draft-ietf-appsawg-webfinger-14#section-4.4 diff --git a/services/actions/auth.go b/services/actions/auth.go index 1ef21f6e0e..4dc86a35f3 100644 --- a/services/actions/auth.go +++ b/services/actions/auth.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/golang-jwt/jwt/v5" ) diff --git a/services/actions/auth_test.go b/services/actions/auth_test.go index 1400e61f47..93a5980bc5 100644 --- a/services/actions/auth_test.go +++ b/services/actions/auth_test.go @@ -7,8 +7,8 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" "github.com/golang-jwt/jwt/v5" "github.com/stretchr/testify/assert" diff --git a/services/actions/cleanup.go b/services/actions/cleanup.go index 34fa2688e7..fde5286e60 100644 --- a/services/actions/cleanup.go +++ b/services/actions/cleanup.go @@ -10,12 +10,12 @@ import ( "os" "time" - actions_model "code.gitea.io/gitea/models/actions" - actions_module "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/timeutil" + actions_model "forgejo.org/models/actions" + actions_module "forgejo.org/modules/actions" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/timeutil" ) // Cleanup removes expired actions logs, data and artifacts diff --git a/services/actions/cleanup_test.go b/services/actions/cleanup_test.go index 65fae840c1..67f68d4de9 100644 --- a/services/actions/cleanup_test.go +++ b/services/actions/cleanup_test.go @@ -6,10 +6,10 @@ package actions import ( "testing" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/timeutil" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/actions/clear_tasks.go b/services/actions/clear_tasks.go index f146c22372..31e15ec927 100644 --- a/services/actions/clear_tasks.go +++ b/services/actions/clear_tasks.go @@ -8,12 +8,12 @@ import ( "fmt" "time" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/modules/actions" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" ) // StopZombieTasks stops the task which have running status, but haven't been updated for a long time diff --git a/services/actions/commit_status.go b/services/actions/commit_status.go index 04dffbac88..1fffa6852f 100644 --- a/services/actions/commit_status.go +++ b/services/actions/commit_status.go @@ -8,15 +8,15 @@ import ( "fmt" "path" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - user_model "code.gitea.io/gitea/models/user" - actions_module "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - commitstatus_service "code.gitea.io/gitea/services/repository/commitstatus" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + user_model "forgejo.org/models/user" + actions_module "forgejo.org/modules/actions" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + commitstatus_service "forgejo.org/services/repository/commitstatus" "github.com/nektos/act/pkg/jobparser" ) diff --git a/services/actions/context.go b/services/actions/context.go index be1c85522b..bf187c56bf 100644 --- a/services/actions/context.go +++ b/services/actions/context.go @@ -7,13 +7,13 @@ import ( "context" "fmt" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - actions_module "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + actions_module "forgejo.org/modules/actions" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" ) // GenerateGiteaContext generate the gitea context without token and gitea_runtime_token diff --git a/services/actions/context_test.go b/services/actions/context_test.go index 4cd8825870..c96094ade8 100644 --- a/services/actions/context_test.go +++ b/services/actions/context_test.go @@ -6,8 +6,8 @@ package actions import ( "testing" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/unittest" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/actions/init.go b/services/actions/init.go index 0f49cb6297..8f1db64e27 100644 --- a/services/actions/init.go +++ b/services/actions/init.go @@ -4,11 +4,11 @@ package actions import ( - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" + notify_service "forgejo.org/services/notify" ) func Init() { diff --git a/services/actions/interface.go b/services/actions/interface.go index 76bee6f153..54a30061bc 100644 --- a/services/actions/interface.go +++ b/services/actions/interface.go @@ -3,7 +3,7 @@ package actions -import "code.gitea.io/gitea/services/context" +import "forgejo.org/services/context" // API for actions of a repository or organization type API interface { diff --git a/services/actions/job_emitter.go b/services/actions/job_emitter.go index 1f859fcf70..d4ca029d46 100644 --- a/services/actions/job_emitter.go +++ b/services/actions/job_emitter.go @@ -8,10 +8,10 @@ import ( "errors" "fmt" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/queue" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/modules/graceful" + "forgejo.org/modules/queue" "github.com/nektos/act/pkg/jobparser" "xorm.io/builder" diff --git a/services/actions/job_emitter_test.go b/services/actions/job_emitter_test.go index 58c2dc3b24..a3e0e95d04 100644 --- a/services/actions/job_emitter_test.go +++ b/services/actions/job_emitter_test.go @@ -6,7 +6,7 @@ package actions import ( "testing" - actions_model "code.gitea.io/gitea/models/actions" + actions_model "forgejo.org/models/actions" "github.com/stretchr/testify/assert" ) diff --git a/services/actions/main_test.go b/services/actions/main_test.go index 49629ecb03..71ec1d3426 100644 --- a/services/actions/main_test.go +++ b/services/actions/main_test.go @@ -6,11 +6,11 @@ package actions import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/services/actions/notifier.go b/services/actions/notifier.go index 2dd81158a7..2d3a1d2107 100644 --- a/services/actions/notifier.go +++ b/services/actions/notifier.go @@ -6,20 +6,20 @@ package actions import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - packages_model "code.gitea.io/gitea/models/packages" - perm_model "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/convert" - notify_service "code.gitea.io/gitea/services/notify" + issues_model "forgejo.org/models/issues" + packages_model "forgejo.org/models/packages" + perm_model "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/convert" + notify_service "forgejo.org/services/notify" ) type actionsNotifier struct { diff --git a/services/actions/notifier_helper.go b/services/actions/notifier_helper.go index 0a1dbb162d..9de0b75ac7 100644 --- a/services/actions/notifier_helper.go +++ b/services/actions/notifier_helper.go @@ -11,24 +11,24 @@ import ( "slices" "strings" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - packages_model "code.gitea.io/gitea/models/packages" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - actions_module "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/convert" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + packages_model "forgejo.org/models/packages" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + actions_module "forgejo.org/modules/actions" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/convert" "github.com/nektos/act/pkg/jobparser" "github.com/nektos/act/pkg/model" diff --git a/services/actions/notifier_helper_test.go b/services/actions/notifier_helper_test.go index 0fa40c0168..9166dc3b95 100644 --- a/services/actions/notifier_helper_test.go +++ b/services/actions/notifier_helper_test.go @@ -6,10 +6,10 @@ package actions import ( "testing" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - webhook_module "code.gitea.io/gitea/modules/webhook" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/actions/rerun.go b/services/actions/rerun.go index 60f6650905..f6dd4af5c7 100644 --- a/services/actions/rerun.go +++ b/services/actions/rerun.go @@ -4,8 +4,8 @@ package actions import ( - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/modules/container" + actions_model "forgejo.org/models/actions" + "forgejo.org/modules/container" ) // GetAllRerunJobs get all jobs that need to be rerun when job should be rerun diff --git a/services/actions/rerun_test.go b/services/actions/rerun_test.go index a98de7b788..4b822e8da1 100644 --- a/services/actions/rerun_test.go +++ b/services/actions/rerun_test.go @@ -6,7 +6,7 @@ package actions import ( "testing" - actions_model "code.gitea.io/gitea/models/actions" + actions_model "forgejo.org/models/actions" "github.com/stretchr/testify/assert" ) diff --git a/services/actions/schedule_tasks.go b/services/actions/schedule_tasks.go index 18f3324fd2..f66a6ca092 100644 --- a/services/actions/schedule_tasks.go +++ b/services/actions/schedule_tasks.go @@ -8,13 +8,13 @@ import ( "fmt" "time" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" - webhook_module "code.gitea.io/gitea/modules/webhook" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" + webhook_module "forgejo.org/modules/webhook" "github.com/nektos/act/pkg/jobparser" ) diff --git a/services/actions/task.go b/services/actions/task.go index bc54ade347..43c8deaa5f 100644 --- a/services/actions/task.go +++ b/services/actions/task.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - secret_model "code.gitea.io/gitea/models/secret" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + secret_model "forgejo.org/models/secret" runnerv1 "code.gitea.io/actions-proto-go/runner/v1" "google.golang.org/protobuf/types/known/structpb" diff --git a/services/actions/variables.go b/services/actions/variables.go index a5703898ab..fed1fd0890 100644 --- a/services/actions/variables.go +++ b/services/actions/variables.go @@ -8,10 +8,10 @@ import ( "regexp" "strings" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" - secret_service "code.gitea.io/gitea/services/secrets" + actions_model "forgejo.org/models/actions" + "forgejo.org/modules/log" + "forgejo.org/modules/util" + secret_service "forgejo.org/services/secrets" ) func CreateVariable(ctx context.Context, ownerID, repoID int64, name, data string) (*actions_model.ActionVariable, error) { diff --git a/services/actions/workflows.go b/services/actions/workflows.go index e3e342264d..7ec7c3abed 100644 --- a/services/actions/workflows.go +++ b/services/actions/workflows.go @@ -10,19 +10,19 @@ import ( "fmt" "strconv" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/convert" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/perm" + "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/user" + "forgejo.org/modules/actions" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/modules/webhook" + "forgejo.org/services/convert" "github.com/nektos/act/pkg/jobparser" act_model "github.com/nektos/act/pkg/model" diff --git a/services/agit/agit.go b/services/agit/agit.go index a18f9ef728..20e87642c3 100644 --- a/services/agit/agit.go +++ b/services/agit/agit.go @@ -9,15 +9,15 @@ import ( "os" "strings" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/git/pushoptions" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/private" - notify_service "code.gitea.io/gitea/services/notify" - pull_service "code.gitea.io/gitea/services/pull" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/git/pushoptions" + "forgejo.org/modules/log" + "forgejo.org/modules/private" + notify_service "forgejo.org/services/notify" + pull_service "forgejo.org/services/pull" ) // ProcReceive handle proc receive work diff --git a/services/asymkey/deploy_key.go b/services/asymkey/deploy_key.go index e127cbfc6e..4a2cb53eec 100644 --- a/services/asymkey/deploy_key.go +++ b/services/asymkey/deploy_key.go @@ -6,10 +6,10 @@ package asymkey import ( "context" - "code.gitea.io/gitea/models" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" ) // DeleteDeployKey deletes deploy key from its repository authorized_keys file if needed. diff --git a/services/asymkey/main_test.go b/services/asymkey/main_test.go index 060cc78cec..8ba76668b1 100644 --- a/services/asymkey/main_test.go +++ b/services/asymkey/main_test.go @@ -6,11 +6,11 @@ package asymkey import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/services/asymkey/sign.go b/services/asymkey/sign.go index 8fb569939c..0030523b22 100644 --- a/services/asymkey/sign.go +++ b/services/asymkey/sign.go @@ -8,18 +8,18 @@ import ( "fmt" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/auth" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" ) type signingMode string diff --git a/services/asymkey/ssh_key.go b/services/asymkey/ssh_key.go index 83d7edafa3..f20445891d 100644 --- a/services/asymkey/ssh_key.go +++ b/services/asymkey/ssh_key.go @@ -6,9 +6,9 @@ package asymkey import ( "context" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" ) // DeletePublicKey deletes SSH key information both in database and authorized_keys file. diff --git a/services/asymkey/ssh_key_test.go b/services/asymkey/ssh_key_test.go index d667a02557..24b28d295e 100644 --- a/services/asymkey/ssh_key_test.go +++ b/services/asymkey/ssh_key_test.go @@ -6,11 +6,11 @@ package asymkey import ( "testing" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/attachment/attachment.go b/services/attachment/attachment.go index c911945e5d..365bd7faf6 100644 --- a/services/attachment/attachment.go +++ b/services/attachment/attachment.go @@ -9,12 +9,12 @@ import ( "fmt" "io" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/services/context/upload" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" + "forgejo.org/services/context/upload" "github.com/google/uuid" ) diff --git a/services/attachment/attachment_test.go b/services/attachment/attachment_test.go index c24b3f8006..70b1e80d6a 100644 --- a/services/attachment/attachment_test.go +++ b/services/attachment/attachment_test.go @@ -8,13 +8,13 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/auth/auth.go b/services/auth/auth.go index c10872313f..85c9296ced 100644 --- a/services/auth/auth.go +++ b/services/auth/auth.go @@ -10,15 +10,15 @@ import ( "regexp" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/webauthn" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/session" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web/middleware" - gitea_context "code.gitea.io/gitea/services/context" - user_service "code.gitea.io/gitea/services/user" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/webauthn" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/session" + "forgejo.org/modules/setting" + "forgejo.org/modules/web/middleware" + gitea_context "forgejo.org/services/context" + user_service "forgejo.org/services/user" ) // Init should be called exactly once when the application starts to allow plugins diff --git a/services/auth/auth_test.go b/services/auth/auth_test.go index 3adaa28664..a6c6c74022 100644 --- a/services/auth/auth_test.go +++ b/services/auth/auth_test.go @@ -8,7 +8,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) func Test_isGitRawOrLFSPath(t *testing.T) { diff --git a/services/auth/basic.go b/services/auth/basic.go index d489164954..f259ad5f69 100644 --- a/services/auth/basic.go +++ b/services/auth/basic.go @@ -9,15 +9,15 @@ import ( "net/http" "strings" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web/middleware" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/modules/web/middleware" ) // Ensure the struct implements the interface. diff --git a/services/auth/group.go b/services/auth/group.go index aecf43cb24..b713301b50 100644 --- a/services/auth/group.go +++ b/services/auth/group.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - user_model "code.gitea.io/gitea/models/user" + user_model "forgejo.org/models/user" ) // Ensure the struct implements the interface. diff --git a/services/auth/httpsign.go b/services/auth/httpsign.go index 83a36bef23..d3cbb8aa60 100644 --- a/services/auth/httpsign.go +++ b/services/auth/httpsign.go @@ -11,11 +11,11 @@ import ( "net/http" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/42wim/httpsig" "golang.org/x/crypto/ssh" diff --git a/services/auth/interface.go b/services/auth/interface.go index ece28af12d..12b04a7abf 100644 --- a/services/auth/interface.go +++ b/services/auth/interface.go @@ -7,9 +7,9 @@ import ( "context" "net/http" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/session" - "code.gitea.io/gitea/modules/web/middleware" + user_model "forgejo.org/models/user" + "forgejo.org/modules/session" + "forgejo.org/modules/web/middleware" ) // DataStore represents a data store diff --git a/services/auth/main_test.go b/services/auth/main_test.go index b81c39a1f2..0e6315b06e 100644 --- a/services/auth/main_test.go +++ b/services/auth/main_test.go @@ -6,7 +6,7 @@ package auth import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/services/auth/oauth2.go b/services/auth/oauth2.go index b983e57ecd..e6d556d10b 100644 --- a/services/auth/oauth2.go +++ b/services/auth/oauth2.go @@ -11,15 +11,15 @@ import ( "strings" "time" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/auth/source/oauth2" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/actions" + "forgejo.org/services/auth/source/oauth2" ) // Ensure the struct implements the interface. diff --git a/services/auth/oauth2_test.go b/services/auth/oauth2_test.go index 90e2fe4517..d6455b33ad 100644 --- a/services/auth/oauth2_test.go +++ b/services/auth/oauth2_test.go @@ -6,10 +6,10 @@ package auth import ( "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/actions" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/actions" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/auth/reverseproxy.go b/services/auth/reverseproxy.go index 8a5a5dc992..eb9ceb8cf2 100644 --- a/services/auth/reverseproxy.go +++ b/services/auth/reverseproxy.go @@ -8,11 +8,11 @@ import ( "net/http" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web/middleware" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/web/middleware" gouuid "github.com/google/uuid" ) diff --git a/services/auth/reverseproxy_test.go b/services/auth/reverseproxy_test.go index 7f1b2a7782..70ce1f8b0b 100644 --- a/services/auth/reverseproxy_test.go +++ b/services/auth/reverseproxy_test.go @@ -7,11 +7,11 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/require" ) diff --git a/services/auth/session.go b/services/auth/session.go index 35d97e42da..a15c24c940 100644 --- a/services/auth/session.go +++ b/services/auth/session.go @@ -6,8 +6,8 @@ package auth import ( "net/http" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" ) // Ensure the struct implements the interface. diff --git a/services/auth/signin.go b/services/auth/signin.go index 7c69da8f94..495b3d387e 100644 --- a/services/auth/signin.go +++ b/services/auth/signin.go @@ -7,17 +7,17 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/services/auth/source/oauth2" - "code.gitea.io/gitea/services/auth/source/smtp" + "forgejo.org/models/auth" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/services/auth/source/oauth2" + "forgejo.org/services/auth/source/smtp" - _ "code.gitea.io/gitea/services/auth/source/db" // register the sources (and below) - _ "code.gitea.io/gitea/services/auth/source/ldap" // register the ldap source - _ "code.gitea.io/gitea/services/auth/source/pam" // register the pam source + _ "forgejo.org/services/auth/source/db" // register the sources (and below) + _ "forgejo.org/services/auth/source/ldap" // register the ldap source + _ "forgejo.org/services/auth/source/pam" // register the pam source ) // UserSignIn validates user name and password. diff --git a/services/auth/source.go b/services/auth/source.go index 69b71a6dea..b13554efde 100644 --- a/services/auth/source.go +++ b/services/auth/source.go @@ -6,9 +6,9 @@ package auth import ( "context" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/auth" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" ) // DeleteSource deletes a AuthSource record in DB. diff --git a/services/auth/source/db/assert_interface_test.go b/services/auth/source/db/assert_interface_test.go index 62387c78f0..1422e9693c 100644 --- a/services/auth/source/db/assert_interface_test.go +++ b/services/auth/source/db/assert_interface_test.go @@ -4,9 +4,9 @@ package db_test import ( - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/db" + auth_model "forgejo.org/models/auth" + "forgejo.org/services/auth" + "forgejo.org/services/auth/source/db" ) // This test file exists to assert that our Source exposes the interfaces that we expect diff --git a/services/auth/source/db/authenticate.go b/services/auth/source/db/authenticate.go index 8160141863..7c18540a10 100644 --- a/services/auth/source/db/authenticate.go +++ b/services/auth/source/db/authenticate.go @@ -7,9 +7,9 @@ import ( "context" "fmt" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) // ErrUserPasswordNotSet represents a "ErrUserPasswordNotSet" kind of error. diff --git a/services/auth/source/db/source.go b/services/auth/source/db/source.go index bb2270cbd6..d158718bb2 100644 --- a/services/auth/source/db/source.go +++ b/services/auth/source/db/source.go @@ -6,8 +6,8 @@ package db import ( "context" - "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/auth" + user_model "forgejo.org/models/user" ) // Source is a password authentication service diff --git a/services/auth/source/ldap/assert_interface_test.go b/services/auth/source/ldap/assert_interface_test.go index 33347687dc..859143a3f8 100644 --- a/services/auth/source/ldap/assert_interface_test.go +++ b/services/auth/source/ldap/assert_interface_test.go @@ -4,9 +4,9 @@ package ldap_test import ( - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/ldap" + auth_model "forgejo.org/models/auth" + "forgejo.org/services/auth" + "forgejo.org/services/auth/source/ldap" ) // This test file exists to assert that our Source exposes the interfaces that we expect diff --git a/services/auth/source/ldap/source.go b/services/auth/source/ldap/source.go index ba407b351a..a094c1410c 100644 --- a/services/auth/source/ldap/source.go +++ b/services/auth/source/ldap/source.go @@ -6,10 +6,10 @@ package ldap import ( "strings" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/secret" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/auth" + "forgejo.org/modules/json" + "forgejo.org/modules/secret" + "forgejo.org/modules/setting" ) // .____ ________ _____ __________ diff --git a/services/auth/source/ldap/source_authenticate.go b/services/auth/source/ldap/source_authenticate.go index 68ecd16342..a2ff10cd07 100644 --- a/services/auth/source/ldap/source_authenticate.go +++ b/services/auth/source/ldap/source_authenticate.go @@ -8,13 +8,13 @@ import ( "fmt" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - auth_module "code.gitea.io/gitea/modules/auth" - "code.gitea.io/gitea/modules/optional" - source_service "code.gitea.io/gitea/services/auth/source" - user_service "code.gitea.io/gitea/services/user" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + auth_module "forgejo.org/modules/auth" + "forgejo.org/modules/optional" + source_service "forgejo.org/services/auth/source" + user_service "forgejo.org/services/user" ) // Authenticate queries if login/password is valid against the LDAP directory pool, diff --git a/services/auth/source/ldap/source_search.go b/services/auth/source/ldap/source_search.go index 2a61386ae1..da7e225428 100644 --- a/services/auth/source/ldap/source_search.go +++ b/services/auth/source/ldap/source_search.go @@ -11,8 +11,8 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/container" + "forgejo.org/modules/log" "github.com/go-ldap/ldap/v3" ) diff --git a/services/auth/source/ldap/source_sync.go b/services/auth/source/ldap/source_sync.go index 1f70edaa82..cb6172ed1d 100644 --- a/services/auth/source/ldap/source_sync.go +++ b/services/auth/source/ldap/source_sync.go @@ -8,16 +8,16 @@ import ( "fmt" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - auth_module "code.gitea.io/gitea/modules/auth" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - source_service "code.gitea.io/gitea/services/auth/source" - user_service "code.gitea.io/gitea/services/user" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + auth_module "forgejo.org/modules/auth" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + source_service "forgejo.org/services/auth/source" + user_service "forgejo.org/services/user" ) // Sync causes this ldap source to synchronize its users with the db diff --git a/services/auth/source/oauth2/assert_interface_test.go b/services/auth/source/oauth2/assert_interface_test.go index 56fe0e4aa8..12fce257cf 100644 --- a/services/auth/source/oauth2/assert_interface_test.go +++ b/services/auth/source/oauth2/assert_interface_test.go @@ -4,9 +4,9 @@ package oauth2_test import ( - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/oauth2" + auth_model "forgejo.org/models/auth" + "forgejo.org/services/auth" + "forgejo.org/services/auth/source/oauth2" ) // This test file exists to assert that our Source exposes the interfaces that we expect diff --git a/services/auth/source/oauth2/init.go b/services/auth/source/oauth2/init.go index 5c25681548..6c78a14da4 100644 --- a/services/auth/source/oauth2/init.go +++ b/services/auth/source/oauth2/init.go @@ -9,11 +9,11 @@ import ( "net/http" "sync" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" "github.com/google/uuid" "github.com/gorilla/sessions" diff --git a/services/auth/source/oauth2/jwtsigningkey.go b/services/auth/source/oauth2/jwtsigningkey.go index 92adfc4d84..550945a812 100644 --- a/services/auth/source/oauth2/jwtsigningkey.go +++ b/services/auth/source/oauth2/jwtsigningkey.go @@ -18,9 +18,9 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/golang-jwt/jwt/v5" ) diff --git a/services/auth/source/oauth2/jwtsigningkey_test.go b/services/auth/source/oauth2/jwtsigningkey_test.go index 4db538b0e8..7cf2833696 100644 --- a/services/auth/source/oauth2/jwtsigningkey_test.go +++ b/services/auth/source/oauth2/jwtsigningkey_test.go @@ -13,8 +13,8 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/auth/source/oauth2/providers.go b/services/auth/source/oauth2/providers.go index f2c1bb4894..773ce19c12 100644 --- a/services/auth/source/oauth2/providers.go +++ b/services/auth/source/oauth2/providers.go @@ -12,11 +12,11 @@ import ( "net/url" "sort" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" "github.com/markbates/goth" ) diff --git a/services/auth/source/oauth2/providers_base.go b/services/auth/source/oauth2/providers_base.go index 63318b84ef..1ef8d0af72 100644 --- a/services/auth/source/oauth2/providers_base.go +++ b/services/auth/source/oauth2/providers_base.go @@ -6,8 +6,8 @@ package oauth2 import ( "html/template" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/svg" + "forgejo.org/modules/log" + "forgejo.org/modules/svg" ) // BaseProvider represents a common base for Provider diff --git a/services/auth/source/oauth2/providers_custom.go b/services/auth/source/oauth2/providers_custom.go index 65cf538ad7..51a412e0be 100644 --- a/services/auth/source/oauth2/providers_custom.go +++ b/services/auth/source/oauth2/providers_custom.go @@ -4,7 +4,7 @@ package oauth2 import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/markbates/goth" "github.com/markbates/goth/providers/azureadv2" diff --git a/services/auth/source/oauth2/providers_openid.go b/services/auth/source/oauth2/providers_openid.go index f606581271..7950506ab7 100644 --- a/services/auth/source/oauth2/providers_openid.go +++ b/services/auth/source/oauth2/providers_openid.go @@ -6,9 +6,9 @@ package oauth2 import ( "html/template" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/svg" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/svg" "github.com/markbates/goth" "github.com/markbates/goth/providers/openidConnect" diff --git a/services/auth/source/oauth2/providers_simple.go b/services/auth/source/oauth2/providers_simple.go index e95323a62a..8e2c0a7700 100644 --- a/services/auth/source/oauth2/providers_simple.go +++ b/services/auth/source/oauth2/providers_simple.go @@ -4,7 +4,7 @@ package oauth2 import ( - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/markbates/goth" "github.com/markbates/goth/providers/azuread" diff --git a/services/auth/source/oauth2/source.go b/services/auth/source/oauth2/source.go index 3f8616c6ff..5245f88270 100644 --- a/services/auth/source/oauth2/source.go +++ b/services/auth/source/oauth2/source.go @@ -6,8 +6,8 @@ package oauth2 import ( "strings" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/json" + "forgejo.org/models/auth" + "forgejo.org/modules/json" ) // Source holds configuration for the OAuth2 login source. diff --git a/services/auth/source/oauth2/source_authenticate.go b/services/auth/source/oauth2/source_authenticate.go index bbda35dee0..1efd7be02a 100644 --- a/services/auth/source/oauth2/source_authenticate.go +++ b/services/auth/source/oauth2/source_authenticate.go @@ -6,8 +6,8 @@ package oauth2 import ( "context" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/services/auth/source/db" + user_model "forgejo.org/models/user" + "forgejo.org/services/auth/source/db" ) // Authenticate falls back to the db authenticator diff --git a/services/auth/source/oauth2/store.go b/services/auth/source/oauth2/store.go index e031653119..d52581ea2d 100644 --- a/services/auth/source/oauth2/store.go +++ b/services/auth/source/oauth2/store.go @@ -8,8 +8,8 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/modules/log" - session_module "code.gitea.io/gitea/modules/session" + "forgejo.org/modules/log" + session_module "forgejo.org/modules/session" chiSession "code.forgejo.org/go-chi/session" "github.com/gorilla/sessions" diff --git a/services/auth/source/oauth2/token.go b/services/auth/source/oauth2/token.go index 3405619d3f..fba1fd8a01 100644 --- a/services/auth/source/oauth2/token.go +++ b/services/auth/source/oauth2/token.go @@ -7,7 +7,7 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/modules/timeutil" "github.com/golang-jwt/jwt/v5" ) diff --git a/services/auth/source/pam/assert_interface_test.go b/services/auth/source/pam/assert_interface_test.go index 8e7648b8d3..8c54b7e9e2 100644 --- a/services/auth/source/pam/assert_interface_test.go +++ b/services/auth/source/pam/assert_interface_test.go @@ -4,9 +4,9 @@ package pam_test import ( - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/pam" + auth_model "forgejo.org/models/auth" + "forgejo.org/services/auth" + "forgejo.org/services/auth/source/pam" ) // This test file exists to assert that our Source exposes the interfaces that we expect diff --git a/services/auth/source/pam/source.go b/services/auth/source/pam/source.go index 96b182e185..e1dc83ba43 100644 --- a/services/auth/source/pam/source.go +++ b/services/auth/source/pam/source.go @@ -4,8 +4,8 @@ package pam import ( - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/json" + "forgejo.org/models/auth" + "forgejo.org/modules/json" ) // __________ _____ _____ diff --git a/services/auth/source/pam/source_authenticate.go b/services/auth/source/pam/source_authenticate.go index 0df0b2bca1..6f3ffc2d9d 100644 --- a/services/auth/source/pam/source_authenticate.go +++ b/services/auth/source/pam/source_authenticate.go @@ -8,12 +8,12 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/auth/pam" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/auth/pam" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/validation" "github.com/google/uuid" ) diff --git a/services/auth/source/remote/source.go b/services/auth/source/remote/source.go index 4165858a56..effbabc7d0 100644 --- a/services/auth/source/remote/source.go +++ b/services/auth/source/remote/source.go @@ -4,8 +4,8 @@ package remote import ( - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/json" + "forgejo.org/models/auth" + "forgejo.org/modules/json" ) type Source struct { diff --git a/services/auth/source/smtp/assert_interface_test.go b/services/auth/source/smtp/assert_interface_test.go index 6c9cde66e1..6826dae873 100644 --- a/services/auth/source/smtp/assert_interface_test.go +++ b/services/auth/source/smtp/assert_interface_test.go @@ -4,9 +4,9 @@ package smtp_test import ( - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/smtp" + auth_model "forgejo.org/models/auth" + "forgejo.org/services/auth" + "forgejo.org/services/auth/source/smtp" ) // This test file exists to assert that our Source exposes the interfaces that we expect diff --git a/services/auth/source/smtp/source.go b/services/auth/source/smtp/source.go index 2a648e421e..d44971bab0 100644 --- a/services/auth/source/smtp/source.go +++ b/services/auth/source/smtp/source.go @@ -4,8 +4,8 @@ package smtp import ( - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/json" + "forgejo.org/models/auth" + "forgejo.org/modules/json" ) // _________ __________________________ diff --git a/services/auth/source/smtp/source_authenticate.go b/services/auth/source/smtp/source_authenticate.go index 1f0a61c789..3d7ccd0669 100644 --- a/services/auth/source/smtp/source_authenticate.go +++ b/services/auth/source/smtp/source_authenticate.go @@ -10,10 +10,10 @@ import ( "net/textproto" "strings" - auth_model "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/util" + auth_model "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/util" ) // Authenticate queries if the provided login/password is authenticates against the SMTP server diff --git a/services/auth/source/source_group_sync.go b/services/auth/source/source_group_sync.go index 3a2411ec55..46be6937fb 100644 --- a/services/auth/source/source_group_sync.go +++ b/services/auth/source/source_group_sync.go @@ -7,11 +7,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models" + "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/log" ) type syncType int diff --git a/services/auth/sync.go b/services/auth/sync.go index 7562ac812b..c594be7a24 100644 --- a/services/auth/sync.go +++ b/services/auth/sync.go @@ -6,9 +6,9 @@ package auth import ( "context" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/modules/log" ) // SyncExternalUsers is used to synchronize users with external authorization source diff --git a/services/automerge/automerge.go b/services/automerge/automerge.go index d3cc4c6fb1..51a14edd9a 100644 --- a/services/automerge/automerge.go +++ b/services/automerge/automerge.go @@ -8,22 +8,22 @@ import ( "errors" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - pull_model "code.gitea.io/gitea/models/pull" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/queue" - notify_service "code.gitea.io/gitea/services/notify" - pull_service "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" - shared_automerge "code.gitea.io/gitea/services/shared/automerge" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + pull_model "forgejo.org/models/pull" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/queue" + notify_service "forgejo.org/services/notify" + pull_service "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" + shared_automerge "forgejo.org/services/shared/automerge" ) // Init runs the task queue to that handles auto merges diff --git a/services/automerge/notify.go b/services/automerge/notify.go index cb078214f6..3b5eae9d48 100644 --- a/services/automerge/notify.go +++ b/services/automerge/notify.go @@ -6,10 +6,10 @@ package automerge import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - notify_service "code.gitea.io/gitea/services/notify" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + notify_service "forgejo.org/services/notify" ) type automergeNotifier struct { diff --git a/services/context/access_log.go b/services/context/access_log.go index 0926748ac5..7a54b746f6 100644 --- a/services/context/access_log.go +++ b/services/context/access_log.go @@ -12,10 +12,10 @@ import ( "text/template" "time" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web/middleware" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web/middleware" ) type routerLoggerOptions struct { diff --git a/services/context/api.go b/services/context/api.go index 871a2f012d..37f0e0f559 100644 --- a/services/context/api.go +++ b/services/context/api.go @@ -11,18 +11,18 @@ import ( "net/url" "strings" - issues_model "code.gitea.io/gitea/models/issues" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - mc "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/web" - web_types "code.gitea.io/gitea/modules/web/types" + issues_model "forgejo.org/models/issues" + quota_model "forgejo.org/models/quota" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + mc "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/web" + web_types "forgejo.org/modules/web/types" "code.forgejo.org/go-chi/cache" ) diff --git a/services/context/api_org.go b/services/context/api_org.go index dad02b1719..acc9594e48 100644 --- a/services/context/api_org.go +++ b/services/context/api_org.go @@ -3,7 +3,7 @@ package context -import "code.gitea.io/gitea/models/organization" +import "forgejo.org/models/organization" // APIOrganization contains organization and team type APIOrganization struct { diff --git a/services/context/api_test.go b/services/context/api_test.go index 6064fee1c3..90e4d5ec65 100644 --- a/services/context/api_test.go +++ b/services/context/api_test.go @@ -8,7 +8,7 @@ import ( "strconv" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/context/base.go b/services/context/base.go index 0259e0d806..0275ea8a99 100644 --- a/services/context/base.go +++ b/services/context/base.go @@ -14,12 +14,12 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/httplib" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/web/middleware" + "forgejo.org/modules/httplib" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/translation" + "forgejo.org/modules/web/middleware" "github.com/go-chi/chi/v5" ) diff --git a/services/context/base_test.go b/services/context/base_test.go index 823f20e00b..868ac00f8b 100644 --- a/services/context/base_test.go +++ b/services/context/base_test.go @@ -8,7 +8,7 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/services/context/captcha.go b/services/context/captcha.go index 58c9205d54..e2ecc3e88f 100644 --- a/services/context/captcha.go +++ b/services/context/captcha.go @@ -8,14 +8,14 @@ import ( "math/rand" "sync" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/hcaptcha" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/mcaptcha" - "code.gitea.io/gitea/modules/recaptcha" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/turnstile" + "forgejo.org/modules/base" + "forgejo.org/modules/cache" + "forgejo.org/modules/hcaptcha" + "forgejo.org/modules/log" + "forgejo.org/modules/mcaptcha" + "forgejo.org/modules/recaptcha" + "forgejo.org/modules/setting" + "forgejo.org/modules/turnstile" mc "code.forgejo.org/go-chi/cache" "code.forgejo.org/go-chi/captcha" diff --git a/services/context/context.go b/services/context/context.go index 91e7b1849d..91484c5ba3 100644 --- a/services/context/context.go +++ b/services/context/context.go @@ -15,17 +15,17 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - mc "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/httpcache" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/modules/web/middleware" - web_types "code.gitea.io/gitea/modules/web/types" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + mc "forgejo.org/modules/cache" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/httpcache" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/translation" + "forgejo.org/modules/web" + "forgejo.org/modules/web/middleware" + web_types "forgejo.org/modules/web/types" "code.forgejo.org/go-chi/cache" "code.forgejo.org/go-chi/session" diff --git a/services/context/context_cookie.go b/services/context/context_cookie.go index 3699f81071..08ef84b5eb 100644 --- a/services/context/context_cookie.go +++ b/services/context/context_cookie.go @@ -7,11 +7,11 @@ import ( "net/http" "strings" - auth_model "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/web/middleware" + auth_model "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/web/middleware" ) const CookieNameFlash = "gitea_flash" diff --git a/services/context/context_model.go b/services/context/context_model.go index 4f70aac516..1a8751ee63 100644 --- a/services/context/context_model.go +++ b/services/context/context_model.go @@ -4,7 +4,7 @@ package context import ( - "code.gitea.io/gitea/models/unit" + "forgejo.org/models/unit" ) // IsUserSiteAdmin returns true if current user is a site admin diff --git a/services/context/context_response.go b/services/context/context_response.go index f36b834a44..e20e7dd852 100644 --- a/services/context/context_response.go +++ b/services/context/context_response.go @@ -16,13 +16,13 @@ import ( "syscall" "time" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/httplib" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/web/middleware" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/httplib" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/web/middleware" ) // RedirectToUser redirect to a differently-named user diff --git a/services/context/context_test.go b/services/context/context_test.go index 033ce2ef0a..c2a271d2b7 100644 --- a/services/context/context_test.go +++ b/services/context/context_test.go @@ -8,7 +8,7 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/services/context/csrf.go b/services/context/csrf.go index 51127c6eb0..82dd9283ff 100644 --- a/services/context/csrf.go +++ b/services/context/csrf.go @@ -25,8 +25,8 @@ import ( "strconv" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) const ( diff --git a/services/context/org.go b/services/context/org.go index 9673f2f5a9..31ad60704f 100644 --- a/services/context/org.go +++ b/services/context/org.go @@ -7,14 +7,14 @@ package context import ( "strings" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" ) // Organization contains organization context diff --git a/services/context/package.go b/services/context/package.go index c452c657e7..e597249e2a 100644 --- a/services/context/package.go +++ b/services/context/package.go @@ -7,14 +7,14 @@ import ( "fmt" "net/http" - "code.gitea.io/gitea/models/organization" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/templates" + "forgejo.org/models/organization" + packages_model "forgejo.org/models/packages" + "forgejo.org/models/perm" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/templates" ) // Package contains owner, access mode and optional the package descriptor diff --git a/services/context/pagination.go b/services/context/pagination.go index 655a278f9f..b826e59dea 100644 --- a/services/context/pagination.go +++ b/services/context/pagination.go @@ -9,7 +9,7 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/paginator" + "forgejo.org/modules/paginator" ) // Pagination provides a pagination via paginator.Paginator and additional configurations for the link params used in rendering diff --git a/services/context/permission.go b/services/context/permission.go index 14a9801dcc..b6af87f912 100644 --- a/services/context/permission.go +++ b/services/context/permission.go @@ -6,10 +6,10 @@ package context import ( "net/http" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/log" ) // RequireRepoAdmin returns a middleware for requiring repository admin permission diff --git a/services/context/private.go b/services/context/private.go index 8b41949f60..3d7ed694f1 100644 --- a/services/context/private.go +++ b/services/context/private.go @@ -9,10 +9,10 @@ import ( "net/http" "time" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/web" - web_types "code.gitea.io/gitea/modules/web/types" + "forgejo.org/modules/graceful" + "forgejo.org/modules/process" + "forgejo.org/modules/web" + web_types "forgejo.org/modules/web/types" ) // PrivateContext represents a context for private routes diff --git a/services/context/quota.go b/services/context/quota.go index 94e8847696..f6e79e1ebe 100644 --- a/services/context/quota.go +++ b/services/context/quota.go @@ -8,8 +8,8 @@ import ( "net/http" "strings" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/modules/base" + quota_model "forgejo.org/models/quota" + "forgejo.org/modules/base" ) type QuotaTargetType int diff --git a/services/context/repo.go b/services/context/repo.go index ff03844c03..a1e1cadf6c 100644 --- a/services/context/repo.go +++ b/services/context/repo.go @@ -15,26 +15,26 @@ import ( "path" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - packages_model "code.gitea.io/gitea/models/packages" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/card" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - code_indexer "code.gitea.io/gitea/modules/indexer/code" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - asymkey_service "code.gitea.io/gitea/services/asymkey" + "forgejo.org/models" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + packages_model "forgejo.org/models/packages" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/card" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + code_indexer "forgejo.org/modules/indexer/code" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + asymkey_service "forgejo.org/services/asymkey" "github.com/editorconfig/editorconfig-core-go/v2" ) diff --git a/services/context/repository.go b/services/context/repository.go index 422ac3f58d..7eef2c5068 100644 --- a/services/context/repository.go +++ b/services/context/repository.go @@ -6,7 +6,7 @@ package context import ( "net/http" - repo_model "code.gitea.io/gitea/models/repo" + repo_model "forgejo.org/models/repo" ) // RepositoryIDAssignmentAPI returns a middleware to handle context-repo assignment for api routes diff --git a/services/context/response.go b/services/context/response.go index 2f271f211b..8fc631e671 100644 --- a/services/context/response.go +++ b/services/context/response.go @@ -6,7 +6,7 @@ package context import ( "net/http" - web_types "code.gitea.io/gitea/modules/web/types" + web_types "forgejo.org/modules/web/types" ) // ResponseWriter represents a response writer for HTTP diff --git a/services/context/upload/upload.go b/services/context/upload/upload.go index 77a7eb9377..2fa177e604 100644 --- a/services/context/upload/upload.go +++ b/services/context/upload/upload.go @@ -11,9 +11,9 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/context" ) // ErrFileTypeForbidden not allowed file type error diff --git a/services/context/user.go b/services/context/user.go index 4c9cd2928b..a82c90d7a6 100644 --- a/services/context/user.go +++ b/services/context/user.go @@ -8,7 +8,7 @@ import ( "net/http" "strings" - user_model "code.gitea.io/gitea/models/user" + user_model "forgejo.org/models/user" ) // UserAssignmentWeb returns a middleware to handle context-user assignment for web routes diff --git a/services/contexttest/context_tests.go b/services/contexttest/context_tests.go index 7c829f3598..ebab04f620 100644 --- a/services/contexttest/context_tests.go +++ b/services/contexttest/context_tests.go @@ -15,16 +15,16 @@ import ( "testing" "time" - org_model "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + org_model "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/templates" + "forgejo.org/modules/translation" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "github.com/go-chi/chi/v5" "github.com/stretchr/testify/assert" diff --git a/services/convert/activity.go b/services/convert/activity.go index 01fef73e58..213db13772 100644 --- a/services/convert/activity.go +++ b/services/convert/activity.go @@ -6,12 +6,12 @@ package convert import ( "context" - activities_model "code.gitea.io/gitea/models/activities" - perm_model "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" + activities_model "forgejo.org/models/activities" + perm_model "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" ) func ToActivity(ctx context.Context, ac *activities_model.Action, doer *user_model.User) *api.Activity { diff --git a/services/convert/attachment.go b/services/convert/attachment.go index d632c94c18..6617aac906 100644 --- a/services/convert/attachment.go +++ b/services/convert/attachment.go @@ -4,8 +4,8 @@ package convert import ( - repo_model "code.gitea.io/gitea/models/repo" - api "code.gitea.io/gitea/modules/structs" + repo_model "forgejo.org/models/repo" + api "forgejo.org/modules/structs" ) func WebAssetDownloadURL(repo *repo_model.Repository, attach *repo_model.Attachment) string { diff --git a/services/convert/convert.go b/services/convert/convert.go index 7a094494e4..2ea24a1b51 100644 --- a/services/convert/convert.go +++ b/services/convert/convert.go @@ -11,24 +11,24 @@ import ( "strings" "time" - actions_model "code.gitea.io/gitea/models/actions" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/auth" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/gitdiff" + actions_model "forgejo.org/models/actions" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/auth" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/services/gitdiff" ) // ToEmail convert models.EmailAddress to api.Email diff --git a/services/convert/git_commit.go b/services/convert/git_commit.go index e0efcddbcb..e041361737 100644 --- a/services/convert/git_commit.go +++ b/services/convert/git_commit.go @@ -8,14 +8,14 @@ import ( "net/url" "time" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - ctx "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/gitdiff" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + ctx "forgejo.org/services/context" + "forgejo.org/services/gitdiff" ) // ToCommitUser convert a git.Signature to an api.CommitUser diff --git a/services/convert/git_commit_test.go b/services/convert/git_commit_test.go index 68d1b05168..463b93aac3 100644 --- a/services/convert/git_commit_test.go +++ b/services/convert/git_commit_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/convert/issue.go b/services/convert/issue.go index f514dc4313..c7803794d0 100644 --- a/services/convert/issue.go +++ b/services/convert/issue.go @@ -9,13 +9,13 @@ import ( "net/url" "strings" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/label" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/label" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" ) func ToIssue(ctx context.Context, doer *user_model.User, issue *issues_model.Issue) *api.Issue { diff --git a/services/convert/issue_comment.go b/services/convert/issue_comment.go index 9ec9ac7684..9ea315aee6 100644 --- a/services/convert/issue_comment.go +++ b/services/convert/issue_comment.go @@ -6,12 +6,12 @@ package convert import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" ) // ToAPIComment converts a issues_model.Comment to the api.Comment format for API usage diff --git a/services/convert/issue_test.go b/services/convert/issue_test.go index 0aeb3e5612..97bacfb229 100644 --- a/services/convert/issue_test.go +++ b/services/convert/issue_test.go @@ -8,12 +8,12 @@ import ( "testing" "time" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/convert/main_test.go b/services/convert/main_test.go index b28b8f9446..5915d16be4 100644 --- a/services/convert/main_test.go +++ b/services/convert/main_test.go @@ -6,10 +6,10 @@ package convert import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/services/convert/mirror.go b/services/convert/mirror.go index 85e0d1c856..9e7d2659ab 100644 --- a/services/convert/mirror.go +++ b/services/convert/mirror.go @@ -6,8 +6,8 @@ package convert import ( "context" - repo_model "code.gitea.io/gitea/models/repo" - api "code.gitea.io/gitea/modules/structs" + repo_model "forgejo.org/models/repo" + api "forgejo.org/modules/structs" ) // ToPushMirror convert from repo_model.PushMirror and remoteAddress to api.TopicResponse diff --git a/services/convert/notification.go b/services/convert/notification.go index 41063cf399..3a4239e0fe 100644 --- a/services/convert/notification.go +++ b/services/convert/notification.go @@ -7,10 +7,10 @@ import ( "context" "net/url" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - api "code.gitea.io/gitea/modules/structs" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + api "forgejo.org/modules/structs" ) // ToNotificationThread convert a Notification to api.NotificationThread diff --git a/services/convert/package.go b/services/convert/package.go index b5fca21a3c..a28e60e1b1 100644 --- a/services/convert/package.go +++ b/services/convert/package.go @@ -6,10 +6,10 @@ package convert import ( "context" - "code.gitea.io/gitea/models/packages" - access_model "code.gitea.io/gitea/models/perm/access" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/packages" + access_model "forgejo.org/models/perm/access" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" ) // ToPackage convert a packages.PackageDescriptor to api.Package diff --git a/services/convert/pull.go b/services/convert/pull.go index 70dc22445a..0cb4070595 100644 --- a/services/convert/pull.go +++ b/services/convert/pull.go @@ -7,15 +7,15 @@ import ( "context" "fmt" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" ) // ToAPIPullRequest assumes following fields have been assigned with valid values: @@ -66,31 +66,33 @@ func ToAPIPullRequest(ctx context.Context, pr *issues_model.PullRequest, doer *u } apiPullRequest := &api.PullRequest{ - ID: pr.ID, - URL: pr.Issue.HTMLURL(), - Index: pr.Index, - Poster: apiIssue.Poster, - Title: apiIssue.Title, - Body: apiIssue.Body, - Labels: apiIssue.Labels, - Milestone: apiIssue.Milestone, - Assignee: apiIssue.Assignee, - Assignees: apiIssue.Assignees, - State: apiIssue.State, - Draft: pr.IsWorkInProgress(ctx), - IsLocked: apiIssue.IsLocked, - Comments: apiIssue.Comments, - ReviewComments: pr.GetReviewCommentsCount(ctx), - HTMLURL: pr.Issue.HTMLURL(), - DiffURL: pr.Issue.DiffURL(), - PatchURL: pr.Issue.PatchURL(), - HasMerged: pr.HasMerged, - MergeBase: pr.MergeBase, - Mergeable: pr.Mergeable(ctx), - Deadline: apiIssue.Deadline, - Created: pr.Issue.CreatedUnix.AsTimePtr(), - Updated: pr.Issue.UpdatedUnix.AsTimePtr(), - PinOrder: apiIssue.PinOrder, + ID: pr.ID, + URL: pr.Issue.HTMLURL(), + Index: pr.Index, + Poster: apiIssue.Poster, + Title: apiIssue.Title, + Body: apiIssue.Body, + Labels: apiIssue.Labels, + Milestone: apiIssue.Milestone, + Assignee: apiIssue.Assignee, + Assignees: apiIssue.Assignees, + State: apiIssue.State, + Draft: pr.IsWorkInProgress(ctx), + IsLocked: apiIssue.IsLocked, + Comments: apiIssue.Comments, + ReviewComments: pr.GetReviewCommentsCount(ctx), + HTMLURL: pr.Issue.HTMLURL(), + DiffURL: pr.Issue.DiffURL(), + PatchURL: pr.Issue.PatchURL(), + HasMerged: pr.HasMerged, + MergeBase: pr.MergeBase, + Mergeable: pr.Mergeable(ctx), + Deadline: apiIssue.Deadline, + Created: pr.Issue.CreatedUnix.AsTimePtr(), + Updated: pr.Issue.UpdatedUnix.AsTimePtr(), + PinOrder: apiIssue.PinOrder, + RequestedReviewers: []*api.User{}, + RequestedReviewersTeams: []*api.Team{}, AllowMaintainerEdit: pr.AllowMaintainerEdit, diff --git a/services/convert/pull_review.go b/services/convert/pull_review.go index f7990e7a5c..08ccc0e1fc 100644 --- a/services/convert/pull_review.go +++ b/services/convert/pull_review.go @@ -7,9 +7,9 @@ import ( "context" "strings" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" ) // ToPullReview convert a review to api format diff --git a/services/convert/pull_test.go b/services/convert/pull_test.go index 1339ed5cc0..3e4875fc60 100644 --- a/services/convert/pull_test.go +++ b/services/convert/pull_test.go @@ -6,15 +6,15 @@ package convert import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/convert/quota.go b/services/convert/quota.go index 791cd8e038..ba729feaac 100644 --- a/services/convert/quota.go +++ b/services/convert/quota.go @@ -7,12 +7,12 @@ import ( "context" "strconv" - action_model "code.gitea.io/gitea/models/actions" - issue_model "code.gitea.io/gitea/models/issues" - package_model "code.gitea.io/gitea/models/packages" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - api "code.gitea.io/gitea/modules/structs" + action_model "forgejo.org/models/actions" + issue_model "forgejo.org/models/issues" + package_model "forgejo.org/models/packages" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + api "forgejo.org/modules/structs" ) func ToQuotaRuleInfo(rule quota_model.Rule, withName bool) api.QuotaRuleInfo { diff --git a/services/convert/release.go b/services/convert/release.go index 8c0f61b56c..7773cf3b19 100644 --- a/services/convert/release.go +++ b/services/convert/release.go @@ -6,8 +6,8 @@ package convert import ( "context" - repo_model "code.gitea.io/gitea/models/repo" - api "code.gitea.io/gitea/modules/structs" + repo_model "forgejo.org/models/repo" + api "forgejo.org/modules/structs" ) // ToAPIRelease convert a repo_model.Release to api.Release diff --git a/services/convert/release_test.go b/services/convert/release_test.go index 2e40bb9cdd..3abd2ff3ef 100644 --- a/services/convert/release_test.go +++ b/services/convert/release_test.go @@ -6,9 +6,9 @@ package convert import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/convert/repository.go b/services/convert/repository.go index e4b2c7b8bc..1b0f46b3da 100644 --- a/services/convert/repository.go +++ b/services/convert/repository.go @@ -7,14 +7,14 @@ import ( "context" "time" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models" + "forgejo.org/models/db" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" ) // ToRepo converts a Repository to api.Repository diff --git a/services/convert/status.go b/services/convert/status.go index 6cef63c1cd..1a71e70a52 100644 --- a/services/convert/status.go +++ b/services/convert/status.go @@ -6,9 +6,9 @@ package convert import ( "context" - git_model "code.gitea.io/gitea/models/git" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + git_model "forgejo.org/models/git" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" ) // ToCommitStatus converts git_model.CommitStatus to api.CommitStatus diff --git a/services/convert/user.go b/services/convert/user.go index 7b6775dfb4..444089fd83 100644 --- a/services/convert/user.go +++ b/services/convert/user.go @@ -6,9 +6,9 @@ package convert import ( "context" - "code.gitea.io/gitea/models/perm" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/perm" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" ) // ToUser convert user_model.User to api.User diff --git a/services/convert/user_test.go b/services/convert/user_test.go index 0f0b520c9b..01ce8101da 100644 --- a/services/convert/user_test.go +++ b/services/convert/user_test.go @@ -6,10 +6,10 @@ package convert import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/convert/utils.go b/services/convert/utils.go index fe35fd2dac..3bbd4e39bd 100644 --- a/services/convert/utils.go +++ b/services/convert/utils.go @@ -7,8 +7,8 @@ package convert import ( "strings" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" ) // ToCorrectPageSize makes sure page size is in allowed range. diff --git a/services/convert/wiki.go b/services/convert/wiki.go index 767bfdb88d..adcbd52949 100644 --- a/services/convert/wiki.go +++ b/services/convert/wiki.go @@ -6,8 +6,8 @@ package convert import ( "time" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" ) // ToWikiCommit convert a git commit into a WikiCommit diff --git a/services/cron/cron.go b/services/cron/cron.go index 3c5737e371..d020f3fd6c 100644 --- a/services/cron/cron.go +++ b/services/cron/cron.go @@ -9,10 +9,10 @@ import ( "runtime/pprof" "time" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/sync" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/graceful" + "forgejo.org/modules/process" + "forgejo.org/modules/sync" + "forgejo.org/modules/translation" "github.com/go-co-op/gocron" ) diff --git a/services/cron/setting.go b/services/cron/setting.go index 6dad88830a..7fd4c4e1d8 100644 --- a/services/cron/setting.go +++ b/services/cron/setting.go @@ -6,7 +6,7 @@ package cron import ( "time" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/translation" ) // Config represents a basic configuration interface that cron task diff --git a/services/cron/tasks.go b/services/cron/tasks.go index f8a7444c49..b547acdf05 100644 --- a/services/cron/tasks.go +++ b/services/cron/tasks.go @@ -11,14 +11,14 @@ import ( "sync" "time" - "code.gitea.io/gitea/models/db" - system_model "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/models/db" + system_model "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" ) var ( diff --git a/services/cron/tasks_actions.go b/services/cron/tasks_actions.go index 59cfe36d14..a7fd3cd0bc 100644 --- a/services/cron/tasks_actions.go +++ b/services/cron/tasks_actions.go @@ -6,9 +6,9 @@ package cron import ( "context" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - actions_service "code.gitea.io/gitea/services/actions" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + actions_service "forgejo.org/services/actions" ) func initActionsTasks() { diff --git a/services/cron/tasks_basic.go b/services/cron/tasks_basic.go index 23eb0dd291..5ada7a8f5c 100644 --- a/services/cron/tasks_basic.go +++ b/services/cron/tasks_basic.go @@ -7,18 +7,18 @@ import ( "context" "time" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/migrations" - mirror_service "code.gitea.io/gitea/services/mirror" - packages_cleanup_service "code.gitea.io/gitea/services/packages/cleanup" - repo_service "code.gitea.io/gitea/services/repository" - archiver_service "code.gitea.io/gitea/services/repository/archiver" + "forgejo.org/models" + git_model "forgejo.org/models/git" + user_model "forgejo.org/models/user" + "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/services/auth" + "forgejo.org/services/migrations" + mirror_service "forgejo.org/services/mirror" + packages_cleanup_service "forgejo.org/services/packages/cleanup" + repo_service "forgejo.org/services/repository" + archiver_service "forgejo.org/services/repository/archiver" ) func registerUpdateMirrorTask() { diff --git a/services/cron/tasks_extended.go b/services/cron/tasks_extended.go index e1ba5274e6..322fe27ca0 100644 --- a/services/cron/tasks_extended.go +++ b/services/cron/tasks_extended.go @@ -7,17 +7,17 @@ import ( "context" "time" - activities_model "code.gitea.io/gitea/models/activities" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - issue_indexer "code.gitea.io/gitea/modules/indexer/issues" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/updatechecker" - repo_service "code.gitea.io/gitea/services/repository" - archiver_service "code.gitea.io/gitea/services/repository/archiver" - user_service "code.gitea.io/gitea/services/user" + activities_model "forgejo.org/models/activities" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + issue_indexer "forgejo.org/modules/indexer/issues" + "forgejo.org/modules/setting" + "forgejo.org/modules/updatechecker" + repo_service "forgejo.org/services/repository" + archiver_service "forgejo.org/services/repository/archiver" + user_service "forgejo.org/services/user" ) func registerDeleteInactiveUsers() { diff --git a/services/doctor/actions.go b/services/doctor/actions.go index 7c44fb8392..c382132265 100644 --- a/services/doctor/actions.go +++ b/services/doctor/actions.go @@ -7,12 +7,12 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + repo_service "forgejo.org/services/repository" ) func disableMirrorActionsUnit(ctx context.Context, logger log.Logger, autofix bool) error { diff --git a/services/doctor/authorizedkeys.go b/services/doctor/authorizedkeys.go index 2920cf51d7..04a3680ff5 100644 --- a/services/doctor/authorizedkeys.go +++ b/services/doctor/authorizedkeys.go @@ -12,10 +12,10 @@ import ( "path/filepath" "strings" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) const tplCommentPrefix = `# gitea public key` diff --git a/services/doctor/breaking.go b/services/doctor/breaking.go index ec8433b8de..339f8e847c 100644 --- a/services/doctor/breaking.go +++ b/services/doctor/breaking.go @@ -7,11 +7,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/models/db" + "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/validation" "xorm.io/builder" ) diff --git a/services/doctor/checkOldArchives.go b/services/doctor/checkOldArchives.go index 390dfb43aa..301e99391b 100644 --- a/services/doctor/checkOldArchives.go +++ b/services/doctor/checkOldArchives.go @@ -8,9 +8,9 @@ import ( "os" "path/filepath" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/util" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + "forgejo.org/modules/util" ) func checkOldArchives(ctx context.Context, logger log.Logger, autofix bool) error { diff --git a/services/doctor/dbconsistency.go b/services/doctor/dbconsistency.go index 9e2fcb645f..6fcbd90940 100644 --- a/services/doctor/dbconsistency.go +++ b/services/doctor/dbconsistency.go @@ -6,16 +6,16 @@ package doctor import ( "context" - actions_model "code.gitea.io/gitea/models/actions" - activities_model "code.gitea.io/gitea/models/activities" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/migrations" - org_model "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + actions_model "forgejo.org/models/actions" + activities_model "forgejo.org/models/activities" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/migrations" + org_model "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) type consistencyCheck struct { diff --git a/services/doctor/dbversion.go b/services/doctor/dbversion.go index 2a102b2194..9c02c732e5 100644 --- a/services/doctor/dbversion.go +++ b/services/doctor/dbversion.go @@ -6,9 +6,9 @@ package doctor import ( "context" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/migrations" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + "forgejo.org/models/migrations" + "forgejo.org/modules/log" ) func checkDBVersion(ctx context.Context, logger log.Logger, autofix bool) error { diff --git a/services/doctor/doctor.go b/services/doctor/doctor.go index a4eb5e16b9..6d8e168bf2 100644 --- a/services/doctor/doctor.go +++ b/services/doctor/doctor.go @@ -10,11 +10,11 @@ import ( "sort" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" + "forgejo.org/models/db" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" ) // Check represents a Doctor check diff --git a/services/doctor/fix16961.go b/services/doctor/fix16961.go index 50d9ac6621..2212d9e903 100644 --- a/services/doctor/fix16961.go +++ b/services/doctor/fix16961.go @@ -9,12 +9,12 @@ import ( "errors" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/timeutil" "xorm.io/builder" ) diff --git a/services/doctor/fix16961_test.go b/services/doctor/fix16961_test.go index 498ed9c8d5..7a83c808c3 100644 --- a/services/doctor/fix16961_test.go +++ b/services/doctor/fix16961_test.go @@ -6,7 +6,7 @@ package doctor import ( "testing" - repo_model "code.gitea.io/gitea/models/repo" + repo_model "forgejo.org/models/repo" "github.com/stretchr/testify/assert" ) diff --git a/services/doctor/fix8312.go b/services/doctor/fix8312.go index 4fc049873a..31cd6686d7 100644 --- a/services/doctor/fix8312.go +++ b/services/doctor/fix8312.go @@ -6,11 +6,11 @@ package doctor import ( "context" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + "forgejo.org/models/perm" + "forgejo.org/modules/log" "xorm.io/builder" ) diff --git a/services/doctor/heads.go b/services/doctor/heads.go index 41fca01d57..7f9d1c73e8 100644 --- a/services/doctor/heads.go +++ b/services/doctor/heads.go @@ -6,9 +6,9 @@ package doctor import ( "context" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/log" ) func synchronizeRepoHeads(ctx context.Context, logger log.Logger, autofix bool) error { diff --git a/services/doctor/lfs.go b/services/doctor/lfs.go index 8531b7bbe8..fed127de5d 100644 --- a/services/doctor/lfs.go +++ b/services/doctor/lfs.go @@ -8,9 +8,9 @@ import ( "fmt" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/repository" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/services/repository" ) func init() { diff --git a/services/doctor/mergebase.go b/services/doctor/mergebase.go index de460c4190..bebde30bee 100644 --- a/services/doctor/mergebase.go +++ b/services/doctor/mergebase.go @@ -8,11 +8,11 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/log" "xorm.io/builder" ) diff --git a/services/doctor/misc.go b/services/doctor/misc.go index 9300c3a25c..9b9c96b52b 100644 --- a/services/doctor/misc.go +++ b/services/doctor/misc.go @@ -11,17 +11,17 @@ import ( "path" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" lru "github.com/hashicorp/golang-lru/v2" "xorm.io/builder" diff --git a/services/doctor/packages_nuget.go b/services/doctor/packages_nuget.go index 47fdb3ac12..f6a33db779 100644 --- a/services/doctor/packages_nuget.go +++ b/services/doctor/packages_nuget.go @@ -9,12 +9,12 @@ import ( "slices" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - nuget_module "code.gitea.io/gitea/modules/packages/nuget" - packages_service "code.gitea.io/gitea/services/packages" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + nuget_module "forgejo.org/modules/packages/nuget" + packages_service "forgejo.org/services/packages" "xorm.io/builder" ) diff --git a/services/doctor/paths.go b/services/doctor/paths.go index 8e37f01ef5..4fbe19ea04 100644 --- a/services/doctor/paths.go +++ b/services/doctor/paths.go @@ -8,8 +8,8 @@ import ( "fmt" "os" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) type configurationFile struct { diff --git a/services/doctor/push_mirror_consistency.go b/services/doctor/push_mirror_consistency.go index 68b96d6415..07986770b2 100644 --- a/services/doctor/push_mirror_consistency.go +++ b/services/doctor/push_mirror_consistency.go @@ -7,9 +7,9 @@ import ( "context" "strings" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/log" "xorm.io/builder" ) diff --git a/services/doctor/repository.go b/services/doctor/repository.go index 6c33426636..cd51483d88 100644 --- a/services/doctor/repository.go +++ b/services/doctor/repository.go @@ -6,11 +6,11 @@ package doctor import ( "context" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/storage" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/storage" + repo_service "forgejo.org/services/repository" "xorm.io/builder" ) diff --git a/services/doctor/storage.go b/services/doctor/storage.go index 3f3b562c37..7dbe475d6c 100644 --- a/services/doctor/storage.go +++ b/services/doctor/storage.go @@ -9,16 +9,16 @@ import ( "io/fs" "strings" - "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/git" + "forgejo.org/models/packages" + "forgejo.org/models/repo" + "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" ) type commonStorageCheckOptions struct { diff --git a/services/doctor/usertype.go b/services/doctor/usertype.go index ab32b78e62..0a034d8f9d 100644 --- a/services/doctor/usertype.go +++ b/services/doctor/usertype.go @@ -6,8 +6,8 @@ package doctor import ( "context" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" ) func checkUserType(ctx context.Context, logger log.Logger, autofix bool) error { diff --git a/services/externalaccount/link.go b/services/externalaccount/link.go index d6e2ea7e94..f5d29b5ce5 100644 --- a/services/externalaccount/link.go +++ b/services/externalaccount/link.go @@ -7,7 +7,7 @@ import ( "context" "fmt" - user_model "code.gitea.io/gitea/models/user" + user_model "forgejo.org/models/user" "github.com/markbates/goth" ) diff --git a/services/externalaccount/user.go b/services/externalaccount/user.go index 3cfd8c81f9..68d085f6d0 100644 --- a/services/externalaccount/user.go +++ b/services/externalaccount/user.go @@ -8,11 +8,11 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models/auth" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/auth" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" "github.com/markbates/goth" ) diff --git a/services/f3/driver/asset.go b/services/f3/driver/asset.go index 61e571d1b6..c9d2ecdf2f 100644 --- a/services/f3/driver/asset.go +++ b/services/f3/driver/asset.go @@ -12,12 +12,12 @@ import ( "io" "os" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/services/attachment" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/storage" + "forgejo.org/modules/timeutil" + "forgejo.org/services/attachment" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/assets.go b/services/f3/driver/assets.go index 88a3979713..106d5029f3 100644 --- a/services/f3/driver/assets.go +++ b/services/f3/driver/assets.go @@ -8,7 +8,7 @@ import ( "context" "fmt" - repo_model "code.gitea.io/gitea/models/repo" + repo_model "forgejo.org/models/repo" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/comment.go b/services/f3/driver/comment.go index 166bfcd328..bd924930b5 100644 --- a/services/f3/driver/comment.go +++ b/services/f3/driver/comment.go @@ -8,10 +8,10 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/comments.go b/services/f3/driver/comments.go index eb79b74066..d8c84e290c 100644 --- a/services/f3/driver/comments.go +++ b/services/f3/driver/comments.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/forge.go b/services/f3/driver/forge.go index c232882753..03acb41450 100644 --- a/services/f3/driver/forge.go +++ b/services/f3/driver/forge.go @@ -8,7 +8,7 @@ import ( "context" "fmt" - user_model "code.gitea.io/gitea/models/user" + user_model "forgejo.org/models/user" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/issue.go b/services/f3/driver/issue.go index 7e10f3a9db..6308c4cc2d 100644 --- a/services/f3/driver/issue.go +++ b/services/f3/driver/issue.go @@ -8,13 +8,13 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/timeutil" - issue_service "code.gitea.io/gitea/services/issue" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/timeutil" + issue_service "forgejo.org/services/issue" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/issues.go b/services/f3/driver/issues.go index 3a5a64e2b1..dd6828dc86 100644 --- a/services/f3/driver/issues.go +++ b/services/f3/driver/issues.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/label.go b/services/f3/driver/label.go index 509a69cf71..707ac2bab3 100644 --- a/services/f3/driver/label.go +++ b/services/f3/driver/label.go @@ -9,8 +9,8 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/labels.go b/services/f3/driver/labels.go index 03f986b57a..4f705ed206 100644 --- a/services/f3/driver/labels.go +++ b/services/f3/driver/labels.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/main.go b/services/f3/driver/main.go index 825d456692..eb6e4a6fb6 100644 --- a/services/f3/driver/main.go +++ b/services/f3/driver/main.go @@ -5,7 +5,7 @@ package driver import ( - driver_options "code.gitea.io/gitea/services/f3/driver/options" + driver_options "forgejo.org/services/f3/driver/options" "code.forgejo.org/f3/gof3/v3/options" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" diff --git a/services/f3/driver/main_test.go b/services/f3/driver/main_test.go index 8505b69b7e..b136fd5b23 100644 --- a/services/f3/driver/main_test.go +++ b/services/f3/driver/main_test.go @@ -7,14 +7,14 @@ package driver import ( "testing" - "code.gitea.io/gitea/models/unittest" - driver_options "code.gitea.io/gitea/services/f3/driver/options" + "forgejo.org/models/unittest" + driver_options "forgejo.org/services/f3/driver/options" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/perm/access" - _ "code.gitea.io/gitea/services/f3/driver/tests" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/perm/access" + _ "forgejo.org/services/f3/driver/tests" tests_f3 "code.forgejo.org/f3/gof3/v3/tree/tests/f3" "github.com/stretchr/testify/require" diff --git a/services/f3/driver/milestone.go b/services/f3/driver/milestone.go index e57fee95a7..d10e6918ac 100644 --- a/services/f3/driver/milestone.go +++ b/services/f3/driver/milestone.go @@ -9,10 +9,10 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/milestones.go b/services/f3/driver/milestones.go index c816903bb1..cf0b70c158 100644 --- a/services/f3/driver/milestones.go +++ b/services/f3/driver/milestones.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/options.go b/services/f3/driver/options.go index abc5015dd0..516f9baf7a 100644 --- a/services/f3/driver/options.go +++ b/services/f3/driver/options.go @@ -7,7 +7,7 @@ package driver import ( "net/http" - driver_options "code.gitea.io/gitea/services/f3/driver/options" + driver_options "forgejo.org/services/f3/driver/options" "code.forgejo.org/f3/gof3/v3/options" ) diff --git a/services/f3/driver/organization.go b/services/f3/driver/organization.go index 8e818a231a..af1eea4dda 100644 --- a/services/f3/driver/organization.go +++ b/services/f3/driver/organization.go @@ -8,9 +8,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + user_model "forgejo.org/models/user" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/organizations.go b/services/f3/driver/organizations.go index adebdbbe95..eca6bfb9d4 100644 --- a/services/f3/driver/organizations.go +++ b/services/f3/driver/organizations.go @@ -8,9 +8,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + user_model "forgejo.org/models/user" f3_id "code.forgejo.org/f3/gof3/v3/id" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" diff --git a/services/f3/driver/project.go b/services/f3/driver/project.go index 2400663426..5a3ec81e40 100644 --- a/services/f3/driver/project.go +++ b/services/f3/driver/project.go @@ -9,9 +9,9 @@ import ( "fmt" "strings" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - repo_service "code.gitea.io/gitea/services/repository" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + repo_service "forgejo.org/services/repository" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/projects.go b/services/f3/driver/projects.go index fb447f3f01..0c76854f43 100644 --- a/services/f3/driver/projects.go +++ b/services/f3/driver/projects.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" f3_id "code.forgejo.org/f3/gof3/v3/id" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" diff --git a/services/f3/driver/pullrequest.go b/services/f3/driver/pullrequest.go index b8cb06c4d5..664ee6b13b 100644 --- a/services/f3/driver/pullrequest.go +++ b/services/f3/driver/pullrequest.go @@ -9,13 +9,13 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/timeutil" - issue_service "code.gitea.io/gitea/services/issue" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/timeutil" + issue_service "forgejo.org/services/issue" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/pullrequests.go b/services/f3/driver/pullrequests.go index e7f2910314..227171994c 100644 --- a/services/f3/driver/pullrequests.go +++ b/services/f3/driver/pullrequests.go @@ -8,9 +8,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/optional" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/optional" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/reaction.go b/services/f3/driver/reaction.go index 4f12fa41db..74c50b9d13 100644 --- a/services/f3/driver/reaction.go +++ b/services/f3/driver/reaction.go @@ -8,9 +8,9 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/reactions.go b/services/f3/driver/reactions.go index b7fd5e8f0a..a546927b92 100644 --- a/services/f3/driver/reactions.go +++ b/services/f3/driver/reactions.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/release.go b/services/f3/driver/release.go index 86490e8b02..df38bd8bc0 100644 --- a/services/f3/driver/release.go +++ b/services/f3/driver/release.go @@ -9,12 +9,12 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/timeutil" - release_service "code.gitea.io/gitea/services/release" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/timeutil" + release_service "forgejo.org/services/release" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/releases.go b/services/f3/driver/releases.go index 3b46bc7c54..a631c0b60e 100644 --- a/services/f3/driver/releases.go +++ b/services/f3/driver/releases.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/repository.go b/services/f3/driver/repository.go index 118d5f2f2a..e7f4e43723 100644 --- a/services/f3/driver/repository.go +++ b/services/f3/driver/repository.go @@ -7,7 +7,7 @@ package driver import ( "context" - repo_model "code.gitea.io/gitea/models/repo" + repo_model "forgejo.org/models/repo" "code.forgejo.org/f3/gof3/v3/f3" helpers_repository "code.forgejo.org/f3/gof3/v3/forges/helpers/repository" diff --git a/services/f3/driver/review.go b/services/f3/driver/review.go index d180ea96be..f4f5ff44b8 100644 --- a/services/f3/driver/review.go +++ b/services/f3/driver/review.go @@ -8,10 +8,10 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/reviewcomment.go b/services/f3/driver/reviewcomment.go index 7ba0e15802..22759b6df3 100644 --- a/services/f3/driver/reviewcomment.go +++ b/services/f3/driver/reviewcomment.go @@ -9,10 +9,10 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/reviewcomments.go b/services/f3/driver/reviewcomments.go index e11aaa489b..2aa4dea22c 100644 --- a/services/f3/driver/reviewcomments.go +++ b/services/f3/driver/reviewcomments.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/reviews.go b/services/f3/driver/reviews.go index a20d5741d1..7c3dcb37de 100644 --- a/services/f3/driver/reviews.go +++ b/services/f3/driver/reviews.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/tests/init.go b/services/f3/driver/tests/init.go index d7bf23ac88..9035296dc0 100644 --- a/services/f3/driver/tests/init.go +++ b/services/f3/driver/tests/init.go @@ -5,7 +5,7 @@ package tests import ( - driver_options "code.gitea.io/gitea/services/f3/driver/options" + driver_options "forgejo.org/services/f3/driver/options" tests_forge "code.forgejo.org/f3/gof3/v3/tree/tests/f3/forge" ) diff --git a/services/f3/driver/tests/new.go b/services/f3/driver/tests/new.go index dc6ac437e6..2f5c6c64db 100644 --- a/services/f3/driver/tests/new.go +++ b/services/f3/driver/tests/new.go @@ -7,7 +7,7 @@ package tests import ( "testing" - driver_options "code.gitea.io/gitea/services/f3/driver/options" + driver_options "forgejo.org/services/f3/driver/options" f3_kind "code.forgejo.org/f3/gof3/v3/kind" "code.forgejo.org/f3/gof3/v3/options" diff --git a/services/f3/driver/tests/options.go b/services/f3/driver/tests/options.go index adaa1da588..f61b10c9ef 100644 --- a/services/f3/driver/tests/options.go +++ b/services/f3/driver/tests/options.go @@ -7,9 +7,9 @@ package tests import ( "testing" - forgejo_log "code.gitea.io/gitea/modules/log" - driver_options "code.gitea.io/gitea/services/f3/driver/options" - "code.gitea.io/gitea/services/f3/util" + forgejo_log "forgejo.org/modules/log" + driver_options "forgejo.org/services/f3/driver/options" + "forgejo.org/services/f3/util" "code.forgejo.org/f3/gof3/v3/options" ) diff --git a/services/f3/driver/topic.go b/services/f3/driver/topic.go index eeb387cf93..cc94aa35fa 100644 --- a/services/f3/driver/topic.go +++ b/services/f3/driver/topic.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/topics.go b/services/f3/driver/topics.go index 2685a47928..38f03dbd2d 100644 --- a/services/f3/driver/topics.go +++ b/services/f3/driver/topics.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" "code.forgejo.org/f3/gof3/v3/tree/generic" diff --git a/services/f3/driver/tree.go b/services/f3/driver/tree.go index 2377d3794d..ff927df9d4 100644 --- a/services/f3/driver/tree.go +++ b/services/f3/driver/tree.go @@ -8,7 +8,7 @@ import ( "context" "fmt" - forgejo_options "code.gitea.io/gitea/services/f3/driver/options" + forgejo_options "forgejo.org/services/f3/driver/options" f3_kind "code.forgejo.org/f3/gof3/v3/kind" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" diff --git a/services/f3/driver/user.go b/services/f3/driver/user.go index 0ba6cbb7c6..bf8bfaf9c9 100644 --- a/services/f3/driver/user.go +++ b/services/f3/driver/user.go @@ -9,9 +9,9 @@ import ( "fmt" "strings" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - user_service "code.gitea.io/gitea/services/user" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + user_service "forgejo.org/services/user" "code.forgejo.org/f3/gof3/v3/f3" f3_id "code.forgejo.org/f3/gof3/v3/id" diff --git a/services/f3/driver/users.go b/services/f3/driver/users.go index 59b10fc51d..cb413ae05d 100644 --- a/services/f3/driver/users.go +++ b/services/f3/driver/users.go @@ -8,8 +8,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" f3_id "code.forgejo.org/f3/gof3/v3/id" f3_tree "code.forgejo.org/f3/gof3/v3/tree/f3" diff --git a/services/f3/util/logger.go b/services/f3/util/logger.go index 21d8d6bbfa..9a1409ae84 100644 --- a/services/f3/util/logger.go +++ b/services/f3/util/logger.go @@ -6,8 +6,8 @@ package util import ( "fmt" - forgejo_log "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/migration" + forgejo_log "forgejo.org/modules/log" + "forgejo.org/modules/migration" "code.forgejo.org/f3/gof3/v3/logger" ) diff --git a/services/f3/util/logger_test.go b/services/f3/util/logger_test.go index db880aa439..4afd5dd57f 100644 --- a/services/f3/util/logger_test.go +++ b/services/f3/util/logger_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - forgejo_log "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/test" + forgejo_log "forgejo.org/modules/log" + "forgejo.org/modules/test" "code.forgejo.org/f3/gof3/v3/logger" "github.com/stretchr/testify/assert" diff --git a/services/federation/federation_service.go b/services/federation/federation_service.go index 4c6f5ca0ca..21c7be855b 100644 --- a/services/federation/federation_service.go +++ b/services/federation/federation_service.go @@ -11,15 +11,15 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/forgefed" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/activitypub" - "code.gitea.io/gitea/modules/auth/password" - fm "code.gitea.io/gitea/modules/forgefed" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/validation" + "forgejo.org/models/forgefed" + "forgejo.org/models/repo" + "forgejo.org/models/user" + "forgejo.org/modules/activitypub" + "forgejo.org/modules/auth/password" + fm "forgejo.org/modules/forgefed" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/validation" "github.com/google/uuid" ) diff --git a/services/feed/action.go b/services/feed/action.go index 2d6a6cb09a..a2cd0551a3 100644 --- a/services/feed/action.go +++ b/services/feed/action.go @@ -9,17 +9,17 @@ import ( "path" "strings" - activities_model "code.gitea.io/gitea/models/activities" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - notify_service "code.gitea.io/gitea/services/notify" + activities_model "forgejo.org/models/activities" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + notify_service "forgejo.org/services/notify" ) type actionNotifier struct { diff --git a/services/feed/action_test.go b/services/feed/action_test.go index 037cf08dfe..b0bbcdc3b6 100644 --- a/services/feed/action_test.go +++ b/services/feed/action_test.go @@ -7,18 +7,18 @@ import ( "strings" "testing" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/forgejo/main_test.go b/services/forgejo/main_test.go index 40ce1715b1..5523ed1aab 100644 --- a/services/forgejo/main_test.go +++ b/services/forgejo/main_test.go @@ -5,12 +5,12 @@ package forgejo import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/services/forgejo/sanity.go b/services/forgejo/sanity.go index 5e817d67f5..70f15889d4 100644 --- a/services/forgejo/sanity.go +++ b/services/forgejo/sanity.go @@ -3,9 +3,9 @@ package forgejo import ( - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) var ( diff --git a/services/forgejo/sanity_test.go b/services/forgejo/sanity_test.go index 657f7e2720..065a9fda4d 100644 --- a/services/forgejo/sanity_test.go +++ b/services/forgejo/sanity_test.go @@ -7,9 +7,9 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" "github.com/stretchr/testify/require" ) diff --git a/services/forgejo/sanity_v1TOv5_0_1Included.go b/services/forgejo/sanity_v1TOv5_0_1Included.go index 49de636f33..1d3f07d8e1 100644 --- a/services/forgejo/sanity_v1TOv5_0_1Included.go +++ b/services/forgejo/sanity_v1TOv5_0_1Included.go @@ -6,9 +6,9 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/forgejo/semver" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/forgejo/semver" + "forgejo.org/modules/setting" "github.com/hashicorp/go-version" ) diff --git a/services/forgejo/sanity_v1TOv5_0_1Included_test.go b/services/forgejo/sanity_v1TOv5_0_1Included_test.go index 56618ebd5f..2521afb496 100644 --- a/services/forgejo/sanity_v1TOv5_0_1Included_test.go +++ b/services/forgejo/sanity_v1TOv5_0_1Included_test.go @@ -6,10 +6,10 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/forgejo/semver" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + "forgejo.org/models/forgejo/semver" + "forgejo.org/models/unittest" + "forgejo.org/modules/log" "github.com/stretchr/testify/require" ) diff --git a/services/forms/admin.go b/services/forms/admin.go index 1f055cff55..5a5d46634b 100644 --- a/services/forms/admin.go +++ b/services/forms/admin.go @@ -6,9 +6,9 @@ package forms import ( "net/http" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/structs" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/auth_form.go b/services/forms/auth_form.go index 21443ff6a5..e665ca0d19 100644 --- a/services/forms/auth_form.go +++ b/services/forms/auth_form.go @@ -6,8 +6,8 @@ package forms import ( "net/http" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/org.go b/services/forms/org.go index dea2e159e9..a6e4e72c4a 100644 --- a/services/forms/org.go +++ b/services/forms/org.go @@ -7,9 +7,9 @@ package forms import ( "net/http" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/structs" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/package_form.go b/services/forms/package_form.go index 7a7d8752cf..82e5a09f86 100644 --- a/services/forms/package_form.go +++ b/services/forms/package_form.go @@ -6,8 +6,8 @@ package forms import ( "net/http" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/repo_branch_form.go b/services/forms/repo_branch_form.go index 186a4ad367..c34e7c6d17 100644 --- a/services/forms/repo_branch_form.go +++ b/services/forms/repo_branch_form.go @@ -6,8 +6,8 @@ package forms import ( "net/http" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 8253a8957b..bd2eb769c6 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -12,14 +12,14 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/models" - issues_model "code.gitea.io/gitea/models/issues" - project_model "code.gitea.io/gitea/models/project" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/models" + issues_model "forgejo.org/models/issues" + project_model "forgejo.org/models/project" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/repo_form_test.go b/services/forms/repo_form_test.go index 2c5a8e2c0f..4047762096 100644 --- a/services/forms/repo_form_test.go +++ b/services/forms/repo_form_test.go @@ -6,7 +6,7 @@ package forms import ( "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" ) diff --git a/services/forms/repo_tag_form.go b/services/forms/repo_tag_form.go index 38f5996db3..1254c84d07 100644 --- a/services/forms/repo_tag_form.go +++ b/services/forms/repo_tag_form.go @@ -6,8 +6,8 @@ package forms import ( "net/http" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/runner.go b/services/forms/runner.go index f933750858..fcf6c5a694 100644 --- a/services/forms/runner.go +++ b/services/forms/runner.go @@ -6,8 +6,8 @@ package forms import ( "net/http" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/user_form.go b/services/forms/user_form.go index c64d7f0b4a..0c04cf987b 100644 --- a/services/forms/user_form.go +++ b/services/forms/user_form.go @@ -9,12 +9,12 @@ import ( "net/http" "strings" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/validation" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/user_form_auth_openid.go b/services/forms/user_form_auth_openid.go index c5ab703fa1..02d4f873bc 100644 --- a/services/forms/user_form_auth_openid.go +++ b/services/forms/user_form_auth_openid.go @@ -6,8 +6,8 @@ package forms import ( "net/http" - "code.gitea.io/gitea/modules/web/middleware" - "code.gitea.io/gitea/services/context" + "forgejo.org/modules/web/middleware" + "forgejo.org/services/context" "code.forgejo.org/go-chi/binding" ) diff --git a/services/forms/user_form_hidden_comments.go b/services/forms/user_form_hidden_comments.go index b9677c1800..74a1aaccb0 100644 --- a/services/forms/user_form_hidden_comments.go +++ b/services/forms/user_form_hidden_comments.go @@ -6,9 +6,9 @@ package forms import ( "math/big" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/context" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/log" + "forgejo.org/services/context" ) type hiddenCommentTypeGroupsType map[string][]issues_model.CommentType diff --git a/services/forms/user_form_test.go b/services/forms/user_form_test.go index 66050187c9..67fb64cabf 100644 --- a/services/forms/user_form_test.go +++ b/services/forms/user_form_test.go @@ -7,8 +7,8 @@ import ( "strconv" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/setting" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/setting" "github.com/gobwas/glob" "github.com/stretchr/testify/assert" diff --git a/services/gitdiff/csv_test.go b/services/gitdiff/csv_test.go index 1dbe616374..9bffba33fd 100644 --- a/services/gitdiff/csv_test.go +++ b/services/gitdiff/csv_test.go @@ -8,9 +8,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - csv_module "code.gitea.io/gitea/modules/csv" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + csv_module "forgejo.org/modules/csv" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/gitdiff/gitdiff.go b/services/gitdiff/gitdiff.go index f2070983e6..2e1fecda2a 100644 --- a/services/gitdiff/gitdiff.go +++ b/services/gitdiff/gitdiff.go @@ -17,19 +17,19 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - pull_model "code.gitea.io/gitea/models/pull" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/analyze" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/highlight" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + pull_model "forgejo.org/models/pull" + user_model "forgejo.org/models/user" + "forgejo.org/modules/analyze" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/highlight" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" "github.com/sergi/go-diff/diffmatchpatch" stdcharset "golang.org/x/net/html/charset" diff --git a/services/gitdiff/gitdiff_test.go b/services/gitdiff/gitdiff_test.go index f2c099d554..532255fe84 100644 --- a/services/gitdiff/gitdiff_test.go +++ b/services/gitdiff/gitdiff_test.go @@ -9,13 +9,13 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" dmp "github.com/sergi/go-diff/diffmatchpatch" "github.com/stretchr/testify/assert" diff --git a/services/gitdiff/highlightdiff.go b/services/gitdiff/highlightdiff.go index c72959ea16..08681b8617 100644 --- a/services/gitdiff/highlightdiff.go +++ b/services/gitdiff/highlightdiff.go @@ -6,7 +6,7 @@ package gitdiff import ( "strings" - "code.gitea.io/gitea/modules/highlight" + "forgejo.org/modules/highlight" "github.com/sergi/go-diff/diffmatchpatch" ) diff --git a/services/gitdiff/main_test.go b/services/gitdiff/main_test.go index 3d4d480530..cd7a6a4a6b 100644 --- a/services/gitdiff/main_test.go +++ b/services/gitdiff/main_test.go @@ -6,12 +6,12 @@ package gitdiff import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/activities" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/activities" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/services/indexer/indexer.go b/services/indexer/indexer.go index 38dd012a51..92036f95c3 100644 --- a/services/indexer/indexer.go +++ b/services/indexer/indexer.go @@ -4,10 +4,10 @@ package indexer import ( - code_indexer "code.gitea.io/gitea/modules/indexer/code" - issue_indexer "code.gitea.io/gitea/modules/indexer/issues" - stats_indexer "code.gitea.io/gitea/modules/indexer/stats" - notify_service "code.gitea.io/gitea/services/notify" + code_indexer "forgejo.org/modules/indexer/code" + issue_indexer "forgejo.org/modules/indexer/issues" + stats_indexer "forgejo.org/modules/indexer/stats" + notify_service "forgejo.org/services/notify" ) // Init initialize the repo indexer diff --git a/services/indexer/notify.go b/services/indexer/notify.go index e2cfe477d3..ddd89f733c 100644 --- a/services/indexer/notify.go +++ b/services/indexer/notify.go @@ -6,16 +6,16 @@ package indexer import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - code_indexer "code.gitea.io/gitea/modules/indexer/code" - issue_indexer "code.gitea.io/gitea/modules/indexer/issues" - stats_indexer "code.gitea.io/gitea/modules/indexer/stats" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - notify_service "code.gitea.io/gitea/services/notify" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + code_indexer "forgejo.org/modules/indexer/code" + issue_indexer "forgejo.org/modules/indexer/issues" + stats_indexer "forgejo.org/modules/indexer/stats" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + notify_service "forgejo.org/services/notify" ) type indexerNotifier struct { diff --git a/services/issue/assignee.go b/services/issue/assignee.go index 3d6d0b881a..a5f9c2731f 100644 --- a/services/issue/assignee.go +++ b/services/issue/assignee.go @@ -6,15 +6,15 @@ package issue import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - notify_service "code.gitea.io/gitea/services/notify" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + notify_service "forgejo.org/services/notify" ) // DeleteNotPassedAssignee deletes all assignees who aren't passed via the "assignees" array diff --git a/services/issue/assignee_test.go b/services/issue/assignee_test.go index 2b70b8c8ce..66a66459cb 100644 --- a/services/issue/assignee_test.go +++ b/services/issue/assignee_test.go @@ -6,10 +6,10 @@ package issue import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/issue/comments.go b/services/issue/comments.go index 3ab577b83f..dedef6cc87 100644 --- a/services/issue/comments.go +++ b/services/issue/comments.go @@ -7,12 +7,12 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/timeutil" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/timeutil" + notify_service "forgejo.org/services/notify" ) // CreateRefComment creates a commit reference comment to issue. diff --git a/services/issue/comments_test.go b/services/issue/comments_test.go index 62547a584a..728af15529 100644 --- a/services/issue/comments_test.go +++ b/services/issue/comments_test.go @@ -6,17 +6,17 @@ package issue_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - issue_service "code.gitea.io/gitea/services/issue" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + issue_service "forgejo.org/services/issue" + "forgejo.org/tests" - _ "code.gitea.io/gitea/services/webhook" + _ "forgejo.org/services/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/issue/commit.go b/services/issue/commit.go index 8b927d52b6..1e51fb32b7 100644 --- a/services/issue/commit.go +++ b/services/issue/commit.go @@ -13,15 +13,15 @@ import ( "strings" "time" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/references" - "code.gitea.io/gitea/modules/repository" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/references" + "forgejo.org/modules/repository" ) const ( diff --git a/services/issue/commit_test.go b/services/issue/commit_test.go index c3c3e4c042..e3a41d2305 100644 --- a/services/issue/commit_test.go +++ b/services/issue/commit_test.go @@ -6,14 +6,14 @@ package issue import ( "testing" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" "github.com/stretchr/testify/require" ) diff --git a/services/issue/content.go b/services/issue/content.go index 612a9a6b4c..d5c79e5fde 100644 --- a/services/issue/content.go +++ b/services/issue/content.go @@ -6,9 +6,9 @@ package issue import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - notify_service "code.gitea.io/gitea/services/notify" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + notify_service "forgejo.org/services/notify" ) // ChangeContent changes issue content, as the given user. diff --git a/services/issue/issue.go b/services/issue/issue.go index 5e726176d0..f6a3e90b10 100644 --- a/services/issue/issue.go +++ b/services/issue/issue.go @@ -8,19 +8,19 @@ import ( "fmt" "time" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - system_model "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/timeutil" - notify_service "code.gitea.io/gitea/services/notify" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + system_model "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/storage" + "forgejo.org/modules/timeutil" + notify_service "forgejo.org/services/notify" ) // NewIssue creates new issue with labels for repository. diff --git a/services/issue/issue_test.go b/services/issue/issue_test.go index a0bb88e387..e15a0118ad 100644 --- a/services/issue/issue_test.go +++ b/services/issue/issue_test.go @@ -6,11 +6,11 @@ package issue import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/issue/label.go b/services/issue/label.go index 6b8070d8aa..bcac54272a 100644 --- a/services/issue/label.go +++ b/services/issue/label.go @@ -6,11 +6,11 @@ package issue import ( "context" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - user_model "code.gitea.io/gitea/models/user" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + user_model "forgejo.org/models/user" + notify_service "forgejo.org/services/notify" ) // ClearLabels clears all of an issue's labels diff --git a/services/issue/label_test.go b/services/issue/label_test.go index b9d26345c1..73a028684b 100644 --- a/services/issue/label_test.go +++ b/services/issue/label_test.go @@ -6,10 +6,10 @@ package issue import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/require" ) diff --git a/services/issue/main_test.go b/services/issue/main_test.go index c3da441537..673ec5e4cc 100644 --- a/services/issue/main_test.go +++ b/services/issue/main_test.go @@ -6,11 +6,11 @@ package issue import ( "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/webhook" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/services/webhook" - _ "code.gitea.io/gitea/models/actions" + _ "forgejo.org/models/actions" ) func TestMain(m *testing.M) { diff --git a/services/issue/milestone.go b/services/issue/milestone.go index 407ad0a59b..3fa7083812 100644 --- a/services/issue/milestone.go +++ b/services/issue/milestone.go @@ -7,10 +7,10 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + notify_service "forgejo.org/services/notify" ) func updateMilestoneCounters(ctx context.Context, issue *issues_model.Issue, id int64) error { diff --git a/services/issue/milestone_test.go b/services/issue/milestone_test.go index e75f64550c..4123433c2a 100644 --- a/services/issue/milestone_test.go +++ b/services/issue/milestone_test.go @@ -6,10 +6,10 @@ package issue import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/issue/pull.go b/services/issue/pull.go index 3b61c00afa..b0a0c47d88 100644 --- a/services/issue/pull.go +++ b/services/issue/pull.go @@ -8,15 +8,15 @@ import ( "fmt" "time" - issues_model "code.gitea.io/gitea/models/issues" - org_model "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + issues_model "forgejo.org/models/issues" + org_model "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) func getMergeBase(repo *git.Repository, pr *issues_model.PullRequest, baseBranch, headBranch string) (string, error) { diff --git a/services/issue/reaction.go b/services/issue/reaction.go index dbb4735de2..c6a11aa0f0 100644 --- a/services/issue/reaction.go +++ b/services/issue/reaction.go @@ -5,8 +5,8 @@ package issue import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" ) // CreateIssueReaction creates a reaction on issue. diff --git a/services/issue/status.go b/services/issue/status.go index 9b6c683f4f..6664da7daa 100644 --- a/services/issue/status.go +++ b/services/issue/status.go @@ -6,10 +6,10 @@ package issue import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - notify_service "code.gitea.io/gitea/services/notify" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + notify_service "forgejo.org/services/notify" ) // ChangeStatus changes issue status to open or closed. diff --git a/services/issue/template.go b/services/issue/template.go index 9a2b048401..67a01825d2 100644 --- a/services/issue/template.go +++ b/services/issue/template.go @@ -10,11 +10,11 @@ import ( "path" "strings" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/issue/template" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/issue/template" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" "gopkg.in/yaml.v3" ) diff --git a/services/lfs/locks.go b/services/lfs/locks.go index 2a362b1c0d..a45b2cc93b 100644 --- a/services/lfs/locks.go +++ b/services/lfs/locks.go @@ -8,16 +8,16 @@ import ( "strconv" "strings" - auth_model "code.gitea.io/gitea/models/auth" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/json" - lfs_module "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/convert" + auth_model "forgejo.org/models/auth" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/json" + lfs_module "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" + "forgejo.org/services/convert" ) func handleLockListOut(ctx *context.Context, repo *repo_model.Repository, lock *git_model.LFSLock, err error) { diff --git a/services/lfs/server.go b/services/lfs/server.go index 51d6f42776..8eef62eabe 100644 --- a/services/lfs/server.go +++ b/services/lfs/server.go @@ -18,21 +18,21 @@ import ( "strconv" "strings" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - lfs_module "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/services/context" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + git_model "forgejo.org/models/git" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + lfs_module "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/services/context" "github.com/golang-jwt/jwt/v5" ) diff --git a/services/mailer/incoming/incoming.go b/services/mailer/incoming/incoming.go index 1b1be4c656..b1b9191df3 100644 --- a/services/mailer/incoming/incoming.go +++ b/services/mailer/incoming/incoming.go @@ -14,10 +14,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/mailer/token" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/services/mailer/token" "code.forgejo.org/forgejo/reply" "github.com/emersion/go-imap" diff --git a/services/mailer/incoming/incoming_handler.go b/services/mailer/incoming/incoming_handler.go index dc3c4ec69b..7505148978 100644 --- a/services/mailer/incoming/incoming_handler.go +++ b/services/mailer/incoming/incoming_handler.go @@ -8,19 +8,19 @@ import ( "context" "fmt" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - attachment_service "code.gitea.io/gitea/services/attachment" - "code.gitea.io/gitea/services/context/upload" - issue_service "code.gitea.io/gitea/services/issue" - incoming_payload "code.gitea.io/gitea/services/mailer/incoming/payload" - "code.gitea.io/gitea/services/mailer/token" - pull_service "code.gitea.io/gitea/services/pull" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + attachment_service "forgejo.org/services/attachment" + "forgejo.org/services/context/upload" + issue_service "forgejo.org/services/issue" + incoming_payload "forgejo.org/services/mailer/incoming/payload" + "forgejo.org/services/mailer/token" + pull_service "forgejo.org/services/pull" ) type MailHandler interface { diff --git a/services/mailer/incoming/payload/payload.go b/services/mailer/incoming/payload/payload.go index 00ada7826b..bb7a65e3d5 100644 --- a/services/mailer/incoming/payload/payload.go +++ b/services/mailer/incoming/payload/payload.go @@ -6,8 +6,8 @@ package payload import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/util" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/util" ) const replyPayloadVersion1 byte = 1 diff --git a/services/mailer/mail.go b/services/mailer/mail.go index bfede28bbe..c0a37d9fb2 100644 --- a/services/mailer/mail.go +++ b/services/mailer/mail.go @@ -16,21 +16,21 @@ import ( texttmpl "text/template" "time" - activities_model "code.gitea.io/gitea/models/activities" - auth_model "code.gitea.io/gitea/models/auth" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/emoji" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/translation" - incoming_payload "code.gitea.io/gitea/services/mailer/incoming/payload" - "code.gitea.io/gitea/services/mailer/token" + activities_model "forgejo.org/models/activities" + auth_model "forgejo.org/models/auth" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/emoji" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/translation" + incoming_payload "forgejo.org/services/mailer/incoming/payload" + "forgejo.org/services/mailer/token" "gopkg.in/gomail.v2" ) diff --git a/services/mailer/mail_admin_new_user.go b/services/mailer/mail_admin_new_user.go index 0713de8a95..ffb03197b7 100644 --- a/services/mailer/mail_admin_new_user.go +++ b/services/mailer/mail_admin_new_user.go @@ -7,12 +7,12 @@ import ( "context" "strconv" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/translation" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/translation" ) const ( diff --git a/services/mailer/mail_admin_new_user_test.go b/services/mailer/mail_admin_new_user_test.go index 765c8cb6c9..9273691792 100644 --- a/services/mailer/mail_admin_new_user_test.go +++ b/services/mailer/mail_admin_new_user_test.go @@ -8,10 +8,10 @@ import ( "strconv" "testing" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/mailer/mail_auth_test.go b/services/mailer/mail_auth_test.go index 38e3721a22..e40a0d6fa0 100644 --- a/services/mailer/mail_auth_test.go +++ b/services/mailer/mail_auth_test.go @@ -6,14 +6,14 @@ package mailer_test import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/services/mailer" - user_service "code.gitea.io/gitea/services/user" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" + "forgejo.org/services/mailer" + user_service "forgejo.org/services/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/mailer/mail_comment.go b/services/mailer/mail_comment.go index 1812441d5a..b4ed3145ed 100644 --- a/services/mailer/mail_comment.go +++ b/services/mailer/mail_comment.go @@ -6,12 +6,12 @@ package mailer import ( "context" - activities_model "code.gitea.io/gitea/models/activities" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + activities_model "forgejo.org/models/activities" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) // MailParticipantsComment sends new comment emails to repository watchers and mentioned people. diff --git a/services/mailer/mail_issue.go b/services/mailer/mail_issue.go index 1bb6fdc7a3..b0329caa0b 100644 --- a/services/mailer/mail_issue.go +++ b/services/mailer/mail_issue.go @@ -7,15 +7,15 @@ import ( "context" "fmt" - activities_model "code.gitea.io/gitea/models/activities" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + activities_model "forgejo.org/models/activities" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) func fallbackMailSubject(issue *issues_model.Issue) string { diff --git a/services/mailer/mail_release.go b/services/mailer/mail_release.go index 0b8b97e9cd..0f2ef33fe1 100644 --- a/services/mailer/mail_release.go +++ b/services/mailer/mail_release.go @@ -7,14 +7,14 @@ import ( "bytes" "context" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" ) const ( diff --git a/services/mailer/mail_repo.go b/services/mailer/mail_repo.go index 7003584786..eed650f3ac 100644 --- a/services/mailer/mail_repo.go +++ b/services/mailer/mail_repo.go @@ -8,11 +8,11 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" ) // SendRepoTransferNotifyMail triggers a notification e-mail when a pending repository transfer was created diff --git a/services/mailer/mail_team_invite.go b/services/mailer/mail_team_invite.go index ceecefa50f..a2a871d3c3 100644 --- a/services/mailer/mail_team_invite.go +++ b/services/mailer/mail_team_invite.go @@ -9,12 +9,12 @@ import ( "fmt" "net/url" - org_model "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/translation" + org_model "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/translation" ) const ( diff --git a/services/mailer/mail_test.go b/services/mailer/mail_test.go index 43e5d83890..616eea2d85 100644 --- a/services/mailer/mail_test.go +++ b/services/mailer/mail_test.go @@ -15,15 +15,15 @@ import ( "testing" texttmpl "text/template" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/markup" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/mailer/mailer.go b/services/mailer/mailer.go index 0a723f974a..4561240df5 100644 --- a/services/mailer/mailer.go +++ b/services/mailer/mailer.go @@ -18,14 +18,14 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/modules/base" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + notify_service "forgejo.org/services/notify" ntlmssp "github.com/Azure/go-ntlmssp" "github.com/jaytaylor/html2text" diff --git a/services/mailer/mailer_test.go b/services/mailer/mailer_test.go index 045701f3a5..aef242d908 100644 --- a/services/mailer/mailer_test.go +++ b/services/mailer/mailer_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/mailer/main_test.go b/services/mailer/main_test.go index 908976e7ef..9ef71dbdb3 100644 --- a/services/mailer/main_test.go +++ b/services/mailer/main_test.go @@ -7,13 +7,13 @@ import ( "context" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/templates" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/modules/templates" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" - _ "code.gitea.io/gitea/models/actions" + _ "forgejo.org/models/actions" "github.com/stretchr/testify/assert" ) diff --git a/services/mailer/notify.go b/services/mailer/notify.go index 54ab80aab9..e61ecd0511 100644 --- a/services/mailer/notify.go +++ b/services/mailer/notify.go @@ -7,12 +7,12 @@ import ( "context" "fmt" - activities_model "code.gitea.io/gitea/models/activities" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - notify_service "code.gitea.io/gitea/services/notify" + activities_model "forgejo.org/models/activities" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + notify_service "forgejo.org/services/notify" ) type mailNotifier struct { diff --git a/services/mailer/token/token.go b/services/mailer/token/token.go index 1a52bce803..f3d7286cb0 100644 --- a/services/mailer/token/token.go +++ b/services/mailer/token/token.go @@ -11,8 +11,8 @@ import ( "fmt" "time" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/util" + user_model "forgejo.org/models/user" + "forgejo.org/modules/util" ) // A token is a verifiable container describing an action. diff --git a/services/markup/main_test.go b/services/markup/main_test.go index 89fe3e7e34..1b085b4929 100644 --- a/services/markup/main_test.go +++ b/services/markup/main_test.go @@ -6,7 +6,7 @@ package markup import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/services/markup/processorhelper.go b/services/markup/processorhelper.go index 40bf1d65da..b5fcd78cb7 100644 --- a/services/markup/processorhelper.go +++ b/services/markup/processorhelper.go @@ -7,16 +7,16 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/perm/access" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - gitea_context "code.gitea.io/gitea/services/context" - file_service "code.gitea.io/gitea/services/repository/files" + "forgejo.org/models/perm/access" + "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + gitea_context "forgejo.org/services/context" + file_service "forgejo.org/services/repository/files" ) func ProcessorHelper() *markup.ProcessorHelper { diff --git a/services/markup/processorhelper_test.go b/services/markup/processorhelper_test.go index 4d103048b5..8195451746 100644 --- a/services/markup/processorhelper_test.go +++ b/services/markup/processorhelper_test.go @@ -8,11 +8,11 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/models/user" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/models/user" + gitea_context "forgejo.org/services/context" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/migrations/codebase.go b/services/migrations/codebase.go index 492fc908e9..843df0f973 100644 --- a/services/migrations/codebase.go +++ b/services/migrations/codebase.go @@ -13,10 +13,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/proxy" + "forgejo.org/modules/structs" ) var ( diff --git a/services/migrations/codebase_test.go b/services/migrations/codebase_test.go index fbd4e70143..315c7be709 100644 --- a/services/migrations/codebase_test.go +++ b/services/migrations/codebase_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - base "code.gitea.io/gitea/modules/migration" + base "forgejo.org/modules/migration" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/migrations/common.go b/services/migrations/common.go index d88518899d..ee74461447 100644 --- a/services/migrations/common.go +++ b/services/migrations/common.go @@ -7,10 +7,10 @@ import ( "fmt" "strings" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" + system_model "forgejo.org/models/system" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" ) // WarnAndNotice will log the provided message and send a repository notice diff --git a/services/migrations/dump.go b/services/migrations/dump.go index cb13cd3e5c..cbf6b87668 100644 --- a/services/migrations/dump.go +++ b/services/migrations/dump.go @@ -16,13 +16,13 @@ import ( "strings" "time" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" "github.com/google/uuid" "gopkg.in/yaml.v3" diff --git a/services/migrations/forgejo_downloader.go b/services/migrations/forgejo_downloader.go index 25dbb6ec51..5f809b82be 100644 --- a/services/migrations/forgejo_downloader.go +++ b/services/migrations/forgejo_downloader.go @@ -4,7 +4,7 @@ package migrations import ( - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/structs" ) func init() { diff --git a/services/migrations/forgejo_downloader_test.go b/services/migrations/forgejo_downloader_test.go index 5bd37551cc..db1930ebba 100644 --- a/services/migrations/forgejo_downloader_test.go +++ b/services/migrations/forgejo_downloader_test.go @@ -6,7 +6,7 @@ package migrations import ( "testing" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/structs" "github.com/stretchr/testify/require" ) diff --git a/services/migrations/git.go b/services/migrations/git.go index 22ffd5e765..46710b0abe 100644 --- a/services/migrations/git.go +++ b/services/migrations/git.go @@ -6,7 +6,7 @@ package migrations import ( "context" - base "code.gitea.io/gitea/modules/migration" + base "forgejo.org/modules/migration" ) var _ base.Downloader = &PlainGitDownloader{} diff --git a/services/migrations/gitbucket.go b/services/migrations/gitbucket.go index 4fe9e30a39..b68fc01083 100644 --- a/services/migrations/gitbucket.go +++ b/services/migrations/gitbucket.go @@ -9,9 +9,9 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/structs" ) var ( diff --git a/services/migrations/gitea_downloader.go b/services/migrations/gitea_downloader.go index b42c7aa4da..272a7d379a 100644 --- a/services/migrations/gitea_downloader.go +++ b/services/migrations/gitea_downloader.go @@ -13,9 +13,9 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/structs" gitea_sdk "code.gitea.io/sdk/gitea" ) diff --git a/services/migrations/gitea_downloader_test.go b/services/migrations/gitea_downloader_test.go index b9ddb9b431..b3d49752f3 100644 --- a/services/migrations/gitea_downloader_test.go +++ b/services/migrations/gitea_downloader_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/unittest" - base "code.gitea.io/gitea/modules/migration" + "forgejo.org/models/unittest" + base "forgejo.org/modules/migration" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/migrations/gitea_uploader.go b/services/migrations/gitea_uploader.go index 7bd6538ff2..7edaef5557 100644 --- a/services/migrations/gitea_uploader.go +++ b/services/migrations/gitea_uploader.go @@ -14,26 +14,26 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - base_module "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/label" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/uri" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + base_module "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/label" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/uri" + "forgejo.org/modules/util" + "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" "github.com/google/uuid" ) diff --git a/services/migrations/gitea_uploader_test.go b/services/migrations/gitea_uploader_test.go index e01f4664ba..e07c621acc 100644 --- a/services/migrations/gitea_uploader_test.go +++ b/services/migrations/gitea_uploader_test.go @@ -12,19 +12,19 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/optional" + "forgejo.org/modules/structs" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/migrations/github.go b/services/migrations/github.go index 7025354f77..5052a68114 100644 --- a/services/migrations/github.go +++ b/services/migrations/github.go @@ -14,11 +14,11 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/proxy" + "forgejo.org/modules/structs" "github.com/google/go-github/v64/github" "golang.org/x/oauth2" diff --git a/services/migrations/github_test.go b/services/migrations/github_test.go index 080fd497ca..b1f20c4716 100644 --- a/services/migrations/github_test.go +++ b/services/migrations/github_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/unittest" - base "code.gitea.io/gitea/modules/migration" + "forgejo.org/models/unittest" + base "forgejo.org/modules/migration" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/migrations/gitlab.go b/services/migrations/gitlab.go index 2eb3e6629d..ac0d3bcf7a 100644 --- a/services/migrations/gitlab.go +++ b/services/migrations/gitlab.go @@ -15,12 +15,12 @@ import ( "strings" "time" - issues_model "code.gitea.io/gitea/models/issues" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/structs" + issues_model "forgejo.org/models/issues" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/structs" gitlab "gitlab.com/gitlab-org/api/client-go" ) diff --git a/services/migrations/gitlab_test.go b/services/migrations/gitlab_test.go index f1404d946d..924dab5144 100644 --- a/services/migrations/gitlab_test.go +++ b/services/migrations/gitlab_test.go @@ -12,9 +12,9 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/json" - base "code.gitea.io/gitea/modules/migration" + "forgejo.org/models/unittest" + "forgejo.org/modules/json" + base "forgejo.org/modules/migration" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/migrations/gogs.go b/services/migrations/gogs.go index 1fef4808b0..b6fb8cef0a 100644 --- a/services/migrations/gogs.go +++ b/services/migrations/gogs.go @@ -11,10 +11,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/proxy" + "forgejo.org/modules/structs" "github.com/gogs/go-gogs-client" ) diff --git a/services/migrations/gogs_test.go b/services/migrations/gogs_test.go index 450aeab5ef..7d7f10c2b9 100644 --- a/services/migrations/gogs_test.go +++ b/services/migrations/gogs_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - base "code.gitea.io/gitea/modules/migration" + base "forgejo.org/modules/migration" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/migrations/http_client.go b/services/migrations/http_client.go index 0b997e08f4..26962f2976 100644 --- a/services/migrations/http_client.go +++ b/services/migrations/http_client.go @@ -7,9 +7,9 @@ import ( "crypto/tls" "net/http" - "code.gitea.io/gitea/modules/hostmatcher" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/hostmatcher" + "forgejo.org/modules/proxy" + "forgejo.org/modules/setting" ) // NewMigrationHTTPClient returns a HTTP client for migration diff --git a/services/migrations/main_test.go b/services/migrations/main_test.go index f78d75e4db..17e6505df2 100644 --- a/services/migrations/main_test.go +++ b/services/migrations/main_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/unittest" - base "code.gitea.io/gitea/modules/migration" + "forgejo.org/models/unittest" + base "forgejo.org/modules/migration" "github.com/stretchr/testify/assert" ) diff --git a/services/migrations/migrate.go b/services/migrations/migrate.go index ccb9cb7e98..81d1c203fe 100644 --- a/services/migrations/migrate.go +++ b/services/migrations/migrate.go @@ -12,16 +12,16 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/models" - repo_model "code.gitea.io/gitea/models/repo" - system_model "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/hostmatcher" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models" + repo_model "forgejo.org/models/repo" + system_model "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/modules/hostmatcher" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" ) // MigrateOptions is equal to base.MigrateOptions diff --git a/services/migrations/migrate_test.go b/services/migrations/migrate_test.go index 6e45cbd906..804d01df7a 100644 --- a/services/migrations/migrate_test.go +++ b/services/migrations/migrate_test.go @@ -8,9 +8,9 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "github.com/stretchr/testify/require" ) diff --git a/services/migrations/onedev.go b/services/migrations/onedev.go index e2f7b771f3..a553a4d8f5 100644 --- a/services/migrations/onedev.go +++ b/services/migrations/onedev.go @@ -12,10 +12,10 @@ import ( "strings" "time" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/structs" ) var ( diff --git a/services/migrations/onedev_test.go b/services/migrations/onedev_test.go index 46e3eb8d18..5bb2e2bb5c 100644 --- a/services/migrations/onedev_test.go +++ b/services/migrations/onedev_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - base "code.gitea.io/gitea/modules/migration" + base "forgejo.org/modules/migration" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/migrations/restore.go b/services/migrations/restore.go index e8725bc647..fe2628da52 100644 --- a/services/migrations/restore.go +++ b/services/migrations/restore.go @@ -10,7 +10,7 @@ import ( "path/filepath" "strconv" - base "code.gitea.io/gitea/modules/migration" + base "forgejo.org/modules/migration" "gopkg.in/yaml.v3" ) diff --git a/services/migrations/update.go b/services/migrations/update.go index 4a49206f82..4d497c1e2e 100644 --- a/services/migrations/update.go +++ b/services/migrations/update.go @@ -6,11 +6,11 @@ package migrations import ( "context" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/externalaccount" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/structs" + "forgejo.org/services/externalaccount" ) // UpdateMigrationPosterID updates all migrated repositories' issues and comments posterID diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go index bc2d6711cf..6d871ad5ff 100644 --- a/services/mirror/mirror.go +++ b/services/mirror/mirror.go @@ -7,12 +7,12 @@ import ( "context" "fmt" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" ) // doMirrorSync causes this request to mirror itself diff --git a/services/mirror/mirror_pull.go b/services/mirror/mirror_pull.go index 085995df4f..a63cbcf40c 100644 --- a/services/mirror/mirror_pull.go +++ b/services/mirror/mirror_pull.go @@ -9,21 +9,21 @@ import ( "strings" "time" - repo_model "code.gitea.io/gitea/models/repo" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - giturl "code.gitea.io/gitea/modules/git/url" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/proxy" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - notify_service "code.gitea.io/gitea/services/notify" + repo_model "forgejo.org/models/repo" + system_model "forgejo.org/models/system" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + giturl "forgejo.org/modules/git/url" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/proxy" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + notify_service "forgejo.org/services/notify" ) // gitShortEmptySha Git short empty SHA diff --git a/services/mirror/mirror_push.go b/services/mirror/mirror_push.go index 4b1d7718b6..11b8ad459a 100644 --- a/services/mirror/mirror_push.go +++ b/services/mirror/mirror_push.go @@ -13,17 +13,17 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) var stripExitStatus = regexp.MustCompile(`exit status \d+ - `) diff --git a/services/mirror/notifier.go b/services/mirror/notifier.go index 93d904470d..8f8552f419 100644 --- a/services/mirror/notifier.go +++ b/services/mirror/notifier.go @@ -6,10 +6,10 @@ package mirror import ( "context" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/repository" - notify_service "code.gitea.io/gitea/services/notify" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/repository" + notify_service "forgejo.org/services/notify" ) func init() { diff --git a/services/mirror/queue.go b/services/mirror/queue.go index 0d9a624730..b4869cf8c0 100644 --- a/services/mirror/queue.go +++ b/services/mirror/queue.go @@ -4,10 +4,10 @@ package mirror import ( - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" ) var mirrorQueue *queue.WorkerPoolQueue[*SyncRequest] diff --git a/services/notify/notifier.go b/services/notify/notifier.go index 3230a5e5f5..00f98942d9 100644 --- a/services/notify/notifier.go +++ b/services/notify/notifier.go @@ -6,12 +6,12 @@ package notify import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/repository" + issues_model "forgejo.org/models/issues" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/repository" ) // Notifier defines an interface to notify receiver diff --git a/services/notify/notify.go b/services/notify/notify.go index 5ed63646aa..fb30dfb609 100644 --- a/services/notify/notify.go +++ b/services/notify/notify.go @@ -6,13 +6,13 @@ package notify import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" + issues_model "forgejo.org/models/issues" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" ) var notifiers []Notifier diff --git a/services/notify/null.go b/services/notify/null.go index 894d118eac..7182e69abb 100644 --- a/services/notify/null.go +++ b/services/notify/null.go @@ -6,12 +6,12 @@ package notify import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/repository" + issues_model "forgejo.org/models/issues" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/repository" ) // NullNotifier implements a blank notifier diff --git a/services/org/org.go b/services/org/org.go index dca7794b47..b1bbe43046 100644 --- a/services/org/org.go +++ b/services/org/org.go @@ -7,15 +7,15 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" + repo_service "forgejo.org/services/repository" ) // DeleteOrganization completely and permanently deletes everything of organization. diff --git a/services/org/org_test.go b/services/org/org_test.go index 07358438f6..b0f591c745 100644 --- a/services/org/org_test.go +++ b/services/org/org_test.go @@ -6,11 +6,11 @@ package org import ( "testing" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + "forgejo.org/models" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/org/repo.go b/services/org/repo.go index 78a829ef25..33f55b1191 100644 --- a/services/org/repo.go +++ b/services/org/repo.go @@ -7,10 +7,10 @@ import ( "context" "errors" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" ) // TeamAddRepository adds new repository to team of organization. diff --git a/services/org/repo_test.go b/services/org/repo_test.go index 2ddb8f9045..c51cbf4c28 100644 --- a/services/org/repo_test.go +++ b/services/org/repo_test.go @@ -6,10 +6,10 @@ package org import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/require" ) diff --git a/services/org/team_invite.go b/services/org/team_invite.go index 3f28044dbf..9c5da25522 100644 --- a/services/org/team_invite.go +++ b/services/org/team_invite.go @@ -6,9 +6,9 @@ package org import ( "context" - org_model "code.gitea.io/gitea/models/organization" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/services/mailer" + org_model "forgejo.org/models/organization" + user_model "forgejo.org/models/user" + "forgejo.org/services/mailer" ) // CreateTeamInvite make a persistent invite in db and mail it diff --git a/services/packages/alpine/repository.go b/services/packages/alpine/repository.go index 92f475bb7b..9435887a46 100644 --- a/services/packages/alpine/repository.go +++ b/services/packages/alpine/repository.go @@ -20,14 +20,14 @@ import ( "io" "strings" - packages_model "code.gitea.io/gitea/models/packages" - alpine_model "code.gitea.io/gitea/models/packages/alpine" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - packages_module "code.gitea.io/gitea/modules/packages" - alpine_module "code.gitea.io/gitea/modules/packages/alpine" - "code.gitea.io/gitea/modules/util" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + alpine_model "forgejo.org/models/packages/alpine" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + packages_module "forgejo.org/modules/packages" + alpine_module "forgejo.org/modules/packages/alpine" + "forgejo.org/modules/util" + packages_service "forgejo.org/services/packages" ) const ( diff --git a/services/packages/alt/repository.go b/services/packages/alt/repository.go index f49c435e64..317862da9d 100644 --- a/services/packages/alt/repository.go +++ b/services/packages/alt/repository.go @@ -14,15 +14,15 @@ import ( "path" "time" - packages_model "code.gitea.io/gitea/models/packages" - alt_model "code.gitea.io/gitea/models/packages/alt" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/json" - packages_module "code.gitea.io/gitea/modules/packages" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" - "code.gitea.io/gitea/modules/setting" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + alt_model "forgejo.org/models/packages/alt" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/json" + packages_module "forgejo.org/modules/packages" + rpm_module "forgejo.org/modules/packages/rpm" + "forgejo.org/modules/setting" + packages_service "forgejo.org/services/packages" "github.com/ulikunitz/xz" ) diff --git a/services/packages/arch/repository.go b/services/packages/arch/repository.go index e681f24561..2a865e6dbd 100644 --- a/services/packages/arch/repository.go +++ b/services/packages/arch/repository.go @@ -16,14 +16,14 @@ import ( "sort" "strings" - packages_model "code.gitea.io/gitea/models/packages" - user_model "code.gitea.io/gitea/models/user" - packages_module "code.gitea.io/gitea/modules/packages" - arch_module "code.gitea.io/gitea/modules/packages/arch" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/sync" - "code.gitea.io/gitea/modules/util" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + user_model "forgejo.org/models/user" + packages_module "forgejo.org/modules/packages" + arch_module "forgejo.org/modules/packages/arch" + "forgejo.org/modules/setting" + "forgejo.org/modules/sync" + "forgejo.org/modules/util" + packages_service "forgejo.org/services/packages" "github.com/ProtonMail/go-crypto/openpgp" "github.com/ProtonMail/go-crypto/openpgp/armor" diff --git a/services/packages/auth.go b/services/packages/auth.go index c5bf5af532..ab2c347bc9 100644 --- a/services/packages/auth.go +++ b/services/packages/auth.go @@ -9,10 +9,10 @@ import ( "strings" "time" - auth_model "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + auth_model "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" "github.com/golang-jwt/jwt/v5" ) diff --git a/services/packages/cargo/index.go b/services/packages/cargo/index.go index 59823cd3de..9afcd79571 100644 --- a/services/packages/cargo/index.go +++ b/services/packages/cargo/index.go @@ -13,17 +13,17 @@ import ( "strconv" "time" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - cargo_module "code.gitea.io/gitea/modules/packages/cargo" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + cargo_module "forgejo.org/modules/packages/cargo" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" ) const ( diff --git a/services/packages/cleanup/cleanup.go b/services/packages/cleanup/cleanup.go index d84bdf1b03..7e821e2630 100644 --- a/services/packages/cleanup/cleanup.go +++ b/services/packages/cleanup/cleanup.go @@ -8,20 +8,20 @@ import ( "fmt" "time" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - packages_service "code.gitea.io/gitea/services/packages" - alpine_service "code.gitea.io/gitea/services/packages/alpine" - alt_service "code.gitea.io/gitea/services/packages/alt" - arch_service "code.gitea.io/gitea/services/packages/arch" - cargo_service "code.gitea.io/gitea/services/packages/cargo" - container_service "code.gitea.io/gitea/services/packages/container" - debian_service "code.gitea.io/gitea/services/packages/debian" - rpm_service "code.gitea.io/gitea/services/packages/rpm" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + packages_service "forgejo.org/services/packages" + alpine_service "forgejo.org/services/packages/alpine" + alt_service "forgejo.org/services/packages/alt" + arch_service "forgejo.org/services/packages/arch" + cargo_service "forgejo.org/services/packages/cargo" + container_service "forgejo.org/services/packages/container" + debian_service "forgejo.org/services/packages/debian" + rpm_service "forgejo.org/services/packages/rpm" ) // Task method to execute cleanup rules and cleanup expired package data diff --git a/services/packages/cleanup/cleanup_sha256_test.go b/services/packages/cleanup/cleanup_sha256_test.go index 41dde28248..f26b98b4b0 100644 --- a/services/packages/cleanup/cleanup_sha256_test.go +++ b/services/packages/cleanup/cleanup_sha256_test.go @@ -7,15 +7,15 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - container_module "code.gitea.io/gitea/modules/packages/container" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/timeutil" - container_service "code.gitea.io/gitea/services/packages/container" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + container_module "forgejo.org/modules/packages/container" + "forgejo.org/modules/test" + "forgejo.org/modules/timeutil" + container_service "forgejo.org/services/packages/container" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/packages/cleanup/main_test.go b/services/packages/cleanup/main_test.go index ded3d76c83..e9135c147a 100644 --- a/services/packages/cleanup/main_test.go +++ b/services/packages/cleanup/main_test.go @@ -6,7 +6,7 @@ package container import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/services/packages/container/blob_uploader.go b/services/packages/container/blob_uploader.go index bae2e2d6af..cc009d1f5c 100644 --- a/services/packages/container/blob_uploader.go +++ b/services/packages/container/blob_uploader.go @@ -9,10 +9,10 @@ import ( "io" "os" - packages_model "code.gitea.io/gitea/models/packages" - packages_module "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + packages_model "forgejo.org/models/packages" + packages_module "forgejo.org/modules/packages" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" ) var ( diff --git a/services/packages/container/cleanup.go b/services/packages/container/cleanup.go index b5563c688f..a4ae7118f5 100644 --- a/services/packages/container/cleanup.go +++ b/services/packages/container/cleanup.go @@ -7,11 +7,11 @@ import ( "context" "time" - packages_model "code.gitea.io/gitea/models/packages" - container_model "code.gitea.io/gitea/models/packages/container" - "code.gitea.io/gitea/modules/optional" - container_module "code.gitea.io/gitea/modules/packages/container" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + container_model "forgejo.org/models/packages/container" + "forgejo.org/modules/optional" + container_module "forgejo.org/modules/packages/container" + packages_service "forgejo.org/services/packages" digest "github.com/opencontainers/go-digest" ) diff --git a/services/packages/container/cleanup_sha256.go b/services/packages/container/cleanup_sha256.go index 16afc74b18..5d0d02c22d 100644 --- a/services/packages/container/cleanup_sha256.go +++ b/services/packages/container/cleanup_sha256.go @@ -8,12 +8,12 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - container_module "code.gitea.io/gitea/modules/packages/container" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + container_module "forgejo.org/modules/packages/container" + "forgejo.org/modules/timeutil" ) var ( diff --git a/services/packages/container/common.go b/services/packages/container/common.go index 5a14ed5b7a..758ef51721 100644 --- a/services/packages/container/common.go +++ b/services/packages/container/common.go @@ -7,9 +7,9 @@ import ( "context" "strings" - packages_model "code.gitea.io/gitea/models/packages" - user_model "code.gitea.io/gitea/models/user" - container_module "code.gitea.io/gitea/modules/packages/container" + packages_model "forgejo.org/models/packages" + user_model "forgejo.org/models/user" + container_module "forgejo.org/modules/packages/container" ) // UpdateRepositoryNames updates the repository name property for all packages of the specific owner diff --git a/services/packages/debian/repository.go b/services/packages/debian/repository.go index e400f1e924..a8a401662e 100644 --- a/services/packages/debian/repository.go +++ b/services/packages/debian/repository.go @@ -14,14 +14,14 @@ import ( "strings" "time" - packages_model "code.gitea.io/gitea/models/packages" - debian_model "code.gitea.io/gitea/models/packages/debian" - user_model "code.gitea.io/gitea/models/user" - packages_module "code.gitea.io/gitea/modules/packages" - debian_module "code.gitea.io/gitea/modules/packages/debian" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + debian_model "forgejo.org/models/packages/debian" + user_model "forgejo.org/models/user" + packages_module "forgejo.org/modules/packages" + debian_module "forgejo.org/modules/packages/debian" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + packages_service "forgejo.org/services/packages" "github.com/ProtonMail/go-crypto/openpgp" "github.com/ProtonMail/go-crypto/openpgp/armor" diff --git a/services/packages/package_update.go b/services/packages/package_update.go index 4a22ee7a62..7fa938e260 100644 --- a/services/packages/package_update.go +++ b/services/packages/package_update.go @@ -7,13 +7,13 @@ import ( "context" "fmt" - org_model "code.gitea.io/gitea/models/organization" - packages_model "code.gitea.io/gitea/models/packages" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/util" + org_model "forgejo.org/models/organization" + packages_model "forgejo.org/models/packages" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/util" ) func LinkToRepository(ctx context.Context, pkg *packages_model.Package, repo *repo_model.Repository, doer *user_model.User) error { diff --git a/services/packages/packages.go b/services/packages/packages.go index bf89b6ad35..1232e5914f 100644 --- a/services/packages/packages.go +++ b/services/packages/packages.go @@ -12,17 +12,17 @@ import ( "net/url" "strings" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - packages_module "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + packages_module "forgejo.org/modules/packages" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + notify_service "forgejo.org/services/notify" ) var ( diff --git a/services/packages/rpm/repository.go b/services/packages/rpm/repository.go index 705876e5c0..961de7828f 100644 --- a/services/packages/rpm/repository.go +++ b/services/packages/rpm/repository.go @@ -16,15 +16,15 @@ import ( "strings" "time" - packages_model "code.gitea.io/gitea/models/packages" - rpm_model "code.gitea.io/gitea/models/packages/rpm" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" - "code.gitea.io/gitea/modules/util" - packages_service "code.gitea.io/gitea/services/packages" + packages_model "forgejo.org/models/packages" + rpm_model "forgejo.org/models/packages/rpm" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + rpm_module "forgejo.org/modules/packages/rpm" + "forgejo.org/modules/util" + packages_service "forgejo.org/services/packages" "github.com/ProtonMail/go-crypto/openpgp" "github.com/ProtonMail/go-crypto/openpgp/armor" diff --git a/services/pull/check.go b/services/pull/check.go index 2d91ed07f5..d038b3d829 100644 --- a/services/pull/check.go +++ b/services/pull/check.go @@ -11,23 +11,23 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/timeutil" - asymkey_service "code.gitea.io/gitea/services/asymkey" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/queue" + "forgejo.org/modules/timeutil" + asymkey_service "forgejo.org/services/asymkey" + notify_service "forgejo.org/services/notify" ) // prPatchCheckerQueue represents a queue to handle update pull request tests diff --git a/services/pull/check_test.go b/services/pull/check_test.go index dfb8ff708b..b965d90236 100644 --- a/services/pull/check_test.go +++ b/services/pull/check_test.go @@ -9,11 +9,11 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/pull/comment.go b/services/pull/comment.go index 53587d4f54..25542daa9f 100644 --- a/services/pull/comment.go +++ b/services/pull/comment.go @@ -6,11 +6,11 @@ package pull import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/json" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/json" ) // getCommitIDsFromRepo get commit IDs from repo in between oldCommitID and newCommitID diff --git a/services/pull/commit_status.go b/services/pull/commit_status.go index 2c77d9cf4e..3c864c8ef2 100644 --- a/services/pull/commit_status.go +++ b/services/pull/commit_status.go @@ -9,13 +9,13 @@ import ( "errors" "fmt" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/structs" "github.com/gobwas/glob" ) diff --git a/services/pull/commit_status_test.go b/services/pull/commit_status_test.go index 592acdd55c..593c88fb19 100644 --- a/services/pull/commit_status_test.go +++ b/services/pull/commit_status_test.go @@ -7,8 +7,8 @@ package pull import ( "testing" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/modules/structs" + git_model "forgejo.org/models/git" + "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" ) diff --git a/services/pull/edits.go b/services/pull/edits.go index c7550dcb07..dbf08e6851 100644 --- a/services/pull/edits.go +++ b/services/pull/edits.go @@ -8,10 +8,10 @@ import ( "context" "errors" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - unit_model "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + unit_model "forgejo.org/models/unit" + user_model "forgejo.org/models/user" ) var ErrUserHasNoPermissionForAction = errors.New("user not allowed to do this action") diff --git a/services/pull/lfs.go b/services/pull/lfs.go index ed03583d4f..8d9f401641 100644 --- a/services/pull/lfs.go +++ b/services/pull/lfs.go @@ -11,12 +11,12 @@ import ( "strconv" "sync" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/modules/git/pipeline" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/modules/git/pipeline" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" ) // LFSPush pushes lfs objects referred to in new commits in the head repository from the base repository diff --git a/services/pull/main_test.go b/services/pull/main_test.go index 4bcb50fb96..5262b5be50 100644 --- a/services/pull/main_test.go +++ b/services/pull/main_test.go @@ -7,10 +7,10 @@ package pull import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/services/pull/merge.go b/services/pull/merge.go index a1585e64ab..9b0d632377 100644 --- a/services/pull/merge.go +++ b/services/pull/merge.go @@ -14,23 +14,23 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/references" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - issue_service "code.gitea.io/gitea/services/issue" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/references" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + issue_service "forgejo.org/services/issue" + notify_service "forgejo.org/services/notify" ) // getMergeMessage composes the message used when merging a pull request. diff --git a/services/pull/merge_ff_only.go b/services/pull/merge_ff_only.go index f57c732104..1e1c337889 100644 --- a/services/pull/merge_ff_only.go +++ b/services/pull/merge_ff_only.go @@ -4,9 +4,9 @@ package pull import ( - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/log" ) // doMergeStyleFastForwardOnly merges the tracking into the current HEAD - which is assumed to be staging branch (equal to the pr.BaseBranch) diff --git a/services/pull/merge_merge.go b/services/pull/merge_merge.go index bf56c071db..713e1f175d 100644 --- a/services/pull/merge_merge.go +++ b/services/pull/merge_merge.go @@ -4,9 +4,9 @@ package pull import ( - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/log" ) // doMergeStyleMerge merges the tracking branch into the current HEAD - which is assumed to be the staging branch (equal to the pr.BaseBranch) diff --git a/services/pull/merge_prepare.go b/services/pull/merge_prepare.go index 88f6c037eb..fb09515dbd 100644 --- a/services/pull/merge_prepare.go +++ b/services/pull/merge_prepare.go @@ -14,13 +14,13 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - asymkey_service "code.gitea.io/gitea/services/asymkey" + "forgejo.org/models" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + asymkey_service "forgejo.org/services/asymkey" ) type mergeContext struct { diff --git a/services/pull/merge_rebase.go b/services/pull/merge_rebase.go index ecf376220e..088934cdfb 100644 --- a/services/pull/merge_rebase.go +++ b/services/pull/merge_rebase.go @@ -7,10 +7,10 @@ import ( "fmt" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" ) // getRebaseAmendMessage composes the message to amend commits in rebase merge of a pull request. diff --git a/services/pull/merge_squash.go b/services/pull/merge_squash.go index 6dda46eaec..1c6f734a25 100644 --- a/services/pull/merge_squash.go +++ b/services/pull/merge_squash.go @@ -7,13 +7,13 @@ import ( "fmt" "strings" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" ) // doMergeStyleSquash gets a commit author signature for squash commits diff --git a/services/pull/patch.go b/services/pull/patch.go index e90b4bdbbe..35d1b101e2 100644 --- a/services/pull/patch.go +++ b/services/pull/patch.go @@ -13,18 +13,18 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unit" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/gobwas/glob" ) diff --git a/services/pull/patch_unmerged.go b/services/pull/patch_unmerged.go index c60c48d923..caa0318c48 100644 --- a/services/pull/patch_unmerged.go +++ b/services/pull/patch_unmerged.go @@ -13,8 +13,8 @@ import ( "strconv" "strings" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/git" + "forgejo.org/modules/log" ) // lsFileLine is a Quadruplet struct (+error) representing a partially parsed line from ls-files diff --git a/services/pull/pull.go b/services/pull/pull.go index 6af7d8ba0c..18f63cf95d 100644 --- a/services/pull/pull.go +++ b/services/pull/pull.go @@ -13,27 +13,27 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/sync" - "code.gitea.io/gitea/modules/util" - gitea_context "code.gitea.io/gitea/services/context" - issue_service "code.gitea.io/gitea/services/issue" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/sync" + "forgejo.org/modules/util" + gitea_context "forgejo.org/services/context" + issue_service "forgejo.org/services/issue" + notify_service "forgejo.org/services/notify" ) // TODO: use clustered lock (unique queue? or *abuse* cache) diff --git a/services/pull/pull_test.go b/services/pull/pull_test.go index c51619e7f6..010b7a6404 100644 --- a/services/pull/pull_test.go +++ b/services/pull/pull_test.go @@ -7,13 +7,13 @@ package pull import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/pull/review.go b/services/pull/review.go index 927c43150b..d61d9623b6 100644 --- a/services/pull/review.go +++ b/services/pull/review.go @@ -11,17 +11,17 @@ import ( "regexp" "strings" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + notify_service "forgejo.org/services/notify" ) var notEnoughLines = regexp.MustCompile(`fatal: file .* has only \d+ lines?`) diff --git a/services/pull/review_test.go b/services/pull/review_test.go index 4cb3ad007c..0d9fe7f902 100644 --- a/services/pull/review_test.go +++ b/services/pull/review_test.go @@ -6,11 +6,11 @@ package pull_test import ( "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - pull_service "code.gitea.io/gitea/services/pull" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + pull_service "forgejo.org/services/pull" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/pull/temp_repo.go b/services/pull/temp_repo.go index 36bdbde55c..1805ffc527 100644 --- a/services/pull/temp_repo.go +++ b/services/pull/temp_repo.go @@ -11,12 +11,12 @@ import ( "path/filepath" "strings" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" ) // Temporary repos created here use standard branch names to help simplify diff --git a/services/pull/update.go b/services/pull/update.go index dbc1b711e2..1b4b6b039d 100644 --- a/services/pull/update.go +++ b/services/pull/update.go @@ -7,15 +7,15 @@ import ( "context" "fmt" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" ) // Update updates pull request with base branch. diff --git a/services/pull/update_rebase.go b/services/pull/update_rebase.go index 3e2a7be132..b12613985a 100644 --- a/services/pull/update_rebase.go +++ b/services/pull/update_rebase.go @@ -8,13 +8,13 @@ import ( "fmt" "strings" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" ) // updateHeadByRebaseOnToBase handles updating a PR's head branch by rebasing it on the PR current base branch diff --git a/services/release/release.go b/services/release/release.go index b52e4b124e..f0682c4dca 100644 --- a/services/release/release.go +++ b/services/release/release.go @@ -9,22 +9,22 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/attachment" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" + "forgejo.org/modules/storage" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/services/attachment" + notify_service "forgejo.org/services/notify" ) type AttachmentChange struct { diff --git a/services/release/release_test.go b/services/release/release_test.go index 5a22c473cf..66106eb606 100644 --- a/services/release/release_test.go +++ b/services/release/release_test.go @@ -8,16 +8,16 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/services/attachment" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/services/attachment" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/release/tag.go b/services/release/tag.go index dae2b70f76..e1608d1897 100644 --- a/services/release/tag.go +++ b/services/release/tag.go @@ -8,12 +8,12 @@ import ( "errors" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" - repo_module "code.gitea.io/gitea/modules/repository" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" + repo_module "forgejo.org/modules/repository" "xorm.io/builder" ) diff --git a/services/remote/promote.go b/services/remote/promote.go index eb41ace462..26a54fb635 100644 --- a/services/remote/promote.go +++ b/services/remote/promote.go @@ -6,12 +6,12 @@ package remote import ( "context" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/services/auth/source/oauth2" - remote_source "code.gitea.io/gitea/services/auth/source/remote" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + "forgejo.org/services/auth/source/oauth2" + remote_source "forgejo.org/services/auth/source/remote" ) type Reason int diff --git a/services/repository/adopt.go b/services/repository/adopt.go index 3d6fe71a09..3651b018e6 100644 --- a/services/repository/adopt.go +++ b/services/repository/adopt.go @@ -11,19 +11,19 @@ import ( "path/filepath" "strings" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + notify_service "forgejo.org/services/notify" "github.com/gobwas/glob" ) diff --git a/services/repository/adopt_test.go b/services/repository/adopt_test.go index 71fb1fc885..a66b4c5ac0 100644 --- a/services/repository/adopt_test.go +++ b/services/repository/adopt_test.go @@ -8,11 +8,11 @@ import ( "path" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/archiver/archiver.go b/services/repository/archiver/archiver.go index 279067c002..cffb07210f 100644 --- a/services/repository/archiver/archiver.go +++ b/services/repository/archiver/archiver.go @@ -12,16 +12,16 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" ) // ArchiveRequest defines the parameters of an archive request, which notably diff --git a/services/repository/archiver/archiver_test.go b/services/repository/archiver/archiver_test.go index e7a2422e55..ec4da2404f 100644 --- a/services/repository/archiver/archiver_test.go +++ b/services/repository/archiver/archiver_test.go @@ -7,13 +7,13 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/services/contexttest" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/avatar.go b/services/repository/avatar.go index 32940a7aa3..a1cd3228df 100644 --- a/services/repository/avatar.go +++ b/services/repository/avatar.go @@ -9,11 +9,11 @@ import ( "io" "strconv" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/avatar" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/storage" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/avatar" + "forgejo.org/modules/log" + "forgejo.org/modules/storage" ) // UploadAvatar saves custom avatar for repository. diff --git a/services/repository/avatar_test.go b/services/repository/avatar_test.go index b3c498dfc8..e5fcf7f239 100644 --- a/services/repository/avatar_test.go +++ b/services/repository/avatar_test.go @@ -9,10 +9,10 @@ import ( "image/png" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/avatar" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/avatar" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/branch.go b/services/repository/branch.go index 8e1a6cd27f..689f35803d 100644 --- a/services/repository/branch.go +++ b/services/repository/branch.go @@ -9,28 +9,28 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/queue" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" - notify_service "code.gitea.io/gitea/services/notify" - pull_service "code.gitea.io/gitea/services/pull" - files_service "code.gitea.io/gitea/services/repository/files" + "forgejo.org/models" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/queue" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" + notify_service "forgejo.org/services/notify" + pull_service "forgejo.org/services/pull" + files_service "forgejo.org/services/repository/files" "xorm.io/builder" ) diff --git a/services/repository/cache.go b/services/repository/cache.go index b0811a99fc..cd5b95afa3 100644 --- a/services/repository/cache.go +++ b/services/repository/cache.go @@ -6,9 +6,9 @@ package repository import ( "context" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" ) // CacheRef cachhe last commit information of the branch or the tag diff --git a/services/repository/check.go b/services/repository/check.go index 5cdcc14679..7e680f3c58 100644 --- a/services/repository/check.go +++ b/services/repository/check.go @@ -9,14 +9,14 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - system_model "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + system_model "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/util" "xorm.io/builder" ) diff --git a/services/repository/collaboration.go b/services/repository/collaboration.go index dccc124748..7a0d7edb7f 100644 --- a/services/repository/collaboration.go +++ b/services/repository/collaboration.go @@ -7,10 +7,10 @@ package repository import ( "context" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models" + "forgejo.org/models/db" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" ) // DeleteCollaboration removes collaboration relation between the user and repository. diff --git a/services/repository/collaboration_test.go b/services/repository/collaboration_test.go index c087018be4..b27b91be23 100644 --- a/services/repository/collaboration_test.go +++ b/services/repository/collaboration_test.go @@ -6,9 +6,9 @@ package repository import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/require" ) diff --git a/services/repository/commit.go b/services/repository/commit.go index e8c0262ef4..0ff4ea701e 100644 --- a/services/repository/commit.go +++ b/services/repository/commit.go @@ -7,8 +7,8 @@ import ( "context" "fmt" - "code.gitea.io/gitea/modules/util" - gitea_ctx "code.gitea.io/gitea/services/context" + "forgejo.org/modules/util" + gitea_ctx "forgejo.org/services/context" ) type ContainedLinks struct { // TODO: better name? diff --git a/services/repository/commitstatus/commitstatus.go b/services/repository/commitstatus/commitstatus.go index 635b0b108e..03a62d0410 100644 --- a/services/repository/commitstatus/commitstatus.go +++ b/services/repository/commitstatus/commitstatus.go @@ -9,17 +9,17 @@ import ( "fmt" "slices" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - shared_automerge "code.gitea.io/gitea/services/shared/automerge" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + shared_automerge "forgejo.org/services/shared/automerge" ) func getCacheKey(repoID int64, brancheName string) string { diff --git a/services/repository/contributors_graph.go b/services/repository/contributors_graph.go index 48871813bd..ad4cc400cb 100644 --- a/services/repository/contributors_graph.go +++ b/services/repository/contributors_graph.go @@ -14,16 +14,16 @@ import ( "sync" "time" - "code.gitea.io/gitea/models/avatars" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/avatars" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" "code.forgejo.org/go-chi/cache" ) diff --git a/services/repository/contributors_graph_test.go b/services/repository/contributors_graph_test.go index c62bef25a1..927c950bec 100644 --- a/services/repository/contributors_graph_test.go +++ b/services/repository/contributors_graph_test.go @@ -8,12 +8,12 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/test" "code.forgejo.org/go-chi/cache" "github.com/stretchr/testify/assert" diff --git a/services/repository/create.go b/services/repository/create.go index 8a1118cc2b..4491b12497 100644 --- a/services/repository/create.go +++ b/services/repository/create.go @@ -12,18 +12,18 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/options" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/templates/vars" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/options" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/templates/vars" + "forgejo.org/modules/util" ) // CreateRepoOptions contains the create repository options diff --git a/services/repository/create_test.go b/services/repository/create_test.go index 9cde285181..7eb3c0f805 100644 --- a/services/repository/create_test.go +++ b/services/repository/create_test.go @@ -7,13 +7,13 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/delete.go b/services/repository/delete.go index 09213e5c65..7c83ba12cd 100644 --- a/services/repository/delete.go +++ b/services/repository/delete.go @@ -7,29 +7,29 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models" - actions_model "code.gitea.io/gitea/models/actions" - activities_model "code.gitea.io/gitea/models/activities" - admin_model "code.gitea.io/gitea/models/admin" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - packages_model "code.gitea.io/gitea/models/packages" - access_model "code.gitea.io/gitea/models/perm/access" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - secret_model "code.gitea.io/gitea/models/secret" - system_model "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/models/webhook" - actions_module "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - federation_service "code.gitea.io/gitea/services/federation" + "forgejo.org/models" + actions_model "forgejo.org/models/actions" + activities_model "forgejo.org/models/activities" + admin_model "forgejo.org/models/admin" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + packages_model "forgejo.org/models/packages" + access_model "forgejo.org/models/perm/access" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + secret_model "forgejo.org/models/secret" + system_model "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/models/webhook" + actions_module "forgejo.org/modules/actions" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + federation_service "forgejo.org/services/federation" "xorm.io/builder" ) diff --git a/services/repository/files/cherry_pick.go b/services/repository/files/cherry_pick.go index 451a182155..b6d54c4086 100644 --- a/services/repository/files/cherry_pick.go +++ b/services/repository/files/cherry_pick.go @@ -8,13 +8,13 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/pull" + "forgejo.org/models" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/structs" + "forgejo.org/services/pull" ) // CherryPick cherrypicks or reverts a commit to the given repository diff --git a/services/repository/files/commit.go b/services/repository/files/commit.go index e0dad29273..0c0671429b 100644 --- a/services/repository/files/commit.go +++ b/services/repository/files/commit.go @@ -6,10 +6,10 @@ package files import ( "context" - asymkey_model "code.gitea.io/gitea/models/asymkey" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/structs" + asymkey_model "forgejo.org/models/asymkey" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/structs" ) // CountDivergingCommits determines how many commits a branch is ahead or behind the repository's base branch diff --git a/services/repository/files/content.go b/services/repository/files/content.go index 32517e8d91..3eb3049f12 100644 --- a/services/repository/files/content.go +++ b/services/repository/files/content.go @@ -10,13 +10,13 @@ import ( "path" "strings" - "code.gitea.io/gitea/models" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" ) // ContentType repo content type diff --git a/services/repository/files/content_test.go b/services/repository/files/content_test.go index f5e2b84690..ca2f861c0b 100644 --- a/services/repository/files/content_test.go +++ b/services/repository/files/content_test.go @@ -6,14 +6,14 @@ package files import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/gitrepo" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/gitrepo" + api "forgejo.org/modules/structs" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/files/diff.go b/services/repository/files/diff.go index bf8b938e21..354a343d12 100644 --- a/services/repository/files/diff.go +++ b/services/repository/files/diff.go @@ -7,8 +7,8 @@ import ( "context" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/services/gitdiff" + repo_model "forgejo.org/models/repo" + "forgejo.org/services/gitdiff" ) // GetDiffPreview produces and returns diff result of a file which is not yet committed. diff --git a/services/repository/files/diff_test.go b/services/repository/files/diff_test.go index 95de10e07e..d6265273c7 100644 --- a/services/repository/files/diff_test.go +++ b/services/repository/files/diff_test.go @@ -6,12 +6,12 @@ package files import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/services/contexttest" - "code.gitea.io/gitea/services/gitdiff" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/json" + "forgejo.org/services/contexttest" + "forgejo.org/services/gitdiff" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/files/file.go b/services/repository/files/file.go index 7884d880e0..810c60163d 100644 --- a/services/repository/files/file.go +++ b/services/repository/files/file.go @@ -10,11 +10,11 @@ import ( "strings" "time" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" ) func GetFilesResponseFromCommit(ctx context.Context, repo *repo_model.Repository, commit *git.Commit, branch string, treeNames []string) (*api.FilesResponse, error) { diff --git a/services/repository/files/patch.go b/services/repository/files/patch.go index e5f7e2af96..5b1dd65b5a 100644 --- a/services/repository/files/patch.go +++ b/services/repository/files/patch.go @@ -8,15 +8,15 @@ import ( "fmt" "strings" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/structs" - asymkey_service "code.gitea.io/gitea/services/asymkey" + "forgejo.org/models" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/structs" + asymkey_service "forgejo.org/services/asymkey" ) // ApplyDiffPatchOptions holds the repository diff patch update options diff --git a/services/repository/files/temp_repo.go b/services/repository/files/temp_repo.go index 30d95ba9ab..b3aadbc6cb 100644 --- a/services/repository/files/temp_repo.go +++ b/services/repository/files/temp_repo.go @@ -13,15 +13,15 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - asymkey_service "code.gitea.io/gitea/services/asymkey" - "code.gitea.io/gitea/services/gitdiff" + "forgejo.org/models" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + asymkey_service "forgejo.org/services/asymkey" + "forgejo.org/services/gitdiff" ) // TemporaryUploadRepository is a type to wrap our upload repositories as a shallow clone diff --git a/services/repository/files/temp_repo_test.go b/services/repository/files/temp_repo_test.go index e7d85ea3cc..852e762267 100644 --- a/services/repository/files/temp_repo_test.go +++ b/services/repository/files/temp_repo_test.go @@ -6,10 +6,10 @@ package files import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" "github.com/stretchr/testify/require" ) diff --git a/services/repository/files/tree.go b/services/repository/files/tree.go index e3a7f3b8b0..1e575f95e8 100644 --- a/services/repository/files/tree.go +++ b/services/repository/files/tree.go @@ -8,11 +8,11 @@ import ( "fmt" "net/url" - "code.gitea.io/gitea/models" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" + "forgejo.org/models" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" ) // GetTreeBySHA get the GitTreeResponse of a repository using a sha hash. diff --git a/services/repository/files/tree_test.go b/services/repository/files/tree_test.go index 9e5c5c1701..7865fcf2e2 100644 --- a/services/repository/files/tree_test.go +++ b/services/repository/files/tree_test.go @@ -6,9 +6,9 @@ package files import ( "testing" - "code.gitea.io/gitea/models/unittest" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/contexttest" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" + "forgejo.org/services/contexttest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/files/update.go b/services/repository/files/update.go index d6025b6ced..5e8834c6de 100644 --- a/services/repository/files/update.go +++ b/services/repository/files/update.go @@ -11,17 +11,17 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - asymkey_service "code.gitea.io/gitea/services/asymkey" + "forgejo.org/models" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + asymkey_service "forgejo.org/services/asymkey" ) // IdentityOptions for a person's identity like an author or committer diff --git a/services/repository/files/upload.go b/services/repository/files/upload.go index 1330116889..6359087e88 100644 --- a/services/repository/files/upload.go +++ b/services/repository/files/upload.go @@ -10,12 +10,12 @@ import ( "path" "strings" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/setting" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/lfs" + "forgejo.org/modules/setting" ) // UploadRepoFileOptions contains the uploaded repository file options diff --git a/services/repository/fork.go b/services/repository/fork.go index 0378f7bae6..9d15b6207d 100644 --- a/services/repository/fork.go +++ b/services/repository/fork.go @@ -9,17 +9,17 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/structs" + "forgejo.org/modules/util" + notify_service "forgejo.org/services/notify" ) // ErrForkAlreadyExist represents a "ForkAlreadyExist" kind of error. diff --git a/services/repository/fork_test.go b/services/repository/fork_test.go index 2e1e72aaad..227dd1850e 100644 --- a/services/repository/fork_test.go +++ b/services/repository/fork_test.go @@ -6,11 +6,11 @@ package repository import ( "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/generate.go b/services/repository/generate.go index 4a312a33c3..9aeb057c3d 100644 --- a/services/repository/generate.go +++ b/services/repository/generate.go @@ -16,14 +16,14 @@ import ( "strings" "time" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/util" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/util" "github.com/gobwas/glob" "github.com/huandu/xstrings" diff --git a/services/repository/gitgraph/graph.go b/services/repository/gitgraph/graph.go index 4db5598015..bf15baed2a 100644 --- a/services/repository/gitgraph/graph.go +++ b/services/repository/gitgraph/graph.go @@ -10,8 +10,8 @@ import ( "os" "strings" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" ) // GetCommitGraph return a list of commit (GraphItems) from all branches diff --git a/services/repository/gitgraph/graph_models.go b/services/repository/gitgraph/graph_models.go index 4e94468205..20107cc646 100644 --- a/services/repository/gitgraph/graph_models.go +++ b/services/repository/gitgraph/graph_models.go @@ -10,13 +10,13 @@ import ( "strings" "time" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" ) // NewGraph creates a basic graph diff --git a/services/repository/gitgraph/graph_test.go b/services/repository/gitgraph/graph_test.go index e7e437e42d..374341b276 100644 --- a/services/repository/gitgraph/graph_test.go +++ b/services/repository/gitgraph/graph_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/git" + "forgejo.org/modules/git" ) func BenchmarkGetCommitGraph(b *testing.B) { diff --git a/services/repository/hooks.go b/services/repository/hooks.go index 97e9e290a3..d3021414cf 100644 --- a/services/repository/hooks.go +++ b/services/repository/hooks.go @@ -7,12 +7,12 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/webhook" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" "xorm.io/builder" ) diff --git a/services/repository/init.go b/services/repository/init.go index 817fa4abd7..525b322752 100644 --- a/services/repository/init.go +++ b/services/repository/init.go @@ -9,13 +9,13 @@ import ( "os" "time" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - asymkey_service "code.gitea.io/gitea/services/asymkey" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + asymkey_service "forgejo.org/services/asymkey" ) // initRepoCommit temporarily changes with work directory. diff --git a/services/repository/lfs.go b/services/repository/lfs.go index 4cd1110e55..43acb8ee6c 100644 --- a/services/repository/lfs.go +++ b/services/repository/lfs.go @@ -8,14 +8,14 @@ import ( "fmt" "time" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" ) // GarbageCollectLFSMetaObjectsOptions provides options for GarbageCollectLFSMetaObjects function diff --git a/services/repository/lfs_test.go b/services/repository/lfs_test.go index 838386d845..e38c38e29c 100644 --- a/services/repository/lfs_test.go +++ b/services/repository/lfs_test.go @@ -8,14 +8,14 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/lfs" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + repo_service "forgejo.org/services/repository" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/main_test.go b/services/repository/main_test.go index 7ad1540aee..942a805638 100644 --- a/services/repository/main_test.go +++ b/services/repository/main_test.go @@ -6,7 +6,7 @@ package repository import ( "testing" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/unittest" ) func TestMain(m *testing.M) { diff --git a/services/repository/migrate.go b/services/repository/migrate.go index c8f65dd63d..80f5d68231 100644 --- a/services/repository/migrate.go +++ b/services/repository/migrate.go @@ -10,18 +10,18 @@ import ( "net/http" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/migration" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/lfs" + "forgejo.org/modules/log" + "forgejo.org/modules/migration" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" ) // MigrateRepositoryGitData starts migrating git related data after created migrating repository diff --git a/services/repository/push.go b/services/repository/push.go index 924f365c05..53574a7d93 100644 --- a/services/repository/push.go +++ b/services/repository/push.go @@ -10,23 +10,23 @@ import ( "strings" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/queue" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - issue_service "code.gitea.io/gitea/services/issue" - notify_service "code.gitea.io/gitea/services/notify" - pull_service "code.gitea.io/gitea/services/pull" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/queue" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + issue_service "forgejo.org/services/issue" + notify_service "forgejo.org/services/notify" + pull_service "forgejo.org/services/pull" ) // pushQueue represents a queue to handle update pull request tests diff --git a/services/repository/repository.go b/services/repository/repository.go index 35bcdfd528..a2620740b1 100644 --- a/services/repository/repository.go +++ b/services/repository/repository.go @@ -8,21 +8,21 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - notify_service "code.gitea.io/gitea/services/notify" - pull_service "code.gitea.io/gitea/services/pull" + "forgejo.org/models/db" + "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + system_model "forgejo.org/models/system" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + notify_service "forgejo.org/services/notify" + pull_service "forgejo.org/services/pull" ) // WebSearchRepository represents a repository returned by web search diff --git a/services/repository/repository_test.go b/services/repository/repository_test.go index a5c0b3efcd..c08f7151ca 100644 --- a/services/repository/repository_test.go +++ b/services/repository/repository_test.go @@ -6,10 +6,10 @@ package repository import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/review.go b/services/repository/review.go index 40513e6bc6..c4000a2846 100644 --- a/services/repository/review.go +++ b/services/repository/review.go @@ -6,9 +6,9 @@ package repository import ( "context" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" ) // GetReviewerTeams get all teams can be requested to review diff --git a/services/repository/review_test.go b/services/repository/review_test.go index eb1712c2ce..5ece99a2e3 100644 --- a/services/repository/review_test.go +++ b/services/repository/review_test.go @@ -6,9 +6,9 @@ package repository import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/repository/setting.go b/services/repository/setting.go index 33b00cca8c..c127f3129e 100644 --- a/services/repository/setting.go +++ b/services/repository/setting.go @@ -7,12 +7,12 @@ import ( "context" "slices" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/modules/log" - actions_service "code.gitea.io/gitea/services/actions" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/modules/log" + actions_service "forgejo.org/services/actions" ) // UpdateRepositoryUnits updates a repository's units diff --git a/services/repository/star.go b/services/repository/star.go index 505da0f099..8cc2e0a243 100644 --- a/services/repository/star.go +++ b/services/repository/star.go @@ -6,10 +6,10 @@ package repository import ( "context" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/federation" + "forgejo.org/models/repo" + "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/services/federation" ) func StarRepoAndSendLikeActivities(ctx context.Context, doer user.User, repoID int64, star bool) error { diff --git a/services/repository/template.go b/services/repository/template.go index 36a680c8e2..3566aa2b7e 100644 --- a/services/repository/template.go +++ b/services/repository/template.go @@ -6,12 +6,12 @@ package repository import ( "context" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + notify_service "forgejo.org/services/notify" ) // GenerateIssueLabels generates issue labels from a template repository diff --git a/services/repository/transfer.go b/services/repository/transfer.go index 467c85ef6f..6026d85ae1 100644 --- a/services/repository/transfer.go +++ b/services/repository/transfer.go @@ -9,19 +9,19 @@ import ( "os" "strings" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/sync" - "code.gitea.io/gitea/modules/util" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/sync" + "forgejo.org/modules/util" + notify_service "forgejo.org/services/notify" ) // repoWorkingPool represents a working pool to order the parallel changes to the same repository diff --git a/services/repository/transfer_test.go b/services/repository/transfer_test.go index cc51a05781..4bb0fc140c 100644 --- a/services/repository/transfer_test.go +++ b/services/repository/transfer_test.go @@ -7,17 +7,17 @@ import ( "sync" "testing" - "code.gitea.io/gitea/models" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/feed" - notify_service "code.gitea.io/gitea/services/notify" + "forgejo.org/models" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/util" + "forgejo.org/services/feed" + notify_service "forgejo.org/services/notify" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/secrets/secrets.go b/services/secrets/secrets.go index 031c474dd7..2d5aebdbc1 100644 --- a/services/secrets/secrets.go +++ b/services/secrets/secrets.go @@ -6,8 +6,8 @@ package secrets import ( "context" - "code.gitea.io/gitea/models/db" - secret_model "code.gitea.io/gitea/models/secret" + "forgejo.org/models/db" + secret_model "forgejo.org/models/secret" ) func CreateOrUpdateSecret(ctx context.Context, ownerID, repoID int64, name, data string) (*secret_model.Secret, bool, error) { diff --git a/services/secrets/validation.go b/services/secrets/validation.go index 3db5b96452..44250ba87b 100644 --- a/services/secrets/validation.go +++ b/services/secrets/validation.go @@ -6,7 +6,7 @@ package secrets import ( "regexp" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/util" ) // https://docs.github.com/en/actions/security-guides/encrypted-secrets#naming-your-secrets diff --git a/services/shared/automerge/automerge.go b/services/shared/automerge/automerge.go index 8f38cf260a..1dc309f4b3 100644 --- a/services/shared/automerge/automerge.go +++ b/services/shared/automerge/automerge.go @@ -9,12 +9,12 @@ import ( "strconv" "strings" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" ) // PRAutoMergeQueue represents a queue to handle update pull request tests diff --git a/services/task/migrate.go b/services/task/migrate.go index 9cef77a6c8..a9f76299fd 100644 --- a/services/task/migrate.go +++ b/services/task/migrate.go @@ -10,20 +10,20 @@ import ( "strings" "time" - admin_model "code.gitea.io/gitea/models/admin" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/migrations" - notify_service "code.gitea.io/gitea/services/notify" + admin_model "forgejo.org/models/admin" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/graceful" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/migration" + "forgejo.org/modules/process" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + "forgejo.org/services/migrations" + notify_service "forgejo.org/services/notify" ) func handleCreateError(owner *user_model.User, err error) error { diff --git a/services/task/task.go b/services/task/task.go index ac659ac3e5..3181fc79d7 100644 --- a/services/task/task.go +++ b/services/task/task.go @@ -7,21 +7,21 @@ import ( "context" "fmt" - admin_model "code.gitea.io/gitea/models/admin" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/secret" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/modules/util" - repo_service "code.gitea.io/gitea/services/repository" + admin_model "forgejo.org/models/admin" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/graceful" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + base "forgejo.org/modules/migration" + "forgejo.org/modules/queue" + "forgejo.org/modules/secret" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/modules/util" + repo_service "forgejo.org/services/repository" ) // taskQueue is a global queue of tasks diff --git a/services/uinotification/notify.go b/services/uinotification/notify.go index be5f7019a2..25048e7b53 100644 --- a/services/uinotification/notify.go +++ b/services/uinotification/notify.go @@ -6,16 +6,16 @@ package uinotification import ( "context" - activities_model "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/container" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/queue" - notify_service "code.gitea.io/gitea/services/notify" + activities_model "forgejo.org/models/activities" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/container" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/queue" + notify_service "forgejo.org/services/notify" ) type ( diff --git a/services/user/avatar.go b/services/user/avatar.go index 3f87466eaa..79dfc76503 100644 --- a/services/user/avatar.go +++ b/services/user/avatar.go @@ -10,11 +10,11 @@ import ( "io" "os" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/avatar" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/storage" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/avatar" + "forgejo.org/modules/log" + "forgejo.org/modules/storage" ) // UploadAvatar saves custom avatar for user. diff --git a/services/user/avatar_test.go b/services/user/avatar_test.go index 21fca8dd09..b208efeb6f 100644 --- a/services/user/avatar_test.go +++ b/services/user/avatar_test.go @@ -10,11 +10,11 @@ import ( "os" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/storage" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/user/block.go b/services/user/block.go index 0b31119dfb..6be8dc5f70 100644 --- a/services/user/block.go +++ b/services/user/block.go @@ -5,10 +5,10 @@ package user import ( "context" - model "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" + model "forgejo.org/models" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" "xorm.io/builder" ) diff --git a/services/user/block_test.go b/services/user/block_test.go index 13959e56b4..a2ba5d71a7 100644 --- a/services/user/block_test.go +++ b/services/user/block_test.go @@ -6,12 +6,12 @@ package user import ( "testing" - model "code.gitea.io/gitea/models" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" + model "forgejo.org/models" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/user/delete.go b/services/user/delete.go index 587e3c2a8f..9ce917cd27 100644 --- a/services/user/delete.go +++ b/services/user/delete.go @@ -10,20 +10,20 @@ import ( _ "image/jpeg" // Needed for jpeg support - actions_model "code.gitea.io/gitea/models/actions" - activities_model "code.gitea.io/gitea/models/activities" - asymkey_model "code.gitea.io/gitea/models/asymkey" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - pull_model "code.gitea.io/gitea/models/pull" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - issue_service "code.gitea.io/gitea/services/issue" + actions_model "forgejo.org/models/actions" + activities_model "forgejo.org/models/activities" + asymkey_model "forgejo.org/models/asymkey" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + pull_model "forgejo.org/models/pull" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + issue_service "forgejo.org/services/issue" "xorm.io/builder" ) diff --git a/services/user/email.go b/services/user/email.go index 31404aadaa..f49efde1be 100644 --- a/services/user/email.go +++ b/services/user/email.go @@ -8,12 +8,12 @@ import ( "errors" "strings" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/validation" - "code.gitea.io/gitea/services/mailer" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/modules/validation" + "forgejo.org/services/mailer" ) // AdminAddOrSetPrimaryEmailAddress is used by admins to add or set a user's primary email address diff --git a/services/user/email_test.go b/services/user/email_test.go index 86f31a8984..b48936a27e 100644 --- a/services/user/email_test.go +++ b/services/user/email_test.go @@ -6,11 +6,11 @@ package user import ( "testing" - "code.gitea.io/gitea/models/db" - organization_model "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/db" + organization_model "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" "github.com/gobwas/glob" "github.com/stretchr/testify/assert" diff --git a/services/user/update.go b/services/user/update.go index 62c30ac05f..65d3992751 100644 --- a/services/user/update.go +++ b/services/user/update.go @@ -7,14 +7,14 @@ import ( "context" "fmt" - "code.gitea.io/gitea/models" - auth_model "code.gitea.io/gitea/models/auth" - user_model "code.gitea.io/gitea/models/user" - password_module "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/mailer" + "forgejo.org/models" + auth_model "forgejo.org/models/auth" + user_model "forgejo.org/models/user" + password_module "forgejo.org/modules/auth/password" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/services/mailer" ) type UpdateOptions struct { diff --git a/services/user/update_test.go b/services/user/update_test.go index 11379d4508..f1754b2db9 100644 --- a/services/user/update_test.go +++ b/services/user/update_test.go @@ -6,12 +6,12 @@ package user import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - password_module "code.gitea.io/gitea/modules/auth/password" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/structs" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + password_module "forgejo.org/modules/auth/password" + "forgejo.org/modules/optional" + "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/user/user.go b/services/user/user.go index 62fe44ca27..d90fbac978 100644 --- a/services/user/user.go +++ b/services/user/user.go @@ -11,24 +11,24 @@ import ( "strings" "time" - "code.gitea.io/gitea/models" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - system_model "code.gitea.io/gitea/models/system" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/eventsource" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/agit" - org_service "code.gitea.io/gitea/services/org" - "code.gitea.io/gitea/services/packages" - container_service "code.gitea.io/gitea/services/packages/container" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + "forgejo.org/models/organization" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + system_model "forgejo.org/models/system" + user_model "forgejo.org/models/user" + "forgejo.org/modules/eventsource" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/util" + "forgejo.org/services/agit" + org_service "forgejo.org/services/org" + "forgejo.org/services/packages" + container_service "forgejo.org/services/packages/container" + repo_service "forgejo.org/services/repository" ) // RenameUser renames a user diff --git a/services/user/user_test.go b/services/user/user_test.go index 058ff7b6ed..ebcdb17710 100644 --- a/services/user/user_test.go +++ b/services/user/user_test.go @@ -11,17 +11,17 @@ import ( "testing" "time" - "code.gitea.io/gitea/models" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/timeutil" + "forgejo.org/models" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/timeutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/default.go b/services/webhook/default.go index 089ff8bae3..30717a7352 100644 --- a/services/webhook/default.go +++ b/services/webhook/default.go @@ -11,14 +11,14 @@ import ( "net/url" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/svg" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/svg" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) var _ Handler = defaultHandler{} diff --git a/services/webhook/default_test.go b/services/webhook/default_test.go index 7056e77b47..f946870d57 100644 --- a/services/webhook/default_test.go +++ b/services/webhook/default_test.go @@ -6,9 +6,9 @@ package webhook import ( "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + webhook_module "forgejo.org/modules/webhook" jsoniter "github.com/json-iterator/go" "github.com/stretchr/testify/assert" diff --git a/services/webhook/deliver.go b/services/webhook/deliver.go index 25668143e6..0c7c039f10 100644 --- a/services/webhook/deliver.go +++ b/services/webhook/deliver.go @@ -14,16 +14,16 @@ import ( "sync" "time" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/hostmatcher" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/proxy" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/graceful" + "forgejo.org/modules/hostmatcher" + "forgejo.org/modules/log" + "forgejo.org/modules/process" + "forgejo.org/modules/proxy" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + webhook_module "forgejo.org/modules/webhook" "github.com/gobwas/glob" ) diff --git a/services/webhook/deliver_test.go b/services/webhook/deliver_test.go index c6d1cb60dc..4dd898e60a 100644 --- a/services/webhook/deliver_test.go +++ b/services/webhook/deliver_test.go @@ -12,13 +12,13 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/hostmatcher" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - webhook_module "code.gitea.io/gitea/modules/webhook" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/hostmatcher" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/dingtalk.go b/services/webhook/dingtalk.go index 899c5b2d9f..9d5c7e573f 100644 --- a/services/webhook/dingtalk.go +++ b/services/webhook/dingtalk.go @@ -11,13 +11,13 @@ import ( "net/url" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) type dingtalkHandler struct{} diff --git a/services/webhook/dingtalk_test.go b/services/webhook/dingtalk_test.go index 762d29dddc..5d2a240660 100644 --- a/services/webhook/dingtalk_test.go +++ b/services/webhook/dingtalk_test.go @@ -7,10 +7,10 @@ import ( "net/url" "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/discord.go b/services/webhook/discord.go index cd25175ea1..3970a2552d 100644 --- a/services/webhook/discord.go +++ b/services/webhook/discord.go @@ -15,17 +15,17 @@ import ( "strings" "unicode/utf8" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" + gitea_context "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" "code.forgejo.org/go-chi/binding" ) diff --git a/services/webhook/discord_test.go b/services/webhook/discord_test.go index e0bb2225f7..ce3aaa10cf 100644 --- a/services/webhook/discord_test.go +++ b/services/webhook/discord_test.go @@ -6,11 +6,11 @@ package webhook import ( "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/feishu.go b/services/webhook/feishu.go index f77c3bbd65..01b3d07983 100644 --- a/services/webhook/feishu.go +++ b/services/webhook/feishu.go @@ -10,12 +10,12 @@ import ( "net/http" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) type feishuHandler struct{} diff --git a/services/webhook/feishu_test.go b/services/webhook/feishu_test.go index 614e0f1ef4..7cf24b84ed 100644 --- a/services/webhook/feishu_test.go +++ b/services/webhook/feishu_test.go @@ -6,10 +6,10 @@ package webhook import ( "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/general.go b/services/webhook/general.go index ef68f2885b..40a2467177 100644 --- a/services/webhook/general.go +++ b/services/webhook/general.go @@ -9,11 +9,11 @@ import ( "net/url" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" ) type linkFormatter = func(string, string) string diff --git a/services/webhook/general_test.go b/services/webhook/general_test.go index 8412293708..b321fb3f8c 100644 --- a/services/webhook/general_test.go +++ b/services/webhook/general_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - api "code.gitea.io/gitea/modules/structs" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" ) diff --git a/services/webhook/gogs.go b/services/webhook/gogs.go index 7dbf64343f..bbab1ad41d 100644 --- a/services/webhook/gogs.go +++ b/services/webhook/gogs.go @@ -7,10 +7,10 @@ import ( "html/template" "net/http" - webhook_model "code.gitea.io/gitea/models/webhook" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) type gogsHandler struct{ defaultHandler } diff --git a/services/webhook/main_test.go b/services/webhook/main_test.go index 6147aac499..97957291ca 100644 --- a/services/webhook/main_test.go +++ b/services/webhook/main_test.go @@ -6,13 +6,13 @@ package webhook import ( "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/hostmatcher" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/models/unittest" + "forgejo.org/modules/hostmatcher" + "forgejo.org/modules/setting" - _ "code.gitea.io/gitea/models" - _ "code.gitea.io/gitea/models/actions" - _ "code.gitea.io/gitea/models/forgefed" + _ "forgejo.org/models" + _ "forgejo.org/models/actions" + _ "forgejo.org/models/forgefed" ) func TestMain(m *testing.M) { diff --git a/services/webhook/matrix.go b/services/webhook/matrix.go index 4b33bfb1d3..f1cc9384d3 100644 --- a/services/webhook/matrix.go +++ b/services/webhook/matrix.go @@ -16,16 +16,16 @@ import ( "regexp" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/svg" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + "forgejo.org/modules/svg" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) type matrixHandler struct{} diff --git a/services/webhook/matrix_test.go b/services/webhook/matrix_test.go index 46e0041a34..1644def0e1 100644 --- a/services/webhook/matrix_test.go +++ b/services/webhook/matrix_test.go @@ -6,10 +6,10 @@ package webhook import ( "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/msteams.go b/services/webhook/msteams.go index 736d084a8c..1ed03afd26 100644 --- a/services/webhook/msteams.go +++ b/services/webhook/msteams.go @@ -11,13 +11,13 @@ import ( "net/url" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) type msteamsHandler struct{} diff --git a/services/webhook/msteams_test.go b/services/webhook/msteams_test.go index d9a9724e5b..b210f299bc 100644 --- a/services/webhook/msteams_test.go +++ b/services/webhook/msteams_test.go @@ -6,10 +6,10 @@ package webhook import ( "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/notifier.go b/services/webhook/notifier.go index ddd7002890..e9fd52c940 100644 --- a/services/webhook/notifier.go +++ b/services/webhook/notifier.go @@ -6,20 +6,20 @@ package webhook import ( "context" - issues_model "code.gitea.io/gitea/models/issues" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/perm" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/convert" - notify_service "code.gitea.io/gitea/services/notify" + issues_model "forgejo.org/models/issues" + packages_model "forgejo.org/models/packages" + "forgejo.org/models/perm" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/convert" + notify_service "forgejo.org/services/notify" ) func init() { diff --git a/services/webhook/notifier_test.go b/services/webhook/notifier_test.go index 36ec3b8bf1..6b1f170287 100644 --- a/services/webhook/notifier_test.go +++ b/services/webhook/notifier_test.go @@ -7,17 +7,17 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/test" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/packagist.go b/services/webhook/packagist.go index 9831a4e008..7ae3e0c48f 100644 --- a/services/webhook/packagist.go +++ b/services/webhook/packagist.go @@ -10,12 +10,12 @@ import ( "net/http" "net/url" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) type packagistHandler struct{} diff --git a/services/webhook/packagist_test.go b/services/webhook/packagist_test.go index 0f696f1b99..e5bf4ec8d1 100644 --- a/services/webhook/packagist_test.go +++ b/services/webhook/packagist_test.go @@ -7,10 +7,10 @@ import ( "fmt" "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/shared/img.go b/services/webhook/shared/img.go index 2d65ba4e0f..95286c563e 100644 --- a/services/webhook/shared/img.go +++ b/services/webhook/shared/img.go @@ -5,7 +5,7 @@ import ( "html/template" "strconv" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) func ImgIcon(name string, size int) template.HTML { diff --git a/services/webhook/shared/payloader.go b/services/webhook/shared/payloader.go index cf0bfa82cb..0a6535eddb 100644 --- a/services/webhook/shared/payloader.go +++ b/services/webhook/shared/payloader.go @@ -14,10 +14,10 @@ import ( "io" "net/http" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" ) var ErrPayloadTypeNotSupported = errors.New("unsupported webhook event") diff --git a/services/webhook/slack.go b/services/webhook/slack.go index 5ef3e4e06f..e854f89c6c 100644 --- a/services/webhook/slack.go +++ b/services/webhook/slack.go @@ -11,15 +11,15 @@ import ( "regexp" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + gitea_context "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" "code.forgejo.org/go-chi/binding" ) diff --git a/services/webhook/slack_test.go b/services/webhook/slack_test.go index ecc11d541f..62090fd310 100644 --- a/services/webhook/slack_test.go +++ b/services/webhook/slack_test.go @@ -6,10 +6,10 @@ package webhook import ( "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/sourcehut/builds.go b/services/webhook/sourcehut/builds.go index 346ccd3c0b..bd3eeebc6c 100644 --- a/services/webhook/sourcehut/builds.go +++ b/services/webhook/sourcehut/builds.go @@ -13,17 +13,17 @@ import ( "net/http" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + gitea_context "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" "code.forgejo.org/go-chi/binding" "gopkg.in/yaml.v3" diff --git a/services/webhook/sourcehut/builds_test.go b/services/webhook/sourcehut/builds_test.go index 689c369a7f..ac4172f5ff 100644 --- a/services/webhook/sourcehut/builds_test.go +++ b/services/webhook/sourcehut/builds_test.go @@ -7,14 +7,14 @@ import ( "strings" "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/webhook/shared" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/telegram.go b/services/webhook/telegram.go index a02a7691e9..d0abd667f4 100644 --- a/services/webhook/telegram.go +++ b/services/webhook/telegram.go @@ -11,15 +11,15 @@ import ( "net/url" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/markup" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/markup" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) type telegramHandler struct{} diff --git a/services/webhook/telegram_test.go b/services/webhook/telegram_test.go index 85a62f7615..5066e55b8c 100644 --- a/services/webhook/telegram_test.go +++ b/services/webhook/telegram_test.go @@ -6,10 +6,10 @@ package webhook import ( "testing" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/webhook.go b/services/webhook/webhook.go index 1366ea8e8f..989b535564 100644 --- a/services/webhook/webhook.go +++ b/services/webhook/webhook.go @@ -11,21 +11,21 @@ import ( "net/http" "strings" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/sourcehut" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/sourcehut" "github.com/gobwas/glob" ) diff --git a/services/webhook/webhook_test.go b/services/webhook/webhook_test.go index 2ebbbe4a51..c9af09d3e9 100644 --- a/services/webhook/webhook_test.go +++ b/services/webhook/webhook_test.go @@ -7,15 +7,15 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/convert" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/convert" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/services/webhook/wechatwork.go b/services/webhook/wechatwork.go index 87f8bb8b18..323d23aba7 100644 --- a/services/webhook/wechatwork.go +++ b/services/webhook/wechatwork.go @@ -10,12 +10,12 @@ import ( "net/http" "strings" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/webhook/shared" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/forms" + "forgejo.org/services/webhook/shared" ) type wechatworkHandler struct{} diff --git a/services/wiki/wiki.go b/services/wiki/wiki.go index 63196aa862..cf1477e72c 100644 --- a/services/wiki/wiki.go +++ b/services/wiki/wiki.go @@ -11,17 +11,17 @@ import ( "os" "strings" - repo_model "code.gitea.io/gitea/models/repo" - system_model "code.gitea.io/gitea/models/system" - "code.gitea.io/gitea/models/unit" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/sync" - asymkey_service "code.gitea.io/gitea/services/asymkey" - repo_service "code.gitea.io/gitea/services/repository" + repo_model "forgejo.org/models/repo" + system_model "forgejo.org/models/system" + "forgejo.org/models/unit" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/sync" + asymkey_service "forgejo.org/services/asymkey" + repo_service "forgejo.org/services/repository" ) // TODO: use clustered lock (unique queue? or *abuse* cache) diff --git a/services/wiki/wiki_path.go b/services/wiki/wiki_path.go index 74c7064043..ca312388af 100644 --- a/services/wiki/wiki_path.go +++ b/services/wiki/wiki_path.go @@ -8,11 +8,11 @@ import ( "path" "strings" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/services/convert" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/services/convert" ) // To define the wiki related concepts: diff --git a/services/wiki/wiki_test.go b/services/wiki/wiki_test.go index efcc13db99..d76104dfc7 100644 --- a/services/wiki/wiki_test.go +++ b/services/wiki/wiki_test.go @@ -8,13 +8,13 @@ import ( "strings" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" - _ "code.gitea.io/gitea/models/actions" + _ "forgejo.org/models/actions" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index cc95fc488d..231386e3aa 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -20595,7 +20595,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "APIForbiddenError": { "type": "object", @@ -20609,7 +20609,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/services/context" + "x-go-package": "forgejo.org/services/context" }, "APIInternalServerError": { "type": "object", @@ -20623,7 +20623,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/services/context" + "x-go-package": "forgejo.org/services/context" }, "APIInvalidTopicsError": { "type": "object", @@ -20640,7 +20640,7 @@ "x-go-name": "Message" } }, - "x-go-package": "code.gitea.io/gitea/services/context" + "x-go-package": "forgejo.org/services/context" }, "APINotFound": { "type": "object", @@ -20661,7 +20661,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/services/context" + "x-go-package": "forgejo.org/services/context" }, "APIRepoArchivedError": { "type": "object", @@ -20675,7 +20675,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/services/context" + "x-go-package": "forgejo.org/services/context" }, "APIUnauthorizedError": { "type": "object", @@ -20689,7 +20689,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/services/context" + "x-go-package": "forgejo.org/services/context" }, "APIValidationError": { "type": "object", @@ -20703,7 +20703,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/services/context" + "x-go-package": "forgejo.org/services/context" }, "AccessToken": { "type": "object", @@ -20734,7 +20734,7 @@ "x-go-name": "TokenLastEight" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ActionRunJob": { "description": "ActionRunJob represents a job of a run", @@ -20791,7 +20791,7 @@ "x-go-name": "TaskID" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ActionTask": { "description": "ActionTask represents a ActionTask", @@ -20855,7 +20855,7 @@ "x-go-name": "WorkflowID" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ActionTaskResponse": { "description": "ActionTaskResponse returns a ActionTask", @@ -20874,7 +20874,7 @@ "x-go-name": "Entries" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ActionVariable": { "description": "ActionVariable return value of the query API", @@ -20903,7 +20903,7 @@ "x-go-name": "RepoID" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Activity": { "type": "object", @@ -20994,7 +20994,7 @@ "x-go-name": "UserID" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ActivityPub": { "description": "ActivityPub type", @@ -21005,7 +21005,7 @@ "x-go-name": "Context" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "AddCollaboratorOption": { "description": "AddCollaboratorOption options when adding a user as a collaborator of a repository", @@ -21021,7 +21021,7 @@ "x-go-name": "Permission" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "AddTimeOption": { "description": "AddTimeOption options for adding time to an issue", @@ -21047,7 +21047,7 @@ "x-go-name": "User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "AnnotatedTag": { "description": "AnnotatedTag represents an annotated tag", @@ -21082,7 +21082,7 @@ "$ref": "#/definitions/PayloadCommitVerification" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "AnnotatedTagObject": { "description": "AnnotatedTagObject contains meta information of the tag object", @@ -21101,7 +21101,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Attachment": { "description": "Attachment a generic attachment", @@ -21148,7 +21148,7 @@ "x-go-name": "UUID" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "BlockedUser": { "type": "object", @@ -21165,7 +21165,7 @@ "x-go-name": "Created" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Branch": { "description": "Branch represents a repository branch", @@ -21211,7 +21211,7 @@ "x-go-name": "UserCanPush" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "BranchProtection": { "description": "BranchProtection represents a branch protection for a repository", @@ -21351,7 +21351,7 @@ "x-go-name": "Updated" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ChangeFileOperation": { "description": "ChangeFileOperation for creating, updating or deleting a file", @@ -21392,7 +21392,7 @@ "x-go-name": "SHA" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ChangeFilesOptions": { "description": "ChangeFilesOptions options for creating, updating or deleting multiple files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", @@ -21439,7 +21439,7 @@ "x-go-name": "Signoff" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ChangedFile": { "description": "ChangedFile store information about files affected by the pull request", @@ -21485,7 +21485,7 @@ "x-go-name": "Status" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CombinedStatus": { "description": "CombinedStatus holds the combined state of several statuses for a single commit", @@ -21522,7 +21522,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Comment": { "description": "Comment represents a comment on a commit or issue", @@ -21579,7 +21579,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Commit": { "type": "object", @@ -21629,7 +21629,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CommitAffectedFiles": { "description": "CommitAffectedFiles store information about files affected by the commit", @@ -21644,7 +21644,7 @@ "x-go-name": "Status" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CommitDateOptions": { "description": "CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE", @@ -21661,7 +21661,7 @@ "x-go-name": "Committer" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CommitMeta": { "type": "object", @@ -21681,7 +21681,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CommitStats": { "description": "CommitStats is statistics for a RepoCommit", @@ -21703,7 +21703,7 @@ "x-go-name": "Total" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CommitStatus": { "description": "CommitStatus holds a single status of a single Commit", @@ -21747,12 +21747,12 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CommitStatusState": { "description": "CommitStatusState holds the state of a CommitStatus\nIt can be \"pending\", \"success\", \"error\" and \"failure\"", "type": "string", - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CommitUser": { "type": "object", @@ -21772,7 +21772,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Compare": { "type": "object", @@ -21798,7 +21798,7 @@ "x-go-name": "TotalCommits" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ContentsResponse": { "description": "ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content", @@ -21870,7 +21870,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateAccessTokenOption": { "description": "CreateAccessTokenOption options when create access token", @@ -21891,7 +21891,7 @@ "x-go-name": "Scopes" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateBranchProtectionOption": { "description": "CreateBranchProtectionOption options for creating a branch protection", @@ -22021,7 +22021,7 @@ "x-go-name": "UnprotectedFilePatterns" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateBranchRepoOption": { "description": "CreateBranchRepoOption options when creating a branch in a repository", @@ -22049,7 +22049,7 @@ "x-go-name": "OldRefName" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateEmailOption": { "description": "CreateEmailOption options when creating email addresses", @@ -22064,7 +22064,7 @@ "x-go-name": "Emails" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateFileOptions": { "description": "CreateFileOptions options for creating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", @@ -22108,7 +22108,7 @@ "x-go-name": "Signoff" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateForkOption": { "description": "CreateForkOption options for creating a fork", @@ -22125,7 +22125,7 @@ "x-go-name": "Organization" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateGPGKeyOption": { "description": "CreateGPGKeyOption options create user GPG key", @@ -22145,7 +22145,7 @@ "x-go-name": "Signature" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateHookOption": { "description": "CreateHookOption options when create a hook", @@ -22196,7 +22196,7 @@ "x-go-name": "Type" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateHookOptionConfig": { "description": "CreateHookOptionConfig has all config options in it\nrequired are \"content_type\" and \"url\" Required", @@ -22204,7 +22204,7 @@ "additionalProperties": { "type": "string" }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateIssueCommentOption": { "description": "CreateIssueCommentOption options for creating a comment on an issue", @@ -22223,7 +22223,7 @@ "x-go-name": "Updated" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateIssueOption": { "description": "CreateIssueOption options to create one issue", @@ -22281,7 +22281,7 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateKeyOption": { "description": "CreateKeyOption options when creating a key", @@ -22309,7 +22309,7 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateLabelOption": { "description": "CreateLabelOption options for creating a label", @@ -22343,7 +22343,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateMilestoneOption": { "description": "CreateMilestoneOption options for creating a milestone", @@ -22371,7 +22371,7 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateOAuth2ApplicationOptions": { "description": "CreateOAuth2ApplicationOptions holds options to create an oauth2 application", @@ -22393,7 +22393,7 @@ "x-go-name": "RedirectURIs" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateOrUpdateSecretOption": { "description": "CreateOrUpdateSecretOption options when creating or updating secret", @@ -22408,7 +22408,7 @@ "x-go-name": "Data" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateOrgOption": { "description": "CreateOrgOption options for creating an organization", @@ -22456,7 +22456,7 @@ "x-go-name": "Website" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreatePullRequestOption": { "description": "CreatePullRequestOption options when creating a pull request", @@ -22508,7 +22508,7 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreatePullReviewComment": { "description": "CreatePullReviewComment represent a review comment for creation api", @@ -22536,7 +22536,7 @@ "x-go-name": "Path" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreatePullReviewCommentOptions": { "$ref": "#/definitions/CreatePullReviewComment" @@ -22564,7 +22564,7 @@ "$ref": "#/definitions/ReviewStateType" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreatePushMirrorOption": { "type": "object", @@ -22595,7 +22595,7 @@ "x-go-name": "UseSSH" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateQuotaGroupOptions": { "description": "CreateQutaGroupOptions represents the options for creating a quota group", @@ -22615,7 +22615,7 @@ "x-go-name": "Rules" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateQuotaRuleOptions": { "description": "CreateQuotaRuleOptions represents the options for creating a quota rule", @@ -22641,7 +22641,7 @@ "x-go-name": "Subjects" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateReleaseOption": { "description": "CreateReleaseOption options when creating a release", @@ -22679,7 +22679,7 @@ "x-go-name": "Target" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateRepoOption": { "description": "CreateRepoOption options when creating repository", @@ -22760,7 +22760,7 @@ "x-go-name": "TrustModel" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateStatusOption": { "description": "CreateStatusOption holds the information needed to create a new CommitStatus for a Commit", @@ -22782,7 +22782,7 @@ "x-go-name": "TargetURL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateTagOption": { "description": "CreateTagOption options when creating a tag", @@ -22804,7 +22804,7 @@ "x-go-name": "Target" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateTagProtectionOption": { "description": "CreateTagProtectionOption options for creating a tag protection", @@ -22829,7 +22829,7 @@ "x-go-name": "WhitelistUsernames" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateTeamOption": { "description": "CreateTeamOption options for creating a team", @@ -22891,7 +22891,7 @@ "example": "{\"repo.actions\",\"repo.packages\",\"repo.code\":\"read\",\"repo.issues\":\"write\",\"repo.ext_issues\":\"none\",\"repo.wiki\":\"admin\",\"repo.pulls\":\"owner\",\"repo.releases\":\"none\",\"repo.projects\":\"none\",\"repo.ext_wiki\":\"none\"}" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateUserOption": { "description": "CreateUserOption create user options", @@ -22950,7 +22950,7 @@ "x-go-name": "Visibility" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateVariableOption": { "description": "CreateVariableOption the option when creating variable", @@ -22965,7 +22965,7 @@ "x-go-name": "Value" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "CreateWikiPageOptions": { "description": "CreateWikiPageOptions form for creating wiki", @@ -22987,7 +22987,7 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Cron": { "description": "Cron represents a Cron task", @@ -23017,7 +23017,7 @@ "x-go-name": "Schedule" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "DeleteEmailOption": { "description": "DeleteEmailOption options when deleting email addresses", @@ -23032,7 +23032,7 @@ "x-go-name": "Emails" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "DeleteFileOptions": { "description": "DeleteFileOptions options for deleting files (used for other File structs below)\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", @@ -23076,7 +23076,7 @@ "x-go-name": "Signoff" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "DeleteLabelsOption": { "description": "DeleteLabelOption options for deleting a label", @@ -23088,7 +23088,7 @@ "x-go-name": "Updated" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "DeployKey": { "description": "DeployKey a deploy key", @@ -23133,7 +23133,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "DismissPullReviewOptions": { "description": "DismissPullReviewOptions are options to dismiss a pull review", @@ -23148,7 +23148,7 @@ "x-go-name": "Priors" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "DispatchWorkflowOption": { "description": "DispatchWorkflowOption options when dispatching a workflow", @@ -23177,7 +23177,7 @@ "x-go-name": "ReturnRunInfo" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "DispatchWorkflowRun": { "description": "DispatchWorkflowRun represents a workflow run", @@ -23204,7 +23204,7 @@ "x-go-name": "RunNumber" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditAttachmentOptions": { "description": "EditAttachmentOptions options for editing attachments", @@ -23220,7 +23220,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditBranchProtectionOption": { "description": "EditBranchProtectionOption options for editing a branch protection", @@ -23341,7 +23341,7 @@ "x-go-name": "UnprotectedFilePatterns" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditDeadlineOption": { "description": "EditDeadlineOption options for creating a deadline", @@ -23356,7 +23356,7 @@ "x-go-name": "Deadline" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditGitHookOption": { "description": "EditGitHookOption options when modifying one Git hook", @@ -23367,7 +23367,7 @@ "x-go-name": "Content" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditHookOption": { "description": "EditHookOption options when modify one hook", @@ -23400,7 +23400,7 @@ "x-go-name": "Events" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditIssueCommentOption": { "description": "EditIssueCommentOption options for editing a comment", @@ -23419,7 +23419,7 @@ "x-go-name": "Updated" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditIssueOption": { "description": "EditIssueOption options for editing an issue", @@ -23473,7 +23473,7 @@ "x-go-name": "Updated" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditLabelOption": { "description": "EditLabelOption options for editing a label", @@ -23503,7 +23503,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditMilestoneOption": { "description": "EditMilestoneOption options for editing a milestone", @@ -23527,7 +23527,7 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditOrgOption": { "description": "EditOrgOption options for editing an organization", @@ -23568,7 +23568,7 @@ "x-go-name": "Website" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditPullRequestOption": { "description": "EditPullRequestOption options when modify pull request", @@ -23628,7 +23628,7 @@ "x-go-name": "RemoveDeadline" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditQuotaRuleOptions": { "description": "EditQuotaRuleOptions represents the options for editing a quota rule", @@ -23649,7 +23649,7 @@ "x-go-name": "Subjects" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditReactionOption": { "description": "EditReactionOption contain the reaction type", @@ -23660,7 +23660,7 @@ "x-go-name": "Reaction" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditReleaseOption": { "description": "EditReleaseOption options when editing a release", @@ -23695,7 +23695,7 @@ "x-go-name": "Target" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditRepoOption": { "description": "EditRepoOption options when editing a repository's properties", @@ -23867,7 +23867,7 @@ "x-go-name": "WikiBranch" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditTagProtectionOption": { "description": "EditTagProtectionOption options for editing a tag protection", @@ -23892,7 +23892,7 @@ "x-go-name": "WhitelistUsernames" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditTeamOption": { "description": "EditTeamOption options for editing a team", @@ -23961,7 +23961,7 @@ } } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "EditUserOption": { "description": "EditUserOption edit user options", @@ -24047,7 +24047,7 @@ "x-go-name": "Website" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Email": { "description": "Email an email address belonging to a user", @@ -24076,7 +24076,7 @@ "x-go-name": "Verified" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ExternalTracker": { "description": "ExternalTracker represents settings for external tracker", @@ -24103,7 +24103,7 @@ "x-go-name": "ExternalTrackerURL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ExternalWiki": { "description": "ExternalWiki represents setting for external wiki", @@ -24115,7 +24115,7 @@ "x-go-name": "ExternalWikiURL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "FileCommitResponse": { "type": "object", @@ -24159,7 +24159,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "FileDeleteResponse": { "description": "FileDeleteResponse contains information about a repo's file that was deleted", @@ -24175,7 +24175,7 @@ "$ref": "#/definitions/PayloadCommitVerification" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "FileLinksResponse": { "description": "FileLinksResponse contains the links for a repo's file", @@ -24194,7 +24194,7 @@ "x-go-name": "Self" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "FileResponse": { "description": "FileResponse contains information about a repo's file", @@ -24210,7 +24210,7 @@ "$ref": "#/definitions/PayloadCommitVerification" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "FilesResponse": { "description": "FilesResponse contains information about multiple files from a repo", @@ -24230,12 +24230,12 @@ "$ref": "#/definitions/PayloadCommitVerification" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ForgeLike": { "description": "ForgeLike activity data type", "type": "object", - "x-go-package": "code.gitea.io/gitea/modules/forgefed" + "x-go-package": "forgejo.org/modules/forgefed" }, "GPGKey": { "description": "GPGKey a user GPG key to sign commit and tag in repository", @@ -24303,7 +24303,7 @@ "x-go-name": "Verified" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GPGKeyEmail": { "description": "GPGKeyEmail an email attached to a GPGKey", @@ -24318,7 +24318,7 @@ "x-go-name": "Verified" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GeneralAPISettings": { "description": "GeneralAPISettings contains global api settings exposed by it", @@ -24345,7 +24345,7 @@ "x-go-name": "MaxResponseItems" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GeneralAttachmentSettings": { "description": "GeneralAttachmentSettings contains global Attachment settings exposed by API", @@ -24370,7 +24370,7 @@ "x-go-name": "MaxSize" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GeneralRepoSettings": { "description": "GeneralRepoSettings contains global repository settings exposed by API", @@ -24405,7 +24405,7 @@ "x-go-name": "TimeTrackingDisabled" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GeneralUISettings": { "description": "GeneralUISettings contains global ui settings exposed by API", @@ -24430,7 +24430,7 @@ "x-go-name": "DefaultTheme" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GenerateRepoOption": { "description": "GenerateRepoOption options when creating repository using a template", @@ -24502,7 +24502,7 @@ "x-go-name": "Webhooks" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GitBlobResponse": { "description": "GitBlobResponse represents a git blob", @@ -24530,7 +24530,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GitEntry": { "description": "GitEntry represents a git tree", @@ -24562,7 +24562,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GitHook": { "description": "GitHook represents a Git repository hook", @@ -24581,7 +24581,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GitObject": { "type": "object", @@ -24600,7 +24600,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GitTreeResponse": { "description": "GitTreeResponse returns a git tree", @@ -24636,7 +24636,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "GitignoreTemplateInfo": { "description": "GitignoreTemplateInfo name and text of a gitignore template", @@ -24651,7 +24651,7 @@ "x-go-name": "Source" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Hook": { "description": "Hook a hook is a web hook when one repository changed", @@ -24715,7 +24715,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Identity": { "description": "Identity for a person's identity like an author or committer", @@ -24731,7 +24731,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "InternalTracker": { "description": "InternalTracker represents settings for internal tracker", @@ -24753,7 +24753,7 @@ "x-go-name": "EnableTimeTracker" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Issue": { "description": "Issue represents an issue in a repository", @@ -24872,7 +24872,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueConfig": { "type": "object", @@ -24889,7 +24889,7 @@ "x-go-name": "ContactLinks" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueConfigContactLink": { "type": "object", @@ -24907,7 +24907,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueConfigValidation": { "type": "object", @@ -24921,7 +24921,7 @@ "x-go-name": "Valid" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueDeadline": { "description": "IssueDeadline represents an issue deadline", @@ -24933,7 +24933,7 @@ "x-go-name": "Deadline" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueFormField": { "description": "IssueFormField represents a form field", @@ -24964,17 +24964,17 @@ "x-go-name": "Visible" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueFormFieldType": { "type": "string", "title": "IssueFormFieldType defines issue form field type, can be \"markdown\", \"textarea\", \"input\", \"dropdown\" or \"checkboxes\"", - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueFormFieldVisible": { "description": "IssueFormFieldVisible defines issue form field visible", "type": "string", - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueLabelsOption": { "description": "IssueLabelsOption a collection of labels", @@ -24992,7 +24992,7 @@ "x-go-name": "Updated" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueMeta": { "description": "IssueMeta basic issue information", @@ -25012,7 +25012,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueTemplate": { "description": "IssueTemplate represents an issue template for a repository", @@ -25053,14 +25053,14 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "IssueTemplateLabels": { "type": "array", "items": { "type": "string" }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Label": { "description": "Label a label to an issue or a pr", @@ -25099,7 +25099,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "LabelTemplate": { "description": "LabelTemplate info of a Label template", @@ -25124,7 +25124,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "LicenseTemplateInfo": { "description": "LicensesInfo contains information about a License", @@ -25151,7 +25151,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "LicensesTemplateListEntry": { "description": "LicensesListEntry is used for the API", @@ -25170,7 +25170,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "MarkdownOption": { "description": "MarkdownOption markdown options", @@ -25193,7 +25193,7 @@ "type": "boolean" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "MarkupOption": { "description": "MarkupOption markup options", @@ -25224,7 +25224,7 @@ "type": "boolean" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "MergePullRequestOption": { "description": "MergePullRequestForm form for merging Pull Request", @@ -25271,7 +25271,7 @@ } }, "x-go-name": "MergePullRequestForm", - "x-go-package": "code.gitea.io/gitea/services/forms" + "x-go-package": "forgejo.org/services/forms" }, "MigrateRepoOptions": { "description": "MigrateRepoOptions options for migrating repository's\nthis is used to interact with api v1", @@ -25375,7 +25375,7 @@ "x-go-name": "Wiki" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Milestone": { "description": "Milestone milestone is a collection of issues on one repository", @@ -25428,7 +25428,7 @@ "x-go-name": "Updated" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NewIssuePinsAllowed": { "description": "NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed", @@ -25443,7 +25443,7 @@ "x-go-name": "PullRequests" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NodeInfo": { "description": "NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks", @@ -25478,7 +25478,7 @@ "x-go-name": "Version" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NodeInfoServices": { "description": "NodeInfoServices contains the third party sites this server can connect to via their application API", @@ -25499,7 +25499,7 @@ "x-go-name": "Outbound" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NodeInfoSoftware": { "description": "NodeInfoSoftware contains Metadata about server software in use", @@ -25522,7 +25522,7 @@ "x-go-name": "Version" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NodeInfoUsage": { "description": "NodeInfoUsage contains usage statistics for this server", @@ -25542,7 +25542,7 @@ "$ref": "#/definitions/NodeInfoUsageUsers" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NodeInfoUsageUsers": { "description": "NodeInfoUsageUsers contains statistics about the users of this server", @@ -25564,7 +25564,7 @@ "x-go-name": "Total" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Note": { "description": "Note contains information related to a git note", @@ -25578,7 +25578,7 @@ "x-go-name": "Message" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NoteOptions": { "type": "object", @@ -25588,7 +25588,7 @@ "x-go-name": "Message" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NotificationCount": { "description": "NotificationCount number of unread notifications", @@ -25600,7 +25600,7 @@ "x-go-name": "New" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NotificationSubject": { "description": "NotificationSubject contains the notification subject (Issue/Pull/Commit)", @@ -25633,7 +25633,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NotificationThread": { "description": "NotificationThread expose Notification on API", @@ -25668,12 +25668,12 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "NotifySubjectType": { "description": "NotifySubjectType represent type of notification subject", "type": "string", - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "OAuth2Application": { "type": "object", @@ -25713,7 +25713,7 @@ "x-go-name": "RedirectURIs" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Organization": { "description": "Organization represents an organization", @@ -25766,7 +25766,7 @@ "x-go-name": "Website" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "OrganizationPermissions": { "description": "OrganizationPermissions list different users permissions on an organization", @@ -25793,7 +25793,7 @@ "x-go-name": "IsOwner" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PRBranchInfo": { "description": "PRBranchInfo information about a branch", @@ -25820,7 +25820,7 @@ "x-go-name": "Sha" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Package": { "description": "Package represents a package", @@ -25862,7 +25862,7 @@ "x-go-name": "Version" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PackageFile": { "description": "PackageFile represents a package file", @@ -25898,7 +25898,7 @@ "x-go-name": "HashSHA512" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PayloadCommit": { "description": "PayloadCommit represents a commit", @@ -25953,7 +25953,7 @@ "$ref": "#/definitions/PayloadCommitVerification" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PayloadCommitVerification": { "description": "PayloadCommitVerification represents the GPG verification of a commit", @@ -25979,7 +25979,7 @@ "x-go-name": "Verified" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PayloadUser": { "description": "PayloadUser represents the author or committer of a commit", @@ -26000,7 +26000,7 @@ "x-go-name": "UserName" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Permission": { "description": "Permission represents a set of permissions", @@ -26019,7 +26019,7 @@ "x-go-name": "Push" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PublicKey": { "description": "PublicKey publickey is a user key to push code to repository", @@ -26063,7 +26063,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PullRequest": { "description": "PullRequest represents a pull request", @@ -26237,7 +26237,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PullRequestMeta": { "description": "PullRequestMeta PR info if an issue is a PR", @@ -26261,7 +26261,7 @@ "x-go-name": "Merged" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PullReview": { "description": "PullReview represents a pull request review", @@ -26325,7 +26325,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PullReviewComment": { "description": "PullReviewComment represents a comment on a pull request review", @@ -26396,7 +26396,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PullReviewRequestOptions": { "description": "PullReviewRequestOptions are options to add or remove pull review requests", @@ -26417,7 +26417,7 @@ "x-go-name": "TeamReviewers" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "PushMirror": { "description": "PushMirror represents information of a push mirror", @@ -26462,7 +26462,7 @@ "x-go-name": "SyncOnCommit" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaGroup": { "description": "QuotaGroup represents a quota group", @@ -26482,7 +26482,7 @@ "x-go-name": "Rules" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaGroupList": { "description": "QuotaGroupList represents a list of quota groups", @@ -26490,7 +26490,7 @@ "items": { "$ref": "#/definitions/QuotaGroup" }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaInfo": { "description": "QuotaInfo represents information about a user's quota", @@ -26503,7 +26503,7 @@ "$ref": "#/definitions/QuotaUsed" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaRuleInfo": { "description": "QuotaRuleInfo contains information about a quota rule", @@ -26529,7 +26529,7 @@ "x-go-name": "Subjects" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsed": { "description": "QuotaUsed represents the quota usage of a user", @@ -26539,7 +26539,7 @@ "$ref": "#/definitions/QuotaUsedSize" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedArtifact": { "description": "QuotaUsedArtifact represents an artifact counting towards a user's quota", @@ -26562,7 +26562,7 @@ "x-go-name": "Size" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedArtifactList": { "description": "QuotaUsedArtifactList represents a list of artifacts counting towards a user's quota", @@ -26570,7 +26570,7 @@ "items": { "$ref": "#/definitions/QuotaUsedArtifact" }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedAttachment": { "description": "QuotaUsedAttachment represents an attachment counting towards a user's quota", @@ -26610,7 +26610,7 @@ "x-go-name": "Size" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedAttachmentList": { "description": "QuotaUsedAttachmentList represents a list of attachment counting towards a user's quota", @@ -26618,7 +26618,7 @@ "items": { "$ref": "#/definitions/QuotaUsedAttachment" }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedPackage": { "description": "QuotaUsedPackage represents a package counting towards a user's quota", @@ -26651,7 +26651,7 @@ "x-go-name": "Version" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedPackageList": { "description": "QuotaUsedPackageList represents a list of packages counting towards a user's quota", @@ -26659,7 +26659,7 @@ "items": { "$ref": "#/definitions/QuotaUsedPackage" }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedSize": { "description": "QuotaUsedSize represents the size-based quota usage of a user", @@ -26675,7 +26675,7 @@ "$ref": "#/definitions/QuotaUsedSizeRepos" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedSizeAssets": { "description": "QuotaUsedSizeAssets represents the size-based asset usage of a user", @@ -26694,7 +26694,7 @@ "$ref": "#/definitions/QuotaUsedSizeAssetsPackages" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedSizeAssetsAttachments": { "description": "QuotaUsedSizeAssetsAttachments represents the size-based attachment quota usage of a user", @@ -26713,7 +26713,7 @@ "x-go-name": "Releases" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedSizeAssetsPackages": { "description": "QuotaUsedSizeAssetsPackages represents the size-based package quota usage of a user", @@ -26726,7 +26726,7 @@ "x-go-name": "All" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedSizeGit": { "description": "QuotaUsedSizeGit represents the size-based git (lfs) quota usage of a user", @@ -26738,7 +26738,7 @@ "format": "int64" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "QuotaUsedSizeRepos": { "description": "QuotaUsedSizeRepos represents the size-based repository quota usage of a user", @@ -26757,7 +26757,7 @@ "x-go-name": "Public" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Reaction": { "description": "Reaction contain one reaction", @@ -26776,7 +26776,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Reference": { "type": "object", @@ -26794,7 +26794,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Release": { "description": "Release represents a repository release", @@ -26877,7 +26877,7 @@ "x-go-name": "ZipURL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "RenameOrgOption": { "description": "RenameOrgOption options when renaming an organization", @@ -26893,7 +26893,7 @@ "x-go-name": "NewName" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "RenameUserOption": { "description": "RenameUserOption options when renaming a user", @@ -26909,7 +26909,7 @@ "x-go-name": "NewName" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ReplaceFlagsOption": { "description": "ReplaceFlagsOption options when replacing the flags of a repository", @@ -26923,7 +26923,7 @@ "x-go-name": "Flags" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "RepoCollaboratorPermission": { "description": "RepoCollaboratorPermission to get repository permission for a collaborator", @@ -26941,7 +26941,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "RepoCommit": { "type": "object", @@ -26968,7 +26968,7 @@ "$ref": "#/definitions/PayloadCommitVerification" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "RepoTopicOptions": { "description": "RepoTopicOptions a collection of repo topic names", @@ -26983,7 +26983,7 @@ "x-go-name": "Topics" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "RepoTransfer": { "description": "RepoTransfer represents a pending repo transfer", @@ -27003,7 +27003,7 @@ "x-go-name": "Teams" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Repository": { "description": "Repository represents a repository", @@ -27275,7 +27275,7 @@ "x-go-name": "WikiBranch" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "RepositoryMeta": { "description": "RepositoryMeta basic repository information", @@ -27299,12 +27299,12 @@ "x-go-name": "Owner" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ReviewStateType": { "description": "ReviewStateType review state type", "type": "string", - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "SearchResults": { "description": "SearchResults results of a successful search", @@ -27322,7 +27322,7 @@ "x-go-name": "OK" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Secret": { "description": "Secret represents a secret", @@ -27339,7 +27339,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "ServerVersion": { "description": "ServerVersion wraps the version of the server", @@ -27350,7 +27350,7 @@ "x-go-name": "Version" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "SetUserQuotaGroupsOptions": { "description": "SetUserQuotaGroupsOptions represents the quota groups of a user", @@ -27368,12 +27368,12 @@ "x-go-name": "Groups" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "StateType": { "description": "StateType issue state type", "type": "string", - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "StopWatch": { "description": "StopWatch represent a running stopwatch", @@ -27411,7 +27411,7 @@ "x-go-name": "Seconds" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "SubmitPullReviewOptions": { "description": "SubmitPullReviewOptions are options to submit a pending pull review", @@ -27425,7 +27425,7 @@ "$ref": "#/definitions/ReviewStateType" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Tag": { "description": "Tag represents a repository tag", @@ -27458,7 +27458,7 @@ "x-go-name": "ZipballURL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "TagArchiveDownloadCount": { "description": "TagArchiveDownloadCount counts how many times a archive was downloaded", @@ -27475,7 +27475,7 @@ "x-go-name": "Zip" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "TagProtection": { "description": "TagProtection represents a tag protection", @@ -27515,7 +27515,7 @@ "x-go-name": "WhitelistUsernames" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "Team": { "description": "Team represents a team in an organization", @@ -27591,13 +27591,13 @@ } } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "TimeStamp": { "description": "TimeStamp defines a timestamp", "type": "integer", "format": "int64", - "x-go-package": "code.gitea.io/gitea/modules/timeutil" + "x-go-package": "forgejo.org/modules/timeutil" }, "TimelineComment": { "description": "TimelineComment represents a timeline comment (comment of any type) on a commit or issue", @@ -27717,7 +27717,7 @@ "$ref": "#/definitions/User" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "TopicName": { "description": "TopicName a list of repo topic names", @@ -27731,7 +27731,7 @@ "x-go-name": "TopicNames" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "TopicResponse": { "description": "TopicResponse for returning topics", @@ -27762,7 +27762,7 @@ "x-go-name": "Updated" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "TrackedTime": { "description": "TrackedTime worked time for an issue / pr", @@ -27804,7 +27804,7 @@ "x-go-name": "UserName" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "TransferRepoOption": { "description": "TransferRepoOption options when transfer a repository's ownership", @@ -27827,7 +27827,7 @@ "x-go-name": "TeamIDs" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "UpdateBranchRepoOption": { "description": "UpdateBranchRepoOption options when updating a branch in a repository", @@ -27843,7 +27843,7 @@ "x-go-name": "Name" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "UpdateFileOptions": { "description": "UpdateFileOptions options for updating files\nNote: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)", @@ -27898,7 +27898,7 @@ "x-go-name": "Signoff" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "UpdateRepoAvatarOption": { "description": "UpdateRepoAvatarUserOption options when updating the repo avatar", @@ -27910,7 +27910,7 @@ "x-go-name": "Image" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "UpdateUserAvatarOption": { "description": "UpdateUserAvatarUserOption options when updating the user avatar", @@ -27922,7 +27922,7 @@ "x-go-name": "Image" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "UpdateVariableOption": { "description": "UpdateVariableOption the option when updating variable", @@ -27942,7 +27942,7 @@ "x-go-name": "Value" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "User": { "description": "User represents a user", @@ -28068,7 +28068,7 @@ "x-go-name": "Website" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "UserHeatmapData": { "description": "UserHeatmapData represents the data needed to create a heatmap", @@ -28083,7 +28083,7 @@ "$ref": "#/definitions/TimeStamp" } }, - "x-go-package": "code.gitea.io/gitea/models/activities" + "x-go-package": "forgejo.org/models/activities" }, "UserSettings": { "description": "UserSettings represents user settings", @@ -28139,7 +28139,7 @@ "x-go-name": "Website" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "UserSettingsOptions": { "description": "UserSettingsOptions represents options to change user settings", @@ -28195,7 +28195,7 @@ "x-go-name": "Website" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "WatchInfo": { "description": "WatchInfo represents an API watch status of one repository", @@ -28226,7 +28226,7 @@ "x-go-name": "URL" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "WikiCommit": { "description": "WikiCommit page commit/revision", @@ -28247,7 +28247,7 @@ "x-go-name": "ID" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "WikiCommitList": { "description": "WikiCommitList commit/revision list", @@ -28266,7 +28266,7 @@ "x-go-name": "Count" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "WikiPage": { "description": "WikiPage a wiki page", @@ -28306,7 +28306,7 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" }, "WikiPageMetaData": { "description": "WikiPageMetaData wiki page meta information", @@ -28328,7 +28328,7 @@ "x-go-name": "Title" } }, - "x-go-package": "code.gitea.io/gitea/modules/structs" + "x-go-package": "forgejo.org/modules/structs" } }, "responses": { diff --git a/tests/e2e/changes.go b/tests/e2e/changes.go index 1e5533bc6b..d1d318fd06 100644 --- a/tests/e2e/changes.go +++ b/tests/e2e/changes.go @@ -8,7 +8,7 @@ import ( "os" "strings" - "code.gitea.io/gitea/modules/log" + "forgejo.org/modules/log" "github.com/gobwas/glob" ) diff --git a/tests/e2e/debugserver_test.go b/tests/e2e/debugserver_test.go index 49461fabe5..8742790b14 100644 --- a/tests/e2e/debugserver_test.go +++ b/tests/e2e/debugserver_test.go @@ -17,7 +17,7 @@ import ( "syscall" "testing" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/setting" ) func TestDebugserver(t *testing.T) { diff --git a/tests/e2e/declare_repos_test.go b/tests/e2e/declare_repos_test.go index c55a42ac66..f701b11f97 100644 --- a/tests/e2e/declare_repos_test.go +++ b/tests/e2e/declare_repos_test.go @@ -9,12 +9,12 @@ import ( "testing" "time" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index aecb2c70c7..1961a4b68a 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -16,15 +16,15 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/testlogger" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/testlogger" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers" + "forgejo.org/tests" ) var testE2eWebRoutes *web.Route diff --git a/tests/e2e/utils_e2e_test.go b/tests/e2e/utils_e2e_test.go index b96d61fd2c..d57c7bc2d3 100644 --- a/tests/e2e/utils_e2e_test.go +++ b/tests/e2e/utils_e2e_test.go @@ -18,12 +18,12 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - modules_session "code.gitea.io/gitea/modules/session" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + modules_session "forgejo.org/modules/session" + "forgejo.org/modules/setting" + "forgejo.org/tests" "code.forgejo.org/go-chi/session" "github.com/stretchr/testify/require" diff --git a/tests/fuzz/fuzz_test.go b/tests/fuzz/fuzz_test.go index d16f26c085..754c7ef064 100644 --- a/tests/fuzz/fuzz_test.go +++ b/tests/fuzz/fuzz_test.go @@ -9,9 +9,9 @@ import ( "io" "testing" - "code.gitea.io/gitea/modules/markup" - "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/setting" + "forgejo.org/modules/markup" + "forgejo.org/modules/markup/markdown" + "forgejo.org/modules/setting" ) var renderContext = markup.RenderContext{ diff --git a/tests/gitea-repositories-meta/user2/commits_search_test.git/config b/tests/gitea-repositories-meta/user2/commits_search_test.git/config index bfbada5989..534a026f8f 100644 --- a/tests/gitea-repositories-meta/user2/commits_search_test.git/config +++ b/tests/gitea-repositories-meta/user2/commits_search_test.git/config @@ -3,6 +3,6 @@ filemode = true bare = true [remote "origin"] - url = /home/mura/go/src/code.gitea.io/gitea/tests/gitea-repositories-meta/user2/commits_search_test/ + url = /home/mura/go/src/forgejo.org/tests/gitea-repositories-meta/user2/commits_search_test/ fetch = +refs/*:refs/* mirror = true diff --git a/tests/integration/actions_commit_status_test.go b/tests/integration/actions_commit_status_test.go index 0dae5db344..a14b427c98 100644 --- a/tests/integration/actions_commit_status_test.go +++ b/tests/integration/actions_commit_status_test.go @@ -7,16 +7,16 @@ import ( "net/url" "testing" - actions_model "code.gitea.io/gitea/models/actions" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/services/automerge" + actions_model "forgejo.org/models/actions" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/services/actions" + "forgejo.org/services/automerge" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/actions_job_test.go b/tests/integration/actions_job_test.go index a2ccbf0e3d..412215086e 100644 --- a/tests/integration/actions_job_test.go +++ b/tests/integration/actions_job_test.go @@ -12,15 +12,15 @@ import ( "testing" "time" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" runnerv1 "code.gitea.io/actions-proto-go/runner/v1" "github.com/stretchr/testify/assert" diff --git a/tests/integration/actions_log_test.go b/tests/integration/actions_log_test.go index d66eada950..2c2e2e88b3 100644 --- a/tests/integration/actions_log_test.go +++ b/tests/integration/actions_log_test.go @@ -11,13 +11,13 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/test" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/test" runnerv1 "code.gitea.io/actions-proto-go/runner/v1" "github.com/stretchr/testify/assert" diff --git a/tests/integration/actions_route_test.go b/tests/integration/actions_route_test.go index daeae30b38..2641fb6a04 100644 --- a/tests/integration/actions_route_test.go +++ b/tests/integration/actions_route_test.go @@ -11,12 +11,12 @@ import ( "strings" "testing" - actions_model "code.gitea.io/gitea/models/actions" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/actions_runner_test.go b/tests/integration/actions_runner_test.go index 0cc4204567..93f38db9ee 100644 --- a/tests/integration/actions_runner_test.go +++ b/tests/integration/actions_runner_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/setting" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/setting" pingv1 "code.gitea.io/actions-proto-go/ping/v1" "code.gitea.io/actions-proto-go/ping/v1/pingv1connect" diff --git a/tests/integration/actions_trigger_test.go b/tests/integration/actions_trigger_test.go index ecdf8b7076..2d5dd3b957 100644 --- a/tests/integration/actions_trigger_test.go +++ b/tests/integration/actions_trigger_test.go @@ -11,29 +11,29 @@ import ( "testing" "time" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - actions_module "code.gitea.io/gitea/modules/actions" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - webhook_module "code.gitea.io/gitea/modules/webhook" - actions_service "code.gitea.io/gitea/services/actions" - issue_service "code.gitea.io/gitea/services/issue" - pull_service "code.gitea.io/gitea/services/pull" - release_service "code.gitea.io/gitea/services/release" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + actions_module "forgejo.org/modules/actions" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + webhook_module "forgejo.org/modules/webhook" + actions_service "forgejo.org/services/actions" + issue_service "forgejo.org/services/issue" + pull_service "forgejo.org/services/pull" + release_service "forgejo.org/services/release" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/actions_variables_test.go b/tests/integration/actions_variables_test.go index 0179a543dc..0b59284f27 100644 --- a/tests/integration/actions_variables_test.go +++ b/tests/integration/actions_variables_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - actions_model "code.gitea.io/gitea/models/actions" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - forgejo_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + forgejo_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/admin_config_test.go b/tests/integration/admin_config_test.go index 860a92d6a3..92faf7ef01 100644 --- a/tests/integration/admin_config_test.go +++ b/tests/integration/admin_config_test.go @@ -7,8 +7,8 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/admin_user_test.go b/tests/integration/admin_user_test.go index b61c50f4a8..f98650c567 100644 --- a/tests/integration/admin_user_test.go +++ b/tests/integration/admin_user_test.go @@ -10,14 +10,14 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/timeutil" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_actions_artifact_test.go b/tests/integration/api_actions_artifact_test.go index 6393fc53cc..dc2b86d28b 100644 --- a/tests/integration/api_actions_artifact_test.go +++ b/tests/integration/api_actions_artifact_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_actions_artifact_v4_test.go b/tests/integration/api_actions_artifact_v4_test.go index 43df1aeee0..9fa7590620 100644 --- a/tests/integration/api_actions_artifact_v4_test.go +++ b/tests/integration/api_actions_artifact_v4_test.go @@ -14,10 +14,10 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/routers/api/actions" - actions_service "code.gitea.io/gitea/services/actions" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/storage" + "forgejo.org/routers/api/actions" + actions_service "forgejo.org/services/actions" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_activitypub_actor_test.go b/tests/integration/api_activitypub_actor_test.go index de4d669c9d..778a34d785 100644 --- a/tests/integration/api_activitypub_actor_test.go +++ b/tests/integration/api_activitypub_actor_test.go @@ -7,10 +7,10 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" ap "github.com/go-ap/activitypub" "github.com/stretchr/testify/assert" diff --git a/tests/integration/api_activitypub_person_test.go b/tests/integration/api_activitypub_person_test.go index 846ae79891..d8492942e5 100644 --- a/tests/integration/api_activitypub_person_test.go +++ b/tests/integration/api_activitypub_person_test.go @@ -9,14 +9,14 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/activitypub" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/activitypub" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" ap "github.com/go-ap/activitypub" "github.com/stretchr/testify/assert" diff --git a/tests/integration/api_activitypub_repository_test.go b/tests/integration/api_activitypub_repository_test.go index a86e32b278..29fbe6d781 100644 --- a/tests/integration/api_activitypub_repository_test.go +++ b/tests/integration/api_activitypub_repository_test.go @@ -10,16 +10,16 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/forgefed" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/activitypub" - forgefed_modules "code.gitea.io/gitea/modules/forgefed" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/forgefed" + "forgejo.org/models/unittest" + "forgejo.org/models/user" + "forgejo.org/modules/activitypub" + forgefed_modules "forgejo.org/modules/forgefed" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_admin_actions_test.go b/tests/integration/api_admin_actions_test.go index fd55f0fd2e..763c35544a 100644 --- a/tests/integration/api_admin_actions_test.go +++ b/tests/integration/api_admin_actions_test.go @@ -8,11 +8,11 @@ import ( "net/http" "testing" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_admin_org_test.go b/tests/integration/api_admin_org_test.go index 823ef2f136..df5e961ec6 100644 --- a/tests/integration/api_admin_org_test.go +++ b/tests/integration/api_admin_org_test.go @@ -8,11 +8,11 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_admin_test.go b/tests/integration/api_admin_test.go index 5f8d360dec..c5f8906bfc 100644 --- a/tests/integration/api_admin_test.go +++ b/tests/integration/api_admin_test.go @@ -9,14 +9,14 @@ import ( "testing" "time" - asymkey_model "code.gitea.io/gitea/models/asymkey" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + asymkey_model "forgejo.org/models/asymkey" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/gobwas/glob" "github.com/stretchr/testify/assert" diff --git a/tests/integration/api_block_test.go b/tests/integration/api_block_test.go index a69ee9b74f..8b25ce9283 100644 --- a/tests/integration/api_block_test.go +++ b/tests/integration/api_block_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_branch_test.go b/tests/integration/api_branch_test.go index aa22b15ea1..df6b7022cd 100644 --- a/tests/integration/api_branch_test.go +++ b/tests/integration/api_branch_test.go @@ -9,12 +9,12 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + git_model "forgejo.org/models/git" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_comment_attachment_test.go b/tests/integration/api_comment_attachment_test.go index db1b98a20f..16eb3c9b12 100644 --- a/tests/integration/api_comment_attachment_test.go +++ b/tests/integration/api_comment_attachment_test.go @@ -12,15 +12,15 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/services/convert" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_comment_test.go b/tests/integration/api_comment_test.go index c6905293d0..fd0cadbb1a 100644 --- a/tests/integration/api_comment_test.go +++ b/tests/integration/api_comment_test.go @@ -10,16 +10,16 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/references" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/references" + api "forgejo.org/modules/structs" + "forgejo.org/services/convert" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_feed_plain_text_titles_test.go b/tests/integration/api_feed_plain_text_titles_test.go index b1247780d8..889d0a103a 100644 --- a/tests/integration/api_feed_plain_text_titles_test.go +++ b/tests/integration/api_feed_plain_text_titles_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_forgejo_root_test.go b/tests/integration/api_forgejo_root_test.go index d21c9449b3..a5c1b8abe0 100644 --- a/tests/integration/api_forgejo_root_test.go +++ b/tests/integration/api_forgejo_root_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_forgejo_version_test.go b/tests/integration/api_forgejo_version_test.go index 5c95fd373c..b42e4a2bd7 100644 --- a/tests/integration/api_forgejo_version_test.go +++ b/tests/integration/api_forgejo_version_test.go @@ -7,12 +7,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - v1 "code.gitea.io/gitea/routers/api/forgejo/v1" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + v1 "forgejo.org/routers/api/forgejo/v1" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_fork_test.go b/tests/integration/api_fork_test.go index 1d04a4b013..2809af2748 100644 --- a/tests/integration/api_fork_test.go +++ b/tests/integration/api_fork_test.go @@ -9,14 +9,14 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_gitignore_templates_test.go b/tests/integration/api_gitignore_templates_test.go index c58f5eebfe..2412b55d3a 100644 --- a/tests/integration/api_gitignore_templates_test.go +++ b/tests/integration/api_gitignore_templates_test.go @@ -8,10 +8,10 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/options" - repo_module "code.gitea.io/gitea/modules/repository" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/options" + repo_module "forgejo.org/modules/repository" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_gpg_keys_test.go b/tests/integration/api_gpg_keys_test.go index ec0dafc2d6..1acbf91de0 100644 --- a/tests/integration/api_gpg_keys_test.go +++ b/tests/integration/api_gpg_keys_test.go @@ -9,9 +9,9 @@ import ( "strconv" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_health_test.go b/tests/integration/api_health_test.go index 5657f4fd06..22f060e79b 100644 --- a/tests/integration/api_health_test.go +++ b/tests/integration/api_health_test.go @@ -4,9 +4,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers/web/healthcheck" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/routers/web/healthcheck" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_helper_for_declarative_test.go b/tests/integration/api_helper_for_declarative_test.go index 4985f45b9c..b5941b3389 100644 --- a/tests/integration/api_helper_for_declarative_test.go +++ b/tests/integration/api_helper_for_declarative_test.go @@ -12,14 +12,14 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/queue" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/forms" + "forgejo.org/models/auth" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/queue" + api "forgejo.org/modules/structs" + "forgejo.org/services/forms" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_httpsig_test.go b/tests/integration/api_httpsig_test.go index cca477f5e1..48a0b267eb 100644 --- a/tests/integration/api_httpsig_test.go +++ b/tests/integration/api_httpsig_test.go @@ -9,11 +9,11 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/42wim/httpsig" "golang.org/x/crypto/ssh" diff --git a/tests/integration/api_issue_attachment_test.go b/tests/integration/api_issue_attachment_test.go index 77e752d122..ef7e6183f9 100644 --- a/tests/integration/api_issue_attachment_test.go +++ b/tests/integration/api_issue_attachment_test.go @@ -12,13 +12,13 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_issue_config_test.go b/tests/integration/api_issue_config_test.go index 16f81e785d..809be572da 100644 --- a/tests/integration/api_issue_config_test.go +++ b/tests/integration/api_issue_config_test.go @@ -9,11 +9,11 @@ import ( "net/http" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_issue_label_test.go b/tests/integration/api_issue_label_test.go index ebcf29a13d..7b2fbd18be 100644 --- a/tests/integration/api_issue_label_test.go +++ b/tests/integration/api_issue_label_test.go @@ -10,13 +10,13 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_issue_milestone_test.go b/tests/integration/api_issue_milestone_test.go index 32ac56298f..2ab7f9a346 100644 --- a/tests/integration/api_issue_milestone_test.go +++ b/tests/integration/api_issue_milestone_test.go @@ -8,13 +8,13 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_issue_pin_test.go b/tests/integration/api_issue_pin_test.go index 2f257a89e0..2073241903 100644 --- a/tests/integration/api_issue_pin_test.go +++ b/tests/integration/api_issue_pin_test.go @@ -8,13 +8,13 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_issue_reaction_test.go b/tests/integration/api_issue_reaction_test.go index 4ca909f281..817c07898c 100644 --- a/tests/integration/api_issue_reaction_test.go +++ b/tests/integration/api_issue_reaction_test.go @@ -9,15 +9,15 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/services/convert" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_issue_stopwatch_test.go b/tests/integration/api_issue_stopwatch_test.go index 4765787e6f..f395ad1a61 100644 --- a/tests/integration/api_issue_stopwatch_test.go +++ b/tests/integration/api_issue_stopwatch_test.go @@ -7,14 +7,14 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_issue_subscription_test.go b/tests/integration/api_issue_subscription_test.go index 7a716301c4..4d1b9b2fb1 100644 --- a/tests/integration/api_issue_subscription_test.go +++ b/tests/integration/api_issue_subscription_test.go @@ -8,14 +8,14 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_issue_templates_test.go b/tests/integration/api_issue_templates_test.go index d634329514..49b1a6f277 100644 --- a/tests/integration/api_issue_templates_test.go +++ b/tests/integration/api_issue_templates_test.go @@ -9,11 +9,11 @@ import ( "net/url" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_issue_test.go b/tests/integration/api_issue_test.go index 2d3fd80c06..99fc158fdd 100644 --- a/tests/integration/api_issue_test.go +++ b/tests/integration/api_issue_test.go @@ -12,15 +12,15 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_issue_tracked_time_test.go b/tests/integration/api_issue_tracked_time_test.go index 90a59fb481..41def89a55 100644 --- a/tests/integration/api_issue_tracked_time_test.go +++ b/tests/integration/api_issue_tracked_time_test.go @@ -9,13 +9,13 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_keys_test.go b/tests/integration/api_keys_test.go index 86daa8c506..a6f0fbe69b 100644 --- a/tests/integration/api_keys_test.go +++ b/tests/integration/api_keys_test.go @@ -9,14 +9,14 @@ import ( "net/url" "testing" - asymkey_model "code.gitea.io/gitea/models/asymkey" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + asymkey_model "forgejo.org/models/asymkey" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_label_templates_test.go b/tests/integration/api_label_templates_test.go index 3039f8c60c..545a1736d0 100644 --- a/tests/integration/api_label_templates_test.go +++ b/tests/integration/api_label_templates_test.go @@ -10,9 +10,9 @@ import ( "strings" "testing" - repo_module "code.gitea.io/gitea/modules/repository" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + repo_module "forgejo.org/modules/repository" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_license_templates_test.go b/tests/integration/api_license_templates_test.go index e12aab7c2c..7bdd1bc7dc 100644 --- a/tests/integration/api_license_templates_test.go +++ b/tests/integration/api_license_templates_test.go @@ -9,10 +9,10 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/modules/options" - repo_module "code.gitea.io/gitea/modules/repository" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/options" + repo_module "forgejo.org/modules/repository" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_nodeinfo_test.go b/tests/integration/api_nodeinfo_test.go index d000083717..c4f2309aac 100644 --- a/tests/integration/api_nodeinfo_test.go +++ b/tests/integration/api_nodeinfo_test.go @@ -7,11 +7,11 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_notification_test.go b/tests/integration/api_notification_test.go index ad233d9e73..b9efaa43a3 100644 --- a/tests/integration/api_notification_test.go +++ b/tests/integration/api_notification_test.go @@ -8,14 +8,14 @@ import ( "net/http" "testing" - activities_model "code.gitea.io/gitea/models/activities" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + activities_model "forgejo.org/models/activities" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_oauth2_apps_test.go b/tests/integration/api_oauth2_apps_test.go index 85c7184b64..2490a11888 100644 --- a/tests/integration/api_oauth2_apps_test.go +++ b/tests/integration/api_oauth2_apps_test.go @@ -8,11 +8,11 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_org_actions_test.go b/tests/integration/api_org_actions_test.go index 8c1948fc4a..ed8f91e5c2 100644 --- a/tests/integration/api_org_actions_test.go +++ b/tests/integration/api_org_actions_test.go @@ -8,11 +8,11 @@ import ( "net/http" "testing" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_org_avatar_test.go b/tests/integration/api_org_avatar_test.go index bbe116cd60..aa5ca0fa08 100644 --- a/tests/integration/api_org_avatar_test.go +++ b/tests/integration/api_org_avatar_test.go @@ -9,9 +9,9 @@ import ( "os" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_org_test.go b/tests/integration/api_org_test.go index 5f92271d64..37e6035045 100644 --- a/tests/integration/api_org_test.go +++ b/tests/integration/api_org_test.go @@ -9,17 +9,17 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + "forgejo.org/models/perm" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_packages_alpine_test.go b/tests/integration/api_packages_alpine_test.go index 2264625556..d3cf56394c 100644 --- a/tests/integration/api_packages_alpine_test.go +++ b/tests/integration/api_packages_alpine_test.go @@ -14,13 +14,13 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - alpine_module "code.gitea.io/gitea/modules/packages/alpine" - alpine_service "code.gitea.io/gitea/services/packages/alpine" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + alpine_module "forgejo.org/modules/packages/alpine" + alpine_service "forgejo.org/services/packages/alpine" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_alt_test.go b/tests/integration/api_packages_alt_test.go index 5fc289c134..e84af7dd15 100644 --- a/tests/integration/api_packages_alt_test.go +++ b/tests/integration/api_packages_alt_test.go @@ -16,15 +16,15 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - packages_module "code.gitea.io/gitea/modules/packages" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + packages_module "forgejo.org/modules/packages" + rpm_module "forgejo.org/modules/packages/rpm" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_arch_test.go b/tests/integration/api_packages_arch_test.go index 57db324a2f..2463fd1c8e 100644 --- a/tests/integration/api_packages_arch_test.go +++ b/tests/integration/api_packages_arch_test.go @@ -18,12 +18,12 @@ import ( "testing" "testing/fstest" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - arch_model "code.gitea.io/gitea/modules/packages/arch" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + arch_model "forgejo.org/modules/packages/arch" + "forgejo.org/tests" "github.com/ProtonMail/go-crypto/openpgp/armor" "github.com/ProtonMail/go-crypto/openpgp/packet" diff --git a/tests/integration/api_packages_cargo_test.go b/tests/integration/api_packages_cargo_test.go index 7a9105eb3a..048859e312 100644 --- a/tests/integration/api_packages_cargo_test.go +++ b/tests/integration/api_packages_cargo_test.go @@ -12,19 +12,19 @@ import ( neturl "net/url" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/json" - cargo_module "code.gitea.io/gitea/modules/packages/cargo" - "code.gitea.io/gitea/modules/setting" - cargo_router "code.gitea.io/gitea/routers/api/packages/cargo" - gitea_context "code.gitea.io/gitea/services/context" - cargo_service "code.gitea.io/gitea/services/packages/cargo" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/json" + cargo_module "forgejo.org/modules/packages/cargo" + "forgejo.org/modules/setting" + cargo_router "forgejo.org/routers/api/packages/cargo" + gitea_context "forgejo.org/services/context" + cargo_service "forgejo.org/services/packages/cargo" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_chef_test.go b/tests/integration/api_packages_chef_test.go index febb1a8b6c..390ac50688 100644 --- a/tests/integration/api_packages_chef_test.go +++ b/tests/integration/api_packages_chef_test.go @@ -25,14 +25,14 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - chef_module "code.gitea.io/gitea/modules/packages/chef" - "code.gitea.io/gitea/modules/setting" - chef_router "code.gitea.io/gitea/routers/api/packages/chef" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + chef_module "forgejo.org/modules/packages/chef" + "forgejo.org/modules/setting" + chef_router "forgejo.org/routers/api/packages/chef" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_composer_test.go b/tests/integration/api_packages_composer_test.go index 774676f8e2..9c906a8959 100644 --- a/tests/integration/api_packages_composer_test.go +++ b/tests/integration/api_packages_composer_test.go @@ -11,15 +11,15 @@ import ( neturl "net/url" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - composer_module "code.gitea.io/gitea/modules/packages/composer" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers/api/packages/composer" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + composer_module "forgejo.org/modules/packages/composer" + "forgejo.org/modules/setting" + "forgejo.org/routers/api/packages/composer" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_conan_test.go b/tests/integration/api_packages_conan_test.go index 9d8f435068..c0185c852d 100644 --- a/tests/integration/api_packages_conan_test.go +++ b/tests/integration/api_packages_conan_test.go @@ -11,16 +11,16 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - conan_model "code.gitea.io/gitea/models/packages/conan" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - conan_module "code.gitea.io/gitea/modules/packages/conan" - "code.gitea.io/gitea/modules/setting" - conan_router "code.gitea.io/gitea/routers/api/packages/conan" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/packages" + conan_model "forgejo.org/models/packages/conan" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + conan_module "forgejo.org/modules/packages/conan" + "forgejo.org/modules/setting" + conan_router "forgejo.org/routers/api/packages/conan" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_conda_test.go b/tests/integration/api_packages_conda_test.go index 4625c5854c..6924968d35 100644 --- a/tests/integration/api_packages_conda_test.go +++ b/tests/integration/api_packages_conda_test.go @@ -12,13 +12,13 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - conda_module "code.gitea.io/gitea/modules/packages/conda" - "code.gitea.io/gitea/modules/zstd" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + conda_module "forgejo.org/modules/packages/conda" + "forgejo.org/modules/zstd" + "forgejo.org/tests" "github.com/dsnet/compress/bzip2" "github.com/stretchr/testify/assert" diff --git a/tests/integration/api_packages_container_cleanup_sha256_test.go b/tests/integration/api_packages_container_cleanup_sha256_test.go index eb63eff720..b1ed435b80 100644 --- a/tests/integration/api_packages_container_cleanup_sha256_test.go +++ b/tests/integration/api_packages_container_cleanup_sha256_test.go @@ -12,17 +12,17 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - packages_cleanup "code.gitea.io/gitea/services/packages/cleanup" - packages_container "code.gitea.io/gitea/services/packages/container" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + packages_cleanup "forgejo.org/services/packages/cleanup" + packages_container "forgejo.org/services/packages/container" + "forgejo.org/tests" oci "github.com/opencontainers/image-spec/specs-go/v1" "github.com/stretchr/testify/assert" diff --git a/tests/integration/api_packages_container_test.go b/tests/integration/api_packages_container_test.go index 3c28f45660..223c865dec 100644 --- a/tests/integration/api_packages_container_test.go +++ b/tests/integration/api_packages_container_test.go @@ -13,17 +13,17 @@ import ( "sync" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - container_model "code.gitea.io/gitea/models/packages/container" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - container_module "code.gitea.io/gitea/modules/packages/container" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + container_model "forgejo.org/models/packages/container" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + container_module "forgejo.org/modules/packages/container" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/tests" oci "github.com/opencontainers/image-spec/specs-go/v1" "github.com/stretchr/testify/assert" diff --git a/tests/integration/api_packages_cran_test.go b/tests/integration/api_packages_cran_test.go index d64b592327..2326d36171 100644 --- a/tests/integration/api_packages_cran_test.go +++ b/tests/integration/api_packages_cran_test.go @@ -12,12 +12,12 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - cran_module "code.gitea.io/gitea/modules/packages/cran" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + cran_module "forgejo.org/modules/packages/cran" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_debian_test.go b/tests/integration/api_packages_debian_test.go index d85f56fdbb..67498ec043 100644 --- a/tests/integration/api_packages_debian_test.go +++ b/tests/integration/api_packages_debian_test.go @@ -13,13 +13,13 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - debian_module "code.gitea.io/gitea/modules/packages/debian" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + debian_module "forgejo.org/modules/packages/debian" + "forgejo.org/tests" "github.com/blakesmith/ar" "github.com/stretchr/testify/assert" diff --git a/tests/integration/api_packages_generic_test.go b/tests/integration/api_packages_generic_test.go index 1a53f33387..5a3727cae5 100644 --- a/tests/integration/api_packages_generic_test.go +++ b/tests/integration/api_packages_generic_test.go @@ -10,12 +10,12 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_goproxy_test.go b/tests/integration/api_packages_goproxy_test.go index 716d90b242..1534fa73cc 100644 --- a/tests/integration/api_packages_goproxy_test.go +++ b/tests/integration/api_packages_goproxy_test.go @@ -11,11 +11,11 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_helm_test.go b/tests/integration/api_packages_helm_test.go index 4b48b74ce0..df19e7cd03 100644 --- a/tests/integration/api_packages_helm_test.go +++ b/tests/integration/api_packages_helm_test.go @@ -12,13 +12,13 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - helm_module "code.gitea.io/gitea/modules/packages/helm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + helm_module "forgejo.org/modules/packages/helm" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_maven_test.go b/tests/integration/api_packages_maven_test.go index b453f10b69..438c2f0fb5 100644 --- a/tests/integration/api_packages_maven_test.go +++ b/tests/integration/api_packages_maven_test.go @@ -11,12 +11,12 @@ import ( "sync" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/packages/maven" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/packages/maven" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_npm_test.go b/tests/integration/api_packages_npm_test.go index d0c54c306b..38c7ee54c0 100644 --- a/tests/integration/api_packages_npm_test.go +++ b/tests/integration/api_packages_npm_test.go @@ -11,14 +11,14 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/packages/npm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/packages/npm" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_nuget_test.go b/tests/integration/api_packages_nuget_test.go index 47b9cfe86c..b4da9695f0 100644 --- a/tests/integration/api_packages_nuget_test.go +++ b/tests/integration/api_packages_nuget_test.go @@ -17,16 +17,16 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - nuget_module "code.gitea.io/gitea/modules/packages/nuget" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/routers/api/packages/nuget" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + nuget_module "forgejo.org/modules/packages/nuget" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/routers/api/packages/nuget" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_pub_test.go b/tests/integration/api_packages_pub_test.go index d6bce3055e..72ba2f14cd 100644 --- a/tests/integration/api_packages_pub_test.go +++ b/tests/integration/api_packages_pub_test.go @@ -15,13 +15,13 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - pub_module "code.gitea.io/gitea/modules/packages/pub" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + pub_module "forgejo.org/modules/packages/pub" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_pypi_test.go b/tests/integration/api_packages_pypi_test.go index a75bae85ac..f025f8e577 100644 --- a/tests/integration/api_packages_pypi_test.go +++ b/tests/integration/api_packages_pypi_test.go @@ -13,12 +13,12 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/packages/pypi" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/packages/pypi" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_rpm_test.go b/tests/integration/api_packages_rpm_test.go index 853c8f0f69..3abaec3462 100644 --- a/tests/integration/api_packages_rpm_test.go +++ b/tests/integration/api_packages_rpm_test.go @@ -15,14 +15,14 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - rpm_module "code.gitea.io/gitea/modules/packages/rpm" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + rpm_module "forgejo.org/modules/packages/rpm" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/tests" "github.com/ProtonMail/go-crypto/openpgp" "github.com/sassoftware/go-rpmutils" diff --git a/tests/integration/api_packages_rubygems_test.go b/tests/integration/api_packages_rubygems_test.go index 0ec9b9321b..97c2c8bb5f 100644 --- a/tests/integration/api_packages_rubygems_test.go +++ b/tests/integration/api_packages_rubygems_test.go @@ -14,12 +14,12 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/packages/rubygems" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/packages/rubygems" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_swift_test.go b/tests/integration/api_packages_swift_test.go index 3c2a8b0694..ec0d4a2b81 100644 --- a/tests/integration/api_packages_swift_test.go +++ b/tests/integration/api_packages_swift_test.go @@ -13,14 +13,14 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - swift_module "code.gitea.io/gitea/modules/packages/swift" - "code.gitea.io/gitea/modules/setting" - swift_router "code.gitea.io/gitea/routers/api/packages/swift" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + swift_module "forgejo.org/modules/packages/swift" + "forgejo.org/modules/setting" + swift_router "forgejo.org/routers/api/packages/swift" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_test.go b/tests/integration/api_packages_test.go index c74f40a689..a157d18cd5 100644 --- a/tests/integration/api_packages_test.go +++ b/tests/integration/api_packages_test.go @@ -12,19 +12,19 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - container_model "code.gitea.io/gitea/models/packages/container" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - packages_service "code.gitea.io/gitea/services/packages" - packages_cleanup_service "code.gitea.io/gitea/services/packages/cleanup" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + container_model "forgejo.org/models/packages/container" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + packages_service "forgejo.org/services/packages" + packages_cleanup_service "forgejo.org/services/packages/cleanup" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_packages_vagrant_test.go b/tests/integration/api_packages_vagrant_test.go index b446466296..b9977d61c5 100644 --- a/tests/integration/api_packages_vagrant_test.go +++ b/tests/integration/api_packages_vagrant_test.go @@ -12,14 +12,14 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - vagrant_module "code.gitea.io/gitea/modules/packages/vagrant" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + vagrant_module "forgejo.org/modules/packages/vagrant" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_private_serv_test.go b/tests/integration/api_private_serv_test.go index 11eb730915..a7dc59a611 100644 --- a/tests/integration/api_private_serv_test.go +++ b/tests/integration/api_private_serv_test.go @@ -8,9 +8,9 @@ import ( "net/url" "testing" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/modules/private" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/perm" + "forgejo.org/modules/private" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_pull_commits_test.go b/tests/integration/api_pull_commits_test.go index d62b9d9140..bfdcd79e66 100644 --- a/tests/integration/api_pull_commits_test.go +++ b/tests/integration/api_pull_commits_test.go @@ -7,12 +7,12 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_pull_review_test.go b/tests/integration/api_pull_review_test.go index b66e65ee41..930f9b816b 100644 --- a/tests/integration/api_pull_review_test.go +++ b/tests/integration/api_pull_review_test.go @@ -8,16 +8,16 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - api "code.gitea.io/gitea/modules/structs" - issue_service "code.gitea.io/gitea/services/issue" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + api "forgejo.org/modules/structs" + issue_service "forgejo.org/services/issue" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_pull_test.go b/tests/integration/api_pull_test.go index 7b95d441dd..e35eca38cf 100644 --- a/tests/integration/api_pull_test.go +++ b/tests/integration/api_pull_test.go @@ -11,18 +11,18 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/services/forms" - issue_service "code.gitea.io/gitea/services/issue" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/services/forms" + issue_service "forgejo.org/services/issue" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_push_mirror_test.go b/tests/integration/api_push_mirror_test.go index f2135cec62..282c3aaba0 100644 --- a/tests/integration/api_push_mirror_test.go +++ b/tests/integration/api_push_mirror_test.go @@ -17,22 +17,22 @@ import ( "testing" "time" - asymkey_model "code.gitea.io/gitea/models/asymkey" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/services/migrations" - mirror_service "code.gitea.io/gitea/services/mirror" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + asymkey_model "forgejo.org/models/asymkey" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/services/migrations" + mirror_service "forgejo.org/services/mirror" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_quota_management_test.go b/tests/integration/api_quota_management_test.go index 6337e66516..c46c857197 100644 --- a/tests/integration/api_quota_management_test.go +++ b/tests/integration/api_quota_management_test.go @@ -8,16 +8,16 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - quota_model "code.gitea.io/gitea/models/quota" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + quota_model "forgejo.org/models/quota" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_quota_use_test.go b/tests/integration/api_quota_use_test.go index 11cbdcf145..2b50cca4ab 100644 --- a/tests/integration/api_quota_use_test.go +++ b/tests/integration/api_quota_use_test.go @@ -14,22 +14,22 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/migration" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/services/context" + "forgejo.org/services/forms" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_releases_test.go b/tests/integration/api_releases_test.go index 1327daf57e..98fc293fbc 100644 --- a/tests/integration/api_releases_test.go +++ b/tests/integration/api_releases_test.go @@ -13,14 +13,14 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_actions_test.go b/tests/integration/api_repo_actions_test.go index 302f0c93cb..42c1038a0e 100644 --- a/tests/integration/api_repo_actions_test.go +++ b/tests/integration/api_repo_actions_test.go @@ -10,15 +10,15 @@ import ( "strings" "testing" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_activities_test.go b/tests/integration/api_repo_activities_test.go index dbdedec372..ea966c1cfe 100644 --- a/tests/integration/api_repo_activities_test.go +++ b/tests/integration/api_repo_activities_test.go @@ -8,11 +8,11 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_archive_test.go b/tests/integration/api_repo_archive_test.go index fab3dedfab..30e62943f0 100644 --- a/tests/integration/api_repo_archive_test.go +++ b/tests/integration/api_repo_archive_test.go @@ -11,11 +11,11 @@ import ( "regexp" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_avatar_test.go b/tests/integration/api_repo_avatar_test.go index 8ee256ec9f..0bd0a54f27 100644 --- a/tests/integration/api_repo_avatar_test.go +++ b/tests/integration/api_repo_avatar_test.go @@ -10,12 +10,12 @@ import ( "os" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_branch_test.go b/tests/integration/api_repo_branch_test.go index 83159022ea..caadea7e39 100644 --- a/tests/integration/api_repo_branch_test.go +++ b/tests/integration/api_repo_branch_test.go @@ -11,14 +11,14 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_collaborator_test.go b/tests/integration/api_repo_collaborator_test.go index 81d7a591f8..61f4f578d7 100644 --- a/tests/integration/api_repo_collaborator_test.go +++ b/tests/integration/api_repo_collaborator_test.go @@ -8,12 +8,12 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_compare_test.go b/tests/integration/api_repo_compare_test.go index d4b170e60e..35f0a21d82 100644 --- a/tests/integration/api_repo_compare_test.go +++ b/tests/integration/api_repo_compare_test.go @@ -7,11 +7,11 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_edit_test.go b/tests/integration/api_repo_edit_test.go index 7de8910ee0..288c645e37 100644 --- a/tests/integration/api_repo_edit_test.go +++ b/tests/integration/api_repo_edit_test.go @@ -9,13 +9,13 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_file_create_test.go b/tests/integration/api_repo_file_create_test.go index 18aad34c98..cff891f6d8 100644 --- a/tests/integration/api_repo_file_create_test.go +++ b/tests/integration/api_repo_file_create_test.go @@ -12,15 +12,15 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_file_delete_test.go b/tests/integration/api_repo_file_delete_test.go index 7c93307e19..b76edf45ca 100644 --- a/tests/integration/api_repo_file_delete_test.go +++ b/tests/integration/api_repo_file_delete_test.go @@ -9,11 +9,11 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_file_get_test.go b/tests/integration/api_repo_file_get_test.go index 1a4e670bc1..7bd7393b01 100644 --- a/tests/integration/api_repo_file_get_test.go +++ b/tests/integration/api_repo_file_get_test.go @@ -8,10 +8,10 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_file_helpers.go b/tests/integration/api_repo_file_helpers.go index 4350092b8b..09cf93d8a5 100644 --- a/tests/integration/api_repo_file_helpers.go +++ b/tests/integration/api_repo_file_helpers.go @@ -6,12 +6,12 @@ package integration import ( "strings" - "code.gitea.io/gitea/models" - repo_model "code.gitea.io/gitea/models/repo" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - files_service "code.gitea.io/gitea/services/repository/files" + "forgejo.org/models" + repo_model "forgejo.org/models/repo" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + files_service "forgejo.org/services/repository/files" ) func createFileInBranch(user *user_model.User, repo *repo_model.Repository, treePath, branchName, content string) (*api.FilesResponse, error) { diff --git a/tests/integration/api_repo_file_update_test.go b/tests/integration/api_repo_file_update_test.go index c8ce94a3f5..4ed0df2b08 100644 --- a/tests/integration/api_repo_file_update_test.go +++ b/tests/integration/api_repo_file_update_test.go @@ -11,14 +11,14 @@ import ( "path/filepath" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_files_change_test.go b/tests/integration/api_repo_files_change_test.go index aca58025d2..d188751dab 100644 --- a/tests/integration/api_repo_files_change_test.go +++ b/tests/integration/api_repo_files_change_test.go @@ -10,14 +10,14 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/context" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/services/context" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_get_contents_list_test.go b/tests/integration/api_repo_get_contents_list_test.go index e76ccd9932..543f10f6d2 100644 --- a/tests/integration/api_repo_get_contents_list_test.go +++ b/tests/integration/api_repo_get_contents_list_test.go @@ -9,15 +9,15 @@ import ( "path/filepath" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - repo_service "code.gitea.io/gitea/services/repository" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + repo_service "forgejo.org/services/repository" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_get_contents_test.go b/tests/integration/api_repo_get_contents_test.go index cb321b8b1f..9cf266b3dd 100644 --- a/tests/integration/api_repo_get_contents_test.go +++ b/tests/integration/api_repo_get_contents_test.go @@ -9,15 +9,15 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - repo_service "code.gitea.io/gitea/services/repository" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + repo_service "forgejo.org/services/repository" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_git_blobs_test.go b/tests/integration/api_repo_git_blobs_test.go index 184362e7e3..980fff1e52 100644 --- a/tests/integration/api_repo_git_blobs_test.go +++ b/tests/integration/api_repo_git_blobs_test.go @@ -7,12 +7,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_git_commits_test.go b/tests/integration/api_repo_git_commits_test.go index c4c626eb49..e80c0024b8 100644 --- a/tests/integration/api_repo_git_commits_test.go +++ b/tests/integration/api_repo_git_commits_test.go @@ -7,11 +7,11 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_git_hook_test.go b/tests/integration/api_repo_git_hook_test.go index 9917b41790..aadc231d82 100644 --- a/tests/integration/api_repo_git_hook_test.go +++ b/tests/integration/api_repo_git_hook_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_git_notes_test.go b/tests/integration/api_repo_git_notes_test.go index 1b5e5d652c..dfafec7135 100644 --- a/tests/integration/api_repo_git_notes_test.go +++ b/tests/integration/api_repo_git_notes_test.go @@ -9,11 +9,11 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_git_ref_test.go b/tests/integration/api_repo_git_ref_test.go index 875752ae3f..a4c05e208c 100644 --- a/tests/integration/api_repo_git_ref_test.go +++ b/tests/integration/api_repo_git_ref_test.go @@ -7,10 +7,10 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" ) func TestAPIReposGitRefs(t *testing.T) { diff --git a/tests/integration/api_repo_git_tags_test.go b/tests/integration/api_repo_git_tags_test.go index c5883a8058..73d7250c46 100644 --- a/tests/integration/api_repo_git_tags_test.go +++ b/tests/integration/api_repo_git_tags_test.go @@ -8,15 +8,15 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_git_trees_test.go b/tests/integration/api_repo_git_trees_test.go index 8eec6d8d22..f321760218 100644 --- a/tests/integration/api_repo_git_trees_test.go +++ b/tests/integration/api_repo_git_trees_test.go @@ -7,11 +7,11 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" ) func TestAPIReposGitTrees(t *testing.T) { diff --git a/tests/integration/api_repo_hook_test.go b/tests/integration/api_repo_hook_test.go index 9ae8119b28..b2b8b47d40 100644 --- a/tests/integration/api_repo_hook_test.go +++ b/tests/integration/api_repo_hook_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_lfs_locks_test.go b/tests/integration/api_repo_lfs_locks_test.go index 4ba01e6d9b..b3a295c2de 100644 --- a/tests/integration/api_repo_lfs_locks_test.go +++ b/tests/integration/api_repo_lfs_locks_test.go @@ -9,13 +9,13 @@ import ( "testing" "time" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/lfs" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_lfs_migrate_test.go b/tests/integration/api_repo_lfs_migrate_test.go index de85b9160d..fcfa43cac4 100644 --- a/tests/integration/api_repo_lfs_migrate_test.go +++ b/tests/integration/api_repo_lfs_migrate_test.go @@ -8,14 +8,14 @@ import ( "path" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/migrations" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/lfs" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/services/migrations" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_lfs_test.go b/tests/integration/api_repo_lfs_test.go index 7a2a92d415..078cedf78e 100644 --- a/tests/integration/api_repo_lfs_test.go +++ b/tests/integration/api_repo_lfs_test.go @@ -11,17 +11,17 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/lfs" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_pulls_test.go b/tests/integration/api_repo_pulls_test.go new file mode 100644 index 0000000000..aec492e65f --- /dev/null +++ b/tests/integration/api_repo_pulls_test.go @@ -0,0 +1,34 @@ +// Copyright 2021 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + +package integration + +import ( + "fmt" + "net/http" + "testing" + + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" + "forgejo.org/tests" + + "github.com/stretchr/testify/assert" +) + +func TestAPIRepoPulls(t *testing.T) { + defer tests.PrepareTestEnv(t)() + + // repo = user2/repo1 + repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}) + + // issue id without assigned review member or review team + issueID := 5 + req := NewRequest(t, "GET", fmt.Sprintf("/api/v1/repos/%s/%s/pulls/%d", repo.OwnerName, repo.Name, issueID)) + res := MakeRequest(t, req, http.StatusOK) + var pr *api.PullRequest + DecodeJSON(t, res, &pr) + + assert.NotNil(t, pr.RequestedReviewers) + assert.NotNil(t, pr.RequestedReviewersTeams) +} diff --git a/tests/integration/api_repo_raw_test.go b/tests/integration/api_repo_raw_test.go index e5f83d1c80..5ae11a8e71 100644 --- a/tests/integration/api_repo_raw_test.go +++ b/tests/integration/api_repo_raw_test.go @@ -7,10 +7,10 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_secrets_test.go b/tests/integration/api_repo_secrets_test.go index c3074d9ece..a2c9439f03 100644 --- a/tests/integration/api_repo_secrets_test.go +++ b/tests/integration/api_repo_secrets_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" ) func TestAPIRepoSecrets(t *testing.T) { diff --git a/tests/integration/api_repo_tags_test.go b/tests/integration/api_repo_tags_test.go index 09f17ef475..81475249a1 100644 --- a/tests/integration/api_repo_tags_test.go +++ b/tests/integration/api_repo_tags_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_teams_test.go b/tests/integration/api_repo_teams_test.go index 91bfd66b3a..c75714d003 100644 --- a/tests/integration/api_repo_teams_test.go +++ b/tests/integration/api_repo_teams_test.go @@ -8,14 +8,14 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/modules/util" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_test.go b/tests/integration/api_repo_test.go index 6cc7aea2c8..cd79c6eee6 100644 --- a/tests/integration/api_repo_test.go +++ b/tests/integration/api_repo_test.go @@ -9,18 +9,18 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_repo_topic_test.go b/tests/integration/api_repo_topic_test.go index dcb8ae09da..c826fbd818 100644 --- a/tests/integration/api_repo_topic_test.go +++ b/tests/integration/api_repo_topic_test.go @@ -10,12 +10,12 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_repo_variables_test.go b/tests/integration/api_repo_variables_test.go index 7847962b07..6e3e8c1db6 100644 --- a/tests/integration/api_repo_variables_test.go +++ b/tests/integration/api_repo_variables_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" ) func TestAPIRepoVariables(t *testing.T) { diff --git a/tests/integration/api_settings_test.go b/tests/integration/api_settings_test.go index 9881578fba..e13f4062da 100644 --- a/tests/integration/api_settings_test.go +++ b/tests/integration/api_settings_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_team_test.go b/tests/integration/api_team_test.go index 4fee39d687..41d34dcd50 100644 --- a/tests/integration/api_team_test.go +++ b/tests/integration/api_team_test.go @@ -9,17 +9,17 @@ import ( "sort" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/services/convert" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_team_user_test.go b/tests/integration/api_team_user_test.go index 6c80bc9f80..0c76dd459d 100644 --- a/tests/integration/api_team_user_test.go +++ b/tests/integration/api_team_user_test.go @@ -8,13 +8,13 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/convert" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/services/convert" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_token_test.go b/tests/integration/api_token_test.go index f94a0986f2..aba6a25256 100644 --- a/tests/integration/api_token_test.go +++ b/tests/integration/api_token_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_twofa_test.go b/tests/integration/api_twofa_test.go index 9de096ed2f..6441b23199 100644 --- a/tests/integration/api_twofa_test.go +++ b/tests/integration/api_twofa_test.go @@ -8,11 +8,11 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/pquerna/otp/totp" "github.com/stretchr/testify/assert" diff --git a/tests/integration/api_user_actions_test.go b/tests/integration/api_user_actions_test.go index a03d4e95ae..1eb5089ee4 100644 --- a/tests/integration/api_user_actions_test.go +++ b/tests/integration/api_user_actions_test.go @@ -8,11 +8,11 @@ import ( "net/http" "testing" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_avatar_test.go b/tests/integration/api_user_avatar_test.go index 22dc09a6b7..858e6cf71f 100644 --- a/tests/integration/api_user_avatar_test.go +++ b/tests/integration/api_user_avatar_test.go @@ -9,9 +9,9 @@ import ( "os" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/api_user_email_test.go b/tests/integration/api_user_email_test.go index 6441e2ed8e..b0907ad1cf 100644 --- a/tests/integration/api_user_email_test.go +++ b/tests/integration/api_user_email_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_follow_test.go b/tests/integration/api_user_follow_test.go index 68443eff48..703d8ff494 100644 --- a/tests/integration/api_user_follow_test.go +++ b/tests/integration/api_user_follow_test.go @@ -8,9 +8,9 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_heatmap_test.go b/tests/integration/api_user_heatmap_test.go index a23536735b..69d2524aaa 100644 --- a/tests/integration/api_user_heatmap_test.go +++ b/tests/integration/api_user_heatmap_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - activities_model "code.gitea.io/gitea/models/activities" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/tests" + activities_model "forgejo.org/models/activities" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/timeutil" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_info_test.go b/tests/integration/api_user_info_test.go index 89f7266859..eefabe52ac 100644 --- a/tests/integration/api_user_info_test.go +++ b/tests/integration/api_user_info_test.go @@ -8,11 +8,11 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_org_perm_test.go b/tests/integration/api_user_org_perm_test.go index 85bb1db170..9a09a34087 100644 --- a/tests/integration/api_user_org_perm_test.go +++ b/tests/integration/api_user_org_perm_test.go @@ -8,9 +8,9 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_orgs_test.go b/tests/integration/api_user_orgs_test.go index e31199406d..ca3fc7df34 100644 --- a/tests/integration/api_user_orgs_test.go +++ b/tests/integration/api_user_orgs_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_search_test.go b/tests/integration/api_user_search_test.go index ab52b26531..3df3e45778 100644 --- a/tests/integration/api_user_search_test.go +++ b/tests/integration/api_user_search_test.go @@ -7,13 +7,13 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_secrets_test.go b/tests/integration/api_user_secrets_test.go index 56bf30e804..50ecdedfd6 100644 --- a/tests/integration/api_user_secrets_test.go +++ b/tests/integration/api_user_secrets_test.go @@ -8,9 +8,9 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" ) func TestAPIUserSecrets(t *testing.T) { diff --git a/tests/integration/api_user_star_test.go b/tests/integration/api_user_star_test.go index aafe9cfb8b..27e5b9e0ca 100644 --- a/tests/integration/api_user_star_test.go +++ b/tests/integration/api_user_star_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_user_variables_test.go b/tests/integration/api_user_variables_test.go index 9fd84ddf81..2e219be7ec 100644 --- a/tests/integration/api_user_variables_test.go +++ b/tests/integration/api_user_variables_test.go @@ -8,9 +8,9 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" ) func TestAPIUserVariables(t *testing.T) { diff --git a/tests/integration/api_user_watch_test.go b/tests/integration/api_user_watch_test.go index 953e00551d..fd8964a8ed 100644 --- a/tests/integration/api_user_watch_test.go +++ b/tests/integration/api_user_watch_test.go @@ -8,9 +8,9 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/api_wiki_test.go b/tests/integration/api_wiki_test.go index a1018e45be..1720587dd4 100644 --- a/tests/integration/api_wiki_test.go +++ b/tests/integration/api_wiki_test.go @@ -11,15 +11,15 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - api "code.gitea.io/gitea/modules/structs" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + api "forgejo.org/modules/structs" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/appearance_settings_test.go b/tests/integration/appearance_settings_test.go index ad87887331..33ca9f97aa 100644 --- a/tests/integration/appearance_settings_test.go +++ b/tests/integration/appearance_settings_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/attachment_test.go b/tests/integration/attachment_test.go index 7bd3e680f7..5920620f48 100644 --- a/tests/integration/attachment_test.go +++ b/tests/integration/attachment_test.go @@ -13,10 +13,10 @@ import ( "strings" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/storage" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/auth_ldap_test.go b/tests/integration/auth_ldap_test.go index 42d19341ba..6b9a71a5aa 100644 --- a/tests/integration/auth_ldap_test.go +++ b/tests/integration/auth_ldap_test.go @@ -9,16 +9,16 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/services/auth" - "code.gitea.io/gitea/services/auth/source/ldap" - "code.gitea.io/gitea/tests" + "forgejo.org/models" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/translation" + "forgejo.org/services/auth" + "forgejo.org/services/auth/source/ldap" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/auth_token_test.go b/tests/integration/auth_token_test.go index d1fd5dda83..b4242c2681 100644 --- a/tests/integration/auth_token_test.go +++ b/tests/integration/auth_token_test.go @@ -10,13 +10,13 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/timeutil" - "code.gitea.io/gitea/tests" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/timeutil" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/benchmarks_test.go b/tests/integration/benchmarks_test.go index 62da761d2d..40875e0c7d 100644 --- a/tests/integration/benchmarks_test.go +++ b/tests/integration/benchmarks_test.go @@ -9,9 +9,9 @@ import ( "net/url" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - api "code.gitea.io/gitea/modules/structs" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" ) // StringWithCharset random string (from https://www.calhoun.io/creating-random-strings-in-go/) diff --git a/tests/integration/block_test.go b/tests/integration/block_test.go index 8eda4ffa54..d249737555 100644 --- a/tests/integration/block_test.go +++ b/tests/integration/block_test.go @@ -11,15 +11,15 @@ import ( "strconv" "testing" - "code.gitea.io/gitea/models/activities" - "code.gitea.io/gitea/models/db" - issue_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/translation" - forgejo_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + "forgejo.org/models/activities" + "forgejo.org/models/db" + issue_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/translation" + forgejo_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/branches_test.go b/tests/integration/branches_test.go index e0482b6f2e..c599106866 100644 --- a/tests/integration/branches_test.go +++ b/tests/integration/branches_test.go @@ -9,10 +9,10 @@ import ( "net/url" "testing" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - gitea_context "code.gitea.io/gitea/services/context" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + gitea_context "forgejo.org/services/context" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/change_default_branch_test.go b/tests/integration/change_default_branch_test.go index 703834b712..84f02e41f9 100644 --- a/tests/integration/change_default_branch_test.go +++ b/tests/integration/change_default_branch_test.go @@ -8,10 +8,10 @@ import ( "net/http" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" ) func TestChangeDefaultBranch(t *testing.T) { diff --git a/tests/integration/cmd_admin_test.go b/tests/integration/cmd_admin_test.go index b493dff919..043ecef346 100644 --- a/tests/integration/cmd_admin_test.go +++ b/tests/integration/cmd_admin_test.go @@ -7,10 +7,10 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/cmd_forgejo_actions_test.go b/tests/integration/cmd_forgejo_actions_test.go index a458a6437d..bee50a6d98 100644 --- a/tests/integration/cmd_forgejo_actions_test.go +++ b/tests/integration/cmd_forgejo_actions_test.go @@ -10,11 +10,11 @@ import ( "strings" "testing" - actions_model "code.gitea.io/gitea/models/actions" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/cmd_forgejo_f3_test.go b/tests/integration/cmd_forgejo_f3_test.go index 6c34a71c71..1eda413e4c 100644 --- a/tests/integration/cmd_forgejo_f3_test.go +++ b/tests/integration/cmd_forgejo_f3_test.go @@ -9,14 +9,14 @@ import ( "fmt" "testing" - "code.gitea.io/gitea/cmd/forgejo" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/services/f3/driver/options" - "code.gitea.io/gitea/tests" + "forgejo.org/cmd/forgejo" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/services/f3/driver/options" + "forgejo.org/tests" - _ "code.gitea.io/gitea/services/f3/driver" - _ "code.gitea.io/gitea/services/f3/driver/tests" + _ "forgejo.org/services/f3/driver" + _ "forgejo.org/services/f3/driver/tests" f3_filesystem_options "code.forgejo.org/f3/gof3/v3/forges/filesystem/options" f3_logger "code.forgejo.org/f3/gof3/v3/logger" diff --git a/tests/integration/cmd_keys_test.go b/tests/integration/cmd_keys_test.go index e93a8b5b57..c76055c4a8 100644 --- a/tests/integration/cmd_keys_test.go +++ b/tests/integration/cmd_keys_test.go @@ -9,8 +9,8 @@ import ( "os/exec" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/codeowner_test.go b/tests/integration/codeowner_test.go index e1df15426d..e2eeb843d8 100644 --- a/tests/integration/codeowner_test.go +++ b/tests/integration/codeowner_test.go @@ -13,15 +13,15 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/integration/comment_roles_system_test.go b/tests/integration/comment_roles_system_test.go index 4c5d5ed8da..3b315f28f8 100644 --- a/tests/integration/comment_roles_system_test.go +++ b/tests/integration/comment_roles_system_test.go @@ -7,10 +7,10 @@ import ( "net/http" "testing" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/tests" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/commit_status_test.go b/tests/integration/commit_status_test.go index 924fc5b074..9dd1bcd283 100644 --- a/tests/integration/commit_status_test.go +++ b/tests/integration/commit_status_test.go @@ -6,11 +6,11 @@ package integration import ( "testing" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + "forgejo.org/models/unittest" + "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/compare_test.go b/tests/integration/compare_test.go index d134ebf40a..3c3e8adf94 100644 --- a/tests/integration/compare_test.go +++ b/tests/integration/compare_test.go @@ -11,17 +11,17 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/test" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/optional" + "forgejo.org/modules/test" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/cors_test.go b/tests/integration/cors_test.go index 25dfbabf41..a050693035 100644 --- a/tests/integration/cors_test.go +++ b/tests/integration/cors_test.go @@ -7,10 +7,10 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/create_no_session_test.go b/tests/integration/create_no_session_test.go index ca2a775459..ed547c5b5a 100644 --- a/tests/integration/create_no_session_test.go +++ b/tests/integration/create_no_session_test.go @@ -10,10 +10,10 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + "forgejo.org/routers" + "forgejo.org/tests" "code.forgejo.org/go-chi/session" "github.com/stretchr/testify/assert" diff --git a/tests/integration/csrf_test.go b/tests/integration/csrf_test.go index fcb9661b8a..100614cbb4 100644 --- a/tests/integration/csrf_test.go +++ b/tests/integration/csrf_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/db_collation_test.go b/tests/integration/db_collation_test.go index 0e5bf00ed7..6bfe656b9b 100644 --- a/tests/integration/db_collation_test.go +++ b/tests/integration/db_collation_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/delete_user_test.go b/tests/integration/delete_user_test.go index fa407a75ad..767d6c9724 100644 --- a/tests/integration/delete_user_test.go +++ b/tests/integration/delete_user_test.go @@ -8,13 +8,13 @@ import ( "net/http" "testing" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/organization" - access_model "code.gitea.io/gitea/models/perm/access" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/organization" + access_model "forgejo.org/models/perm/access" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" ) func assertUserDeleted(t *testing.T, userID int64, purged bool) { diff --git a/tests/integration/disable_forgotten_password_test.go b/tests/integration/disable_forgotten_password_test.go index 8a50c8d409..7a1e502d93 100644 --- a/tests/integration/disable_forgotten_password_test.go +++ b/tests/integration/disable_forgotten_password_test.go @@ -4,9 +4,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/tests" ) func TestDisableForgottenPasswordFalse(t *testing.T) { diff --git a/tests/integration/doctor_packages_nuget_test.go b/tests/integration/doctor_packages_nuget_test.go index a012567efc..e505799730 100644 --- a/tests/integration/doctor_packages_nuget_test.go +++ b/tests/integration/doctor_packages_nuget_test.go @@ -11,17 +11,17 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/log" - packages_module "code.gitea.io/gitea/modules/packages" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - doctor "code.gitea.io/gitea/services/doctor" - packages_service "code.gitea.io/gitea/services/packages" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/log" + packages_module "forgejo.org/modules/packages" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + doctor "forgejo.org/services/doctor" + packages_service "forgejo.org/services/packages" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/download_test.go b/tests/integration/download_test.go index efe5ac791c..d5e68402c5 100644 --- a/tests/integration/download_test.go +++ b/tests/integration/download_test.go @@ -7,8 +7,8 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/dummy_lang_test.go b/tests/integration/dummy_lang_test.go index d26ea6edc4..08c5176731 100644 --- a/tests/integration/dummy_lang_test.go +++ b/tests/integration/dummy_lang_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/dump_restore_test.go b/tests/integration/dump_restore_test.go index e794c3fb15..239170a256 100644 --- a/tests/integration/dump_restore_test.go +++ b/tests/integration/dump_restore_test.go @@ -13,14 +13,14 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - base "code.gitea.io/gitea/modules/migration" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/migrations" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + base "forgejo.org/modules/migration" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/services/migrations" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/easymde_test.go b/tests/integration/easymde_test.go index 2b4630d8b4..7ecbe4f5b7 100644 --- a/tests/integration/easymde_test.go +++ b/tests/integration/easymde_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" ) func TestEasyMDESwitch(t *testing.T) { diff --git a/tests/integration/editor_test.go b/tests/integration/editor_test.go index 96d388ddb9..7321aa26c9 100644 --- a/tests/integration/editor_test.go +++ b/tests/integration/editor_test.go @@ -15,14 +15,14 @@ import ( "path" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/translation" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/json" + "forgejo.org/modules/translation" + gitea_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/empty_repo_test.go b/tests/integration/empty_repo_test.go index 637de7d5c7..baea2566ff 100644 --- a/tests/integration/empty_repo_test.go +++ b/tests/integration/empty_repo_test.go @@ -11,15 +11,15 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/eventsource_test.go b/tests/integration/eventsource_test.go index e081df0e57..8eb5110e54 100644 --- a/tests/integration/eventsource_test.go +++ b/tests/integration/eventsource_test.go @@ -9,15 +9,15 @@ import ( "testing" "time" - activities_model "code.gitea.io/gitea/models/activities" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/eventsource" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + activities_model "forgejo.org/models/activities" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/eventsource" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/explore_code_test.go b/tests/integration/explore_code_test.go index 02b3a6a0f7..97cc97b996 100644 --- a/tests/integration/explore_code_test.go +++ b/tests/integration/explore_code_test.go @@ -4,9 +4,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/explore_org_test.go b/tests/integration/explore_org_test.go index e0c48ccf0d..111fd2dda7 100644 --- a/tests/integration/explore_org_test.go +++ b/tests/integration/explore_org_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/explore_repos_test.go b/tests/integration/explore_repos_test.go index c0179c50da..604d473ac5 100644 --- a/tests/integration/explore_repos_test.go +++ b/tests/integration/explore_repos_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/explore_user_test.go b/tests/integration/explore_user_test.go index d1e3fd85af..689e623e69 100644 --- a/tests/integration/explore_user_test.go +++ b/tests/integration/explore_user_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/feed_repo_test.go b/tests/integration/feed_repo_test.go index f1f56c4f63..a4d5ef2610 100644 --- a/tests/integration/feed_repo_test.go +++ b/tests/integration/feed_repo_test.go @@ -8,7 +8,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/feed_user_test.go b/tests/integration/feed_user_test.go index d618f30566..51da24252a 100644 --- a/tests/integration/feed_user_test.go +++ b/tests/integration/feed_user_test.go @@ -8,9 +8,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/forgejo_confirmation_repo_test.go b/tests/integration/forgejo_confirmation_repo_test.go index 598baa48b4..0229046efc 100644 --- a/tests/integration/forgejo_confirmation_repo_test.go +++ b/tests/integration/forgejo_confirmation_repo_test.go @@ -8,9 +8,9 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/modules/translation" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/translation" + gitea_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/forgejo_git_test.go b/tests/integration/forgejo_git_test.go index ebad074e14..693d6d9209 100644 --- a/tests/integration/forgejo_git_test.go +++ b/tests/integration/forgejo_git_test.go @@ -11,15 +11,15 @@ import ( "testing" "time" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/integration/git_helper_for_declarative_test.go b/tests/integration/git_helper_for_declarative_test.go index d2bd54eecd..89453296ca 100644 --- a/tests/integration/git_helper_for_declarative_test.go +++ b/tests/integration/git_helper_for_declarative_test.go @@ -17,10 +17,10 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/modules/util" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/git_push_test.go b/tests/integration/git_push_test.go index 50b4de9219..110bb6c886 100644 --- a/tests/integration/git_push_test.go +++ b/tests/integration/git_push_test.go @@ -9,17 +9,17 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/test" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/test" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/git_smart_http_test.go b/tests/integration/git_smart_http_test.go index 5d65cd9bd8..671ba07d23 100644 --- a/tests/integration/git_smart_http_test.go +++ b/tests/integration/git_smart_http_test.go @@ -11,13 +11,13 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/perm" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/perm" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/git_test.go b/tests/integration/git_test.go index 551912b273..d8fed1df2e 100644 --- a/tests/integration/git_test.go +++ b/tests/integration/git_test.go @@ -18,22 +18,22 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/perm" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - gitea_context "code.gitea.io/gitea/services/context" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/perm" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/lfs" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + gitea_context "forgejo.org/services/context" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/goget_test.go b/tests/integration/goget_test.go index 854f8d7a2d..d1187e4cb5 100644 --- a/tests/integration/goget_test.go +++ b/tests/integration/goget_test.go @@ -8,8 +8,8 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/gpg_git_test.go b/tests/integration/gpg_git_test.go index 5302997f6d..0fd998e815 100644 --- a/tests/integration/gpg_git_test.go +++ b/tests/integration/gpg_git_test.go @@ -10,15 +10,15 @@ import ( "os" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/process" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/process" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/ProtonMail/go-crypto/openpgp" "github.com/ProtonMail/go-crypto/openpgp/armor" diff --git a/tests/integration/incoming_email_test.go b/tests/integration/incoming_email_test.go index 66f833b28d..a47aaed87a 100644 --- a/tests/integration/incoming_email_test.go +++ b/tests/integration/incoming_email_test.go @@ -12,15 +12,15 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/services/mailer/incoming" - incoming_payload "code.gitea.io/gitea/services/mailer/incoming/payload" - token_service "code.gitea.io/gitea/services/mailer/token" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/services/mailer/incoming" + incoming_payload "forgejo.org/services/mailer/incoming/payload" + token_service "forgejo.org/services/mailer/token" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/integration_test.go b/tests/integration/integration_test.go index 0110b44c29..4257a999d9 100644 --- a/tests/integration/integration_test.go +++ b/tests/integration/integration_test.go @@ -25,23 +25,23 @@ import ( "testing" "time" - "code.gitea.io/gitea/cmd" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/testlogger" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/modules/web" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/services/auth/source/remote" - gitea_context "code.gitea.io/gitea/services/context" - user_service "code.gitea.io/gitea/services/user" - "code.gitea.io/gitea/tests" + "forgejo.org/cmd" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/graceful" + "forgejo.org/modules/json" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/testlogger" + "forgejo.org/modules/util" + "forgejo.org/modules/web" + "forgejo.org/routers" + "forgejo.org/services/auth/source/remote" + gitea_context "forgejo.org/services/context" + user_service "forgejo.org/services/user" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/markbates/goth" diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go index 70525c0c44..5b06b15dd7 100644 --- a/tests/integration/issue_test.go +++ b/tests/integration/issue_test.go @@ -15,22 +15,22 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/indexer/issues" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/references" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/indexer/issues" + "forgejo.org/modules/optional" + "forgejo.org/modules/references" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/last_updated_time_test.go b/tests/integration/last_updated_time_test.go index 34ba9a471f..0b3f08677c 100644 --- a/tests/integration/last_updated_time_test.go +++ b/tests/integration/last_updated_time_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/lfs_getobject_test.go b/tests/integration/lfs_getobject_test.go index 351c1a38a4..ddaef827ef 100644 --- a/tests/integration/lfs_getobject_test.go +++ b/tests/integration/lfs_getobject_test.go @@ -11,14 +11,14 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/models/auth" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/modules/json" + "forgejo.org/modules/lfs" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/klauspost/compress/gzhttp" gzipp "github.com/klauspost/compress/gzip" diff --git a/tests/integration/lfs_local_endpoint_test.go b/tests/integration/lfs_local_endpoint_test.go index d42888bbe1..8962e0a710 100644 --- a/tests/integration/lfs_local_endpoint_test.go +++ b/tests/integration/lfs_local_endpoint_test.go @@ -10,8 +10,8 @@ import ( "path/filepath" "testing" - "code.gitea.io/gitea/modules/lfs" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/lfs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/lfs_view_test.go b/tests/integration/lfs_view_test.go index 9b663fa8e7..6df5855ed6 100644 --- a/tests/integration/lfs_view_test.go +++ b/tests/integration/lfs_view_test.go @@ -9,12 +9,12 @@ import ( "strings" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/lfs" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/lfs" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/linguist_test.go b/tests/integration/linguist_test.go index 8690401d8a..85080c1d2e 100644 --- a/tests/integration/linguist_test.go +++ b/tests/integration/linguist_test.go @@ -10,14 +10,14 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/indexer/stats" - "code.gitea.io/gitea/modules/queue" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/indexer/stats" + "forgejo.org/modules/queue" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/links_test.go b/tests/integration/links_test.go index e9ad933b24..3d240f900a 100644 --- a/tests/integration/links_test.go +++ b/tests/integration/links_test.go @@ -9,11 +9,11 @@ import ( "path" "testing" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - forgejo_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + forgejo_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/markup_external_test.go b/tests/integration/markup_external_test.go index 0eaa9669f4..e77d9682a4 100644 --- a/tests/integration/markup_external_test.go +++ b/tests/integration/markup_external_test.go @@ -10,8 +10,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/markup_test.go b/tests/integration/markup_test.go index d63190a885..ab6b437390 100644 --- a/tests/integration/markup_test.go +++ b/tests/integration/markup_test.go @@ -9,9 +9,9 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/migrate_test.go b/tests/integration/migrate_test.go index 0b03a4136b..32b3ef867d 100644 --- a/tests/integration/migrate_test.go +++ b/tests/integration/migrate_test.go @@ -12,20 +12,20 @@ import ( "path/filepath" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/services/migrations" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + "forgejo.org/services/migrations" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/migration-test/migration_test.go b/tests/integration/migration-test/migration_test.go index 729d8e0dff..8076dfa452 100644 --- a/tests/integration/migration-test/migration_test.go +++ b/tests/integration/migration-test/migration_test.go @@ -16,18 +16,18 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/migrations" - migrate_base "code.gitea.io/gitea/models/migrations/base" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/charset" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/testlogger" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/migrations" + migrate_base "forgejo.org/models/migrations/base" + "forgejo.org/models/unittest" + "forgejo.org/modules/base" + "forgejo.org/modules/charset" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + "forgejo.org/modules/setting" + "forgejo.org/modules/testlogger" + "forgejo.org/modules/util" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/milestone_test.go b/tests/integration/milestone_test.go index 3a1b7d6f1b..bdfdd2c6d9 100644 --- a/tests/integration/milestone_test.go +++ b/tests/integration/milestone_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/mirror_pull_test.go b/tests/integration/mirror_pull_test.go index 7072f1eb27..c9c8037e27 100644 --- a/tests/integration/mirror_pull_test.go +++ b/tests/integration/mirror_pull_test.go @@ -6,17 +6,17 @@ package integration import ( "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/migration" - mirror_service "code.gitea.io/gitea/services/mirror" - release_service "code.gitea.io/gitea/services/release" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/migration" + mirror_service "forgejo.org/services/mirror" + release_service "forgejo.org/services/release" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/mirror_push_test.go b/tests/integration/mirror_push_test.go index ae8d289184..ca8d536e46 100644 --- a/tests/integration/mirror_push_test.go +++ b/tests/integration/mirror_push_test.go @@ -16,23 +16,23 @@ import ( "testing" "time" - asymkey_model "code.gitea.io/gitea/models/asymkey" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - gitea_context "code.gitea.io/gitea/services/context" - doctor "code.gitea.io/gitea/services/doctor" - "code.gitea.io/gitea/services/migrations" - mirror_service "code.gitea.io/gitea/services/mirror" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + asymkey_model "forgejo.org/models/asymkey" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + gitea_context "forgejo.org/services/context" + doctor "forgejo.org/services/doctor" + "forgejo.org/services/migrations" + mirror_service "forgejo.org/services/mirror" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/new_org_test.go b/tests/integration/new_org_test.go index ec9f2f244c..ab9ee4bc18 100644 --- a/tests/integration/new_org_test.go +++ b/tests/integration/new_org_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/translation" + "forgejo.org/modules/translation" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/nonascii_branches_test.go b/tests/integration/nonascii_branches_test.go index 8917a9b574..2b27c8be45 100644 --- a/tests/integration/nonascii_branches_test.go +++ b/tests/integration/nonascii_branches_test.go @@ -9,7 +9,7 @@ import ( "path" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/notification_test.go b/tests/integration/notification_test.go index 6195ec2282..be1eecd1d1 100644 --- a/tests/integration/notification_test.go +++ b/tests/integration/notification_test.go @@ -7,9 +7,9 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" ) func TestNotification(t *testing.T) { diff --git a/tests/integration/oauth_test.go b/tests/integration/oauth_test.go index 336d14c418..a4dea51a07 100644 --- a/tests/integration/oauth_test.go +++ b/tests/integration/oauth_test.go @@ -15,17 +15,17 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers/web/auth" - forgejo_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers/web/auth" + forgejo_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/markbates/goth" "github.com/stretchr/testify/assert" diff --git a/tests/integration/opengraph_test.go b/tests/integration/opengraph_test.go index d54f59c9b8..38998d0c76 100644 --- a/tests/integration/opengraph_test.go +++ b/tests/integration/opengraph_test.go @@ -8,8 +8,8 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/org_count_test.go b/tests/integration/org_count_test.go index e3de9257f0..93035c8e5b 100644 --- a/tests/integration/org_count_test.go +++ b/tests/integration/org_count_test.go @@ -8,12 +8,12 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/org_nav_test.go b/tests/integration/org_nav_test.go index 37b62921ae..09736d12a0 100644 --- a/tests/integration/org_nav_test.go +++ b/tests/integration/org_nav_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/translation" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/org_project_test.go b/tests/integration/org_project_test.go index 31d10f16ff..3ab2379b5e 100644 --- a/tests/integration/org_project_test.go +++ b/tests/integration/org_project_test.go @@ -8,8 +8,8 @@ import ( "slices" "testing" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/tests" + unit_model "forgejo.org/models/unit" + "forgejo.org/tests" ) func TestOrgProjectAccess(t *testing.T) { diff --git a/tests/integration/org_settings_test.go b/tests/integration/org_settings_test.go index 56b7b02271..fde57e2e26 100644 --- a/tests/integration/org_settings_test.go +++ b/tests/integration/org_settings_test.go @@ -8,9 +8,9 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/org_team_invite_test.go b/tests/integration/org_team_invite_test.go index 2fe296e8c3..3ca236a5dd 100644 --- a/tests/integration/org_team_invite_test.go +++ b/tests/integration/org_team_invite_test.go @@ -10,14 +10,14 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/organization" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/org_test.go b/tests/integration/org_test.go index eabfe11dcd..bc1a5bbe72 100644 --- a/tests/integration/org_test.go +++ b/tests/integration/org_test.go @@ -9,16 +9,16 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/organization" - "code.gitea.io/gitea/models/perm" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/organization" + "forgejo.org/models/perm" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/private_project_test.go b/tests/integration/private_project_test.go index 663c1c1e75..b2ad8d1cd7 100644 --- a/tests/integration/private_project_test.go +++ b/tests/integration/private_project_test.go @@ -8,11 +8,11 @@ import ( "strings" "testing" - org_model "code.gitea.io/gitea/models/organization" - project_model "code.gitea.io/gitea/models/project" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + org_model "forgejo.org/models/organization" + project_model "forgejo.org/models/project" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/privateactivity_test.go b/tests/integration/privateactivity_test.go index 5362462f7d..84f09c64e1 100644 --- a/tests/integration/privateactivity_test.go +++ b/tests/integration/privateactivity_test.go @@ -8,13 +8,13 @@ import ( "net/http" "testing" - activities_model "code.gitea.io/gitea/models/activities" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + activities_model "forgejo.org/models/activities" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/proctected_branch_test.go b/tests/integration/proctected_branch_test.go index 9c6e5e3cae..5024b63c42 100644 --- a/tests/integration/proctected_branch_test.go +++ b/tests/integration/proctected_branch_test.go @@ -10,10 +10,10 @@ import ( "strings" "testing" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/tests" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/project_test.go b/tests/integration/project_test.go index fc2986e1eb..7dc8bf112d 100644 --- a/tests/integration/project_test.go +++ b/tests/integration/project_test.go @@ -8,11 +8,11 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/pull_commit_test.go b/tests/integration/pull_commit_test.go index 5ef6d6ceca..90d16d725d 100644 --- a/tests/integration/pull_commit_test.go +++ b/tests/integration/pull_commit_test.go @@ -7,8 +7,8 @@ import ( "net/http" "testing" - pull_service "code.gitea.io/gitea/services/pull" - "code.gitea.io/gitea/tests" + pull_service "forgejo.org/services/pull" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/pull_compare_test.go b/tests/integration/pull_compare_test.go index f5baf05965..adb24c60f6 100644 --- a/tests/integration/pull_compare_test.go +++ b/tests/integration/pull_compare_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/pull_create_test.go b/tests/integration/pull_create_test.go index 7ccbce2eae..42155076a8 100644 --- a/tests/integration/pull_create_test.go +++ b/tests/integration/pull_create_test.go @@ -14,17 +14,17 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/test" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/graceful" + "forgejo.org/modules/test" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/pull_diff_test.go b/tests/integration/pull_diff_test.go index 5411250935..70e0d5d33a 100644 --- a/tests/integration/pull_diff_test.go +++ b/tests/integration/pull_diff_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/pull_editable_test.go b/tests/integration/pull_editable_test.go index dfd634f0b5..f2e6f2f52c 100644 --- a/tests/integration/pull_editable_test.go +++ b/tests/integration/pull_editable_test.go @@ -8,9 +8,9 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + api "forgejo.org/modules/structs" + "forgejo.org/tests" ) func TestPullEditable_ShowEditableLabel(t *testing.T) { diff --git a/tests/integration/pull_icon_test.go b/tests/integration/pull_icon_test.go index b678550c30..9ab8f244cf 100644 --- a/tests/integration/pull_icon_test.go +++ b/tests/integration/pull_icon_test.go @@ -12,17 +12,17 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - issue_service "code.gitea.io/gitea/services/issue" - pull_service "code.gitea.io/gitea/services/pull" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + issue_service "forgejo.org/services/issue" + pull_service "forgejo.org/services/pull" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/pull_merge_test.go b/tests/integration/pull_merge_test.go index d583abe226..f60fc27bb3 100644 --- a/tests/integration/pull_merge_test.go +++ b/tests/integration/pull_merge_test.go @@ -17,32 +17,32 @@ import ( "testing" "time" - "code.gitea.io/gitea/models" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - pull_model "code.gitea.io/gitea/models/pull" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/hostmatcher" - "code.gitea.io/gitea/modules/queue" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/services/automerge" - forgejo_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/forms" - "code.gitea.io/gitea/services/pull" - commitstatus_service "code.gitea.io/gitea/services/repository/commitstatus" - files_service "code.gitea.io/gitea/services/repository/files" - webhook_service "code.gitea.io/gitea/services/webhook" - "code.gitea.io/gitea/tests" + "forgejo.org/models" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + pull_model "forgejo.org/models/pull" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/hostmatcher" + "forgejo.org/modules/queue" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + "forgejo.org/services/automerge" + forgejo_context "forgejo.org/services/context" + "forgejo.org/services/forms" + "forgejo.org/services/pull" + commitstatus_service "forgejo.org/services/repository/commitstatus" + files_service "forgejo.org/services/repository/files" + webhook_service "forgejo.org/services/webhook" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/pull_reopen_test.go b/tests/integration/pull_reopen_test.go index e510d59626..cf95f6b730 100644 --- a/tests/integration/pull_reopen_test.go +++ b/tests/integration/pull_reopen_test.go @@ -12,20 +12,20 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - issues_model "code.gitea.io/gitea/models/issues" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/translation" - gitea_context "code.gitea.io/gitea/services/context" - issue_service "code.gitea.io/gitea/services/issue" - pull_service "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + issues_model "forgejo.org/models/issues" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/translation" + gitea_context "forgejo.org/services/context" + issue_service "forgejo.org/services/issue" + pull_service "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/pull_request_task_test.go b/tests/integration/pull_request_task_test.go index e268cb8cc5..777aac08a5 100644 --- a/tests/integration/pull_request_task_test.go +++ b/tests/integration/pull_request_task_test.go @@ -7,19 +7,19 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/log" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/timeutil" - pull_service "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/log" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/test" + "forgejo.org/modules/timeutil" + pull_service "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/pull_review_test.go b/tests/integration/pull_review_test.go index 1777d20d92..6dacdc4315 100644 --- a/tests/integration/pull_review_test.go +++ b/tests/integration/pull_review_test.go @@ -14,19 +14,19 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/gitrepo" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/test" - issue_service "code.gitea.io/gitea/services/issue" - "code.gitea.io/gitea/services/mailer" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/gitrepo" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/test" + issue_service "forgejo.org/services/issue" + "forgejo.org/services/mailer" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/pull_status_test.go b/tests/integration/pull_status_test.go index 80eea34513..1fdc871bb3 100644 --- a/tests/integration/pull_status_test.go +++ b/tests/integration/pull_status_test.go @@ -11,11 +11,11 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - api "code.gitea.io/gitea/modules/structs" + auth_model "forgejo.org/models/auth" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/pull_test.go b/tests/integration/pull_test.go index edca5f0384..3695ebe5f2 100644 --- a/tests/integration/pull_test.go +++ b/tests/integration/pull_test.go @@ -7,12 +7,12 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/pull_update_test.go b/tests/integration/pull_update_test.go index f36ea88c2b..18766e8fa4 100644 --- a/tests/integration/pull_update_test.go +++ b/tests/integration/pull_update_test.go @@ -11,19 +11,19 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - pull_service "code.gitea.io/gitea/services/pull" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + pull_service "forgejo.org/services/pull" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/quota_use_test.go b/tests/integration/quota_use_test.go index 39c5c1ae5c..314dcff6e9 100644 --- a/tests/integration/quota_use_test.go +++ b/tests/integration/quota_use_test.go @@ -14,20 +14,20 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - org_model "code.gitea.io/gitea/models/organization" - quota_model "code.gitea.io/gitea/models/quota" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - forgejo_context "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + org_model "forgejo.org/models/organization" + quota_model "forgejo.org/models/quota" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + forgejo_context "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" gouuid "github.com/google/uuid" "github.com/stretchr/testify/assert" diff --git a/tests/integration/release_feed_test.go b/tests/integration/release_feed_test.go index fd1f42c3cd..0ab299f617 100644 --- a/tests/integration/release_feed_test.go +++ b/tests/integration/release_feed_test.go @@ -8,7 +8,7 @@ import ( "regexp" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/release_test.go b/tests/integration/release_test.go index c535c6c93d..b1162780ab 100644 --- a/tests/integration/release_test.go +++ b/tests/integration/release_test.go @@ -11,15 +11,15 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/remote_test.go b/tests/integration/remote_test.go index 3c322deea1..506ee8ecaa 100644 --- a/tests/integration/remote_test.go +++ b/tests/integration/remote_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/test" - remote_service "code.gitea.io/gitea/services/remote" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/test" + remote_service "forgejo.org/services/remote" + "forgejo.org/tests" "github.com/markbates/goth" "github.com/stretchr/testify/assert" diff --git a/tests/integration/rename_branch_test.go b/tests/integration/rename_branch_test.go index 20d4c9b48f..d7440e5125 100644 --- a/tests/integration/rename_branch_test.go +++ b/tests/integration/rename_branch_test.go @@ -8,11 +8,11 @@ import ( "net/url" "testing" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + gitea_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_activity_test.go b/tests/integration/repo_activity_test.go index c1177fac11..6199373119 100644 --- a/tests/integration/repo_activity_test.go +++ b/tests/integration/repo_activity_test.go @@ -11,15 +11,15 @@ import ( "strings" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/test" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/test" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/repo_archive_test.go b/tests/integration/repo_archive_test.go index aea500b9b1..f0ffedfd9b 100644 --- a/tests/integration/repo_archive_test.go +++ b/tests/integration/repo_archive_test.go @@ -13,14 +13,14 @@ import ( "net/url" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/routers/web" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/routers/web" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_archive_text_test.go b/tests/integration/repo_archive_text_test.go index e759246aa4..db133ce7d7 100644 --- a/tests/integration/repo_archive_text_test.go +++ b/tests/integration/repo_archive_text_test.go @@ -10,10 +10,10 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/translation" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/repo_badges_test.go b/tests/integration/repo_badges_test.go index a74d3979c2..baaa8c136a 100644 --- a/tests/integration/repo_badges_test.go +++ b/tests/integration/repo_badges_test.go @@ -12,19 +12,19 @@ import ( "strings" "testing" - actions_model "code.gitea.io/gitea/models/actions" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/services/release" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/services/release" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_branch_test.go b/tests/integration/repo_branch_test.go index df9ea9a97c..46cd29d025 100644 --- a/tests/integration/repo_branch_test.go +++ b/tests/integration/repo_branch_test.go @@ -12,16 +12,16 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/git" + "forgejo.org/modules/graceful" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_citation_test.go b/tests/integration/repo_citation_test.go index 4f7e24ee51..5651ac3db3 100644 --- a/tests/integration/repo_citation_test.go +++ b/tests/integration/repo_citation_test.go @@ -9,12 +9,12 @@ import ( "strings" "testing" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_collaborator_test.go b/tests/integration/repo_collaborator_test.go index b3e7197c7e..e18308e7cb 100644 --- a/tests/integration/repo_collaborator_test.go +++ b/tests/integration/repo_collaborator_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_commits_search_test.go b/tests/integration/repo_commits_search_test.go index 74ac25c0f5..92ff74ba68 100644 --- a/tests/integration/repo_commits_search_test.go +++ b/tests/integration/repo_commits_search_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_commits_test.go b/tests/integration/repo_commits_test.go index e399898958..f3d3a145ae 100644 --- a/tests/integration/repo_commits_test.go +++ b/tests/integration/repo_commits_test.go @@ -11,11 +11,11 @@ import ( "sync" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/json" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_delete_test.go b/tests/integration/repo_delete_test.go index 44ef26f19a..faabd13432 100644 --- a/tests/integration/repo_delete_test.go +++ b/tests/integration/repo_delete_test.go @@ -6,13 +6,13 @@ package integration import ( "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - webhook_model "code.gitea.io/gitea/models/webhook" - repo_service "code.gitea.io/gitea/services/repository" + "forgejo.org/models/db" + "forgejo.org/models/organization" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + webhook_model "forgejo.org/models/webhook" + repo_service "forgejo.org/services/repository" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_flags_test.go b/tests/integration/repo_flags_test.go index 8b64776a5a..c52610cd10 100644 --- a/tests/integration/repo_flags_test.go +++ b/tests/integration/repo_flags_test.go @@ -10,16 +10,16 @@ import ( "slices" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_fork_test.go b/tests/integration/repo_fork_test.go index b64991ae18..03bbba1b2c 100644 --- a/tests/integration/repo_fork_test.go +++ b/tests/integration/repo_fork_test.go @@ -12,16 +12,16 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - repo_service "code.gitea.io/gitea/services/repository" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + repo_service "forgejo.org/services/repository" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_generate_test.go b/tests/integration/repo_generate_test.go index d541a4b651..fd29156e4e 100644 --- a/tests/integration/repo_generate_test.go +++ b/tests/integration/repo_generate_test.go @@ -12,15 +12,15 @@ import ( "strings" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_git_note_test.go b/tests/integration/repo_git_note_test.go index 6ad57c81b0..e6b23754db 100644 --- a/tests/integration/repo_git_note_test.go +++ b/tests/integration/repo_git_note_test.go @@ -5,7 +5,7 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_issue_title_test.go b/tests/integration/repo_issue_title_test.go index cf517a7a40..587db43223 100644 --- a/tests/integration/repo_issue_title_test.go +++ b/tests/integration/repo_issue_title_test.go @@ -10,16 +10,16 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - issue_service "code.gitea.io/gitea/services/issue" - pull_service "code.gitea.io/gitea/services/pull" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + issue_service "forgejo.org/services/issue" + pull_service "forgejo.org/services/pull" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_mergecommit_revert_test.go b/tests/integration/repo_mergecommit_revert_test.go index eb75d45c15..600ee991f8 100644 --- a/tests/integration/repo_mergecommit_revert_test.go +++ b/tests/integration/repo_mergecommit_revert_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_migrate_test.go b/tests/integration/repo_migrate_test.go index 9fb7a73379..233a55ef8f 100644 --- a/tests/integration/repo_migrate_test.go +++ b/tests/integration/repo_migrate_test.go @@ -9,8 +9,8 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_migration_ui_test.go b/tests/integration/repo_migration_ui_test.go index 594b09b490..5e2f0c0a76 100644 --- a/tests/integration/repo_migration_ui_test.go +++ b/tests/integration/repo_migration_ui_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/repo_pagination_test.go b/tests/integration/repo_pagination_test.go index 1c1f2ac82e..692936353b 100644 --- a/tests/integration/repo_pagination_test.go +++ b/tests/integration/repo_pagination_test.go @@ -8,11 +8,11 @@ import ( "path" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_search_test.go b/tests/integration/repo_search_test.go index 60eca66735..909668d3ca 100644 --- a/tests/integration/repo_search_test.go +++ b/tests/integration/repo_search_test.go @@ -7,13 +7,13 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - code_indexer "code.gitea.io/gitea/modules/indexer/code" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + code_indexer "forgejo.org/modules/indexer/code" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/repo_settings_hook_test.go b/tests/integration/repo_settings_hook_test.go index 0a3dd57160..f7349d4e66 100644 --- a/tests/integration/repo_settings_hook_test.go +++ b/tests/integration/repo_settings_hook_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_settings_test.go b/tests/integration/repo_settings_test.go index 2c4ffba24d..f78df96a93 100644 --- a/tests/integration/repo_settings_test.go +++ b/tests/integration/repo_settings_test.go @@ -9,22 +9,22 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/forgefed" - git_model "code.gitea.io/gitea/models/git" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - fm "code.gitea.io/gitea/modules/forgefed" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/validation" - gitea_context "code.gitea.io/gitea/services/context" - repo_service "code.gitea.io/gitea/services/repository" - user_service "code.gitea.io/gitea/services/user" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/forgefed" + git_model "forgejo.org/models/git" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + fm "forgejo.org/modules/forgefed" + "forgejo.org/modules/optional" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/validation" + gitea_context "forgejo.org/services/context" + repo_service "forgejo.org/services/repository" + user_service "forgejo.org/services/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_signed_tag_test.go b/tests/integration/repo_signed_tag_test.go index 41e663ce52..16d8841304 100644 --- a/tests/integration/repo_signed_tag_test.go +++ b/tests/integration/repo_signed_tag_test.go @@ -10,16 +10,16 @@ import ( "os/exec" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/graceful" - repo_module "code.gitea.io/gitea/modules/repository" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/graceful" + repo_module "forgejo.org/modules/repository" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/require" ) diff --git a/tests/integration/repo_starwatch_test.go b/tests/integration/repo_starwatch_test.go index a8bad30109..3bcfa29fe3 100644 --- a/tests/integration/repo_starwatch_test.go +++ b/tests/integration/repo_starwatch_test.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_tag_test.go b/tests/integration/repo_tag_test.go index 0ce0e142b9..9be33ec8a8 100644 --- a/tests/integration/repo_tag_test.go +++ b/tests/integration/repo_tag_test.go @@ -11,16 +11,16 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - repo_module "code.gitea.io/gitea/modules/repository" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/services/release" - "code.gitea.io/gitea/tests" + "forgejo.org/models" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + repo_module "forgejo.org/modules/repository" + api "forgejo.org/modules/structs" + "forgejo.org/services/release" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/repo_test.go b/tests/integration/repo_test.go index 5445ce6d4c..f8961443c5 100644 --- a/tests/integration/repo_test.go +++ b/tests/integration/repo_test.go @@ -12,18 +12,18 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/repo_topic_test.go b/tests/integration/repo_topic_test.go index f5778a2861..6dc60e2c3a 100644 --- a/tests/integration/repo_topic_test.go +++ b/tests/integration/repo_topic_test.go @@ -9,12 +9,12 @@ import ( "net/url" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_view_test.go b/tests/integration/repo_view_test.go index 46e75063bc..7ea4aeb4c6 100644 --- a/tests/integration/repo_view_test.go +++ b/tests/integration/repo_view_test.go @@ -10,14 +10,14 @@ import ( "strings" "testing" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/routers/web/repo" - "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/contexttest" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/routers/web/repo" + "forgejo.org/services/context" + "forgejo.org/services/contexttest" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/repo_watch_test.go b/tests/integration/repo_watch_test.go index ef3028f293..0bcb039b01 100644 --- a/tests/integration/repo_watch_test.go +++ b/tests/integration/repo_watch_test.go @@ -7,9 +7,9 @@ import ( "net/url" "testing" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" ) func TestRepoWatch(t *testing.T) { diff --git a/tests/integration/repo_webhook_test.go b/tests/integration/repo_webhook_test.go index 37bad56b9e..be1b9cbcec 100644 --- a/tests/integration/repo_webhook_test.go +++ b/tests/integration/repo_webhook_test.go @@ -9,9 +9,9 @@ import ( "net/url" "testing" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/webhook" - "code.gitea.io/gitea/tests" + gitea_context "forgejo.org/services/context" + "forgejo.org/services/webhook" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/repo_wiki_test.go b/tests/integration/repo_wiki_test.go index eeb49cc7cf..5cd893702d 100644 --- a/tests/integration/repo_wiki_test.go +++ b/tests/integration/repo_wiki_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/repofiles_change_test.go b/tests/integration/repofiles_change_test.go index 1896971046..dce310b0fc 100644 --- a/tests/integration/repofiles_change_test.go +++ b/tests/integration/repofiles_change_test.go @@ -10,15 +10,15 @@ import ( "testing" "time" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/runner_test.go b/tests/integration/runner_test.go index bab2a67230..2ca0a6b996 100644 --- a/tests/integration/runner_test.go +++ b/tests/integration/runner_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - actions_model "code.gitea.io/gitea/models/actions" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - forgejo_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + actions_model "forgejo.org/models/actions" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + forgejo_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/session_test.go b/tests/integration/session_test.go index a5bcab269a..7af5645dec 100644 --- a/tests/integration/session_test.go +++ b/tests/integration/session_test.go @@ -6,10 +6,10 @@ package integration import ( "testing" - "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/tests" + "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/setting_test.go b/tests/integration/setting_test.go index 5635faad38..66790e5835 100644 --- a/tests/integration/setting_test.go +++ b/tests/integration/setting_test.go @@ -8,12 +8,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/signin_test.go b/tests/integration/signin_test.go index f8e2e079ca..dd8322214a 100644 --- a/tests/integration/signin_test.go +++ b/tests/integration/signin_test.go @@ -10,12 +10,12 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/signout_test.go b/tests/integration/signout_test.go index 7fd0b5c64a..efcf54f14d 100644 --- a/tests/integration/signout_test.go +++ b/tests/integration/signout_test.go @@ -7,7 +7,7 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" ) func TestSignOut(t *testing.T) { diff --git a/tests/integration/signup_test.go b/tests/integration/signup_test.go index 39533bbf89..91752d415e 100644 --- a/tests/integration/signup_test.go +++ b/tests/integration/signup_test.go @@ -10,13 +10,13 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/cache" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/cache" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/size_translations_test.go b/tests/integration/size_translations_test.go index a0b88291f4..d34cd0b490 100644 --- a/tests/integration/size_translations_test.go +++ b/tests/integration/size_translations_test.go @@ -11,10 +11,10 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/ssh_key_test.go b/tests/integration/ssh_key_test.go index ebf0d26c2d..aece9c3fd9 100644 --- a/tests/integration/ssh_key_test.go +++ b/tests/integration/ssh_key_test.go @@ -12,9 +12,9 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/git" - api "code.gitea.io/gitea/modules/structs" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/git" + api "forgejo.org/modules/structs" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/swagger_test.go b/tests/integration/swagger_test.go index 584601f7f9..ac10a91691 100644 --- a/tests/integration/swagger_test.go +++ b/tests/integration/swagger_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/json" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/json" + "forgejo.org/tests" swagger_spec "github.com/go-openapi/spec" "github.com/stretchr/testify/require" diff --git a/tests/integration/timetracking_test.go b/tests/integration/timetracking_test.go index 10e539cbe6..49ae92033e 100644 --- a/tests/integration/timetracking_test.go +++ b/tests/integration/timetracking_test.go @@ -9,8 +9,8 @@ import ( "testing" "time" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/test" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/user_avatar_test.go b/tests/integration/user_avatar_test.go index a7c0264aaa..b0d930d71f 100644 --- a/tests/integration/user_avatar_test.go +++ b/tests/integration/user_avatar_test.go @@ -12,11 +12,11 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/avatar" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/avatar" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/user_count_test.go b/tests/integration/user_count_test.go index 8fb78a61ee..5f762ca317 100644 --- a/tests/integration/user_count_test.go +++ b/tests/integration/user_count_test.go @@ -9,15 +9,15 @@ import ( "strconv" "testing" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/organization" - packages_model "code.gitea.io/gitea/models/packages" - project_model "code.gitea.io/gitea/models/project" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/organization" + packages_model "forgejo.org/models/packages" + project_model "forgejo.org/models/project" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/optional" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/user_dashboard_test.go b/tests/integration/user_dashboard_test.go index 20f3f858f9..b95bdab078 100644 --- a/tests/integration/user_dashboard_test.go +++ b/tests/integration/user_dashboard_test.go @@ -10,14 +10,14 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/db" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/translation" - issue_service "code.gitea.io/gitea/services/issue" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/translation" + issue_service "forgejo.org/services/issue" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/user_profile_activity_test.go b/tests/integration/user_profile_activity_test.go index f1269e5e93..eb9bfa1741 100644 --- a/tests/integration/user_profile_activity_test.go +++ b/tests/integration/user_profile_activity_test.go @@ -8,8 +8,8 @@ import ( "strconv" "testing" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/structs" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/user_profile_follows_test.go b/tests/integration/user_profile_follows_test.go index 24b74268e6..08bd58db16 100644 --- a/tests/integration/user_profile_follows_test.go +++ b/tests/integration/user_profile_follows_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "code.gitea.io/gitea/tests" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/user_profile_test.go b/tests/integration/user_profile_test.go index 5532403510..04d87c49ab 100644 --- a/tests/integration/user_profile_test.go +++ b/tests/integration/user_profile_test.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/user_redirect_test.go b/tests/integration/user_redirect_test.go index 2235876859..52dc5d9d3a 100644 --- a/tests/integration/user_redirect_test.go +++ b/tests/integration/user_redirect_test.go @@ -8,14 +8,14 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/timeutil" - forgejo_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + "forgejo.org/modules/timeutil" + forgejo_context "forgejo.org/services/context" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/user_test.go b/tests/integration/user_test.go index 58ab4b52d7..5e02f90f9e 100644 --- a/tests/integration/user_test.go +++ b/tests/integration/user_test.go @@ -15,20 +15,20 @@ import ( "testing" "time" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/models/db" - issues_model "code.gitea.io/gitea/models/issues" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - api "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/modules/translation" - gitea_context "code.gitea.io/gitea/services/context" - "code.gitea.io/gitea/services/mailer" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/models/db" + issues_model "forgejo.org/models/issues" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + api "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/modules/translation" + gitea_context "forgejo.org/services/context" + "forgejo.org/services/mailer" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/pquerna/otp/totp" diff --git a/tests/integration/version_test.go b/tests/integration/version_test.go index 144471adb2..9db586ee97 100644 --- a/tests/integration/version_test.go +++ b/tests/integration/version_test.go @@ -7,12 +7,12 @@ import ( "net/http" "testing" - auth_model "code.gitea.io/gitea/models/auth" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/structs" - "code.gitea.io/gitea/modules/test" - "code.gitea.io/gitea/routers" - "code.gitea.io/gitea/tests" + auth_model "forgejo.org/models/auth" + "forgejo.org/modules/setting" + "forgejo.org/modules/structs" + "forgejo.org/modules/test" + "forgejo.org/routers" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/view_test.go b/tests/integration/view_test.go index 41e60b4d9b..80371b84ce 100644 --- a/tests/integration/view_test.go +++ b/tests/integration/view_test.go @@ -10,13 +10,13 @@ import ( "strings" "testing" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/test" - files_service "code.gitea.io/gitea/services/repository/files" - "code.gitea.io/gitea/tests" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/modules/test" + files_service "forgejo.org/services/repository/files" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/webfinger_test.go b/tests/integration/webfinger_test.go index 18f509aca9..053528d919 100644 --- a/tests/integration/webfinger_test.go +++ b/tests/integration/webfinger_test.go @@ -9,10 +9,10 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/tests" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/setting" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/integration/webhook_test.go b/tests/integration/webhook_test.go index 60d4d48d7c..6d92a16dd8 100644 --- a/tests/integration/webhook_test.go +++ b/tests/integration/webhook_test.go @@ -8,17 +8,17 @@ import ( "net/url" "testing" - "code.gitea.io/gitea/models/db" - repo_model "code.gitea.io/gitea/models/repo" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - webhook_model "code.gitea.io/gitea/models/webhook" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/gitrepo" - "code.gitea.io/gitea/modules/json" - webhook_module "code.gitea.io/gitea/modules/webhook" - "code.gitea.io/gitea/services/release" - "code.gitea.io/gitea/tests" + "forgejo.org/models/db" + repo_model "forgejo.org/models/repo" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + webhook_model "forgejo.org/models/webhook" + "forgejo.org/modules/git" + "forgejo.org/modules/gitrepo" + "forgejo.org/modules/json" + webhook_module "forgejo.org/modules/webhook" + "forgejo.org/services/release" + "forgejo.org/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/integration/wiki_test.go b/tests/integration/wiki_test.go index 587b138175..3e4761b9bd 100644 --- a/tests/integration/wiki_test.go +++ b/tests/integration/wiki_test.go @@ -12,9 +12,9 @@ import ( "strings" "testing" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/tests" + "forgejo.org/modules/git" + "forgejo.org/modules/util" + "forgejo.org/tests" "github.com/PuerkitoBio/goquery" "github.com/stretchr/testify/assert" diff --git a/tests/integration/xss_test.go b/tests/integration/xss_test.go index 6ac5b062f2..2c4934c541 100644 --- a/tests/integration/xss_test.go +++ b/tests/integration/xss_test.go @@ -8,10 +8,10 @@ import ( "net/http" "testing" - issues_model "code.gitea.io/gitea/models/issues" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/tests" + issues_model "forgejo.org/models/issues" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/tests" "github.com/stretchr/testify/assert" ) diff --git a/tests/test_utils.go b/tests/test_utils.go index c4d87ca619..e6aa9c7963 100644 --- a/tests/test_utils.go +++ b/tests/test_utils.go @@ -16,27 +16,27 @@ import ( "testing" "time" - "code.gitea.io/gitea/models/db" - packages_model "code.gitea.io/gitea/models/packages" - repo_model "code.gitea.io/gitea/models/repo" - unit_model "code.gitea.io/gitea/models/unit" - "code.gitea.io/gitea/models/unittest" - user_model "code.gitea.io/gitea/models/user" - "code.gitea.io/gitea/modules/base" - "code.gitea.io/gitea/modules/git" - "code.gitea.io/gitea/modules/graceful" - "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/optional" - "code.gitea.io/gitea/modules/process" - repo_module "code.gitea.io/gitea/modules/repository" - "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/modules/storage" - "code.gitea.io/gitea/modules/testlogger" - "code.gitea.io/gitea/modules/util" - "code.gitea.io/gitea/routers" - repo_service "code.gitea.io/gitea/services/repository" - files_service "code.gitea.io/gitea/services/repository/files" - wiki_service "code.gitea.io/gitea/services/wiki" + "forgejo.org/models/db" + packages_model "forgejo.org/models/packages" + repo_model "forgejo.org/models/repo" + unit_model "forgejo.org/models/unit" + "forgejo.org/models/unittest" + user_model "forgejo.org/models/user" + "forgejo.org/modules/base" + "forgejo.org/modules/git" + "forgejo.org/modules/graceful" + "forgejo.org/modules/log" + "forgejo.org/modules/optional" + "forgejo.org/modules/process" + repo_module "forgejo.org/modules/repository" + "forgejo.org/modules/setting" + "forgejo.org/modules/storage" + "forgejo.org/modules/testlogger" + "forgejo.org/modules/util" + "forgejo.org/routers" + repo_service "forgejo.org/services/repository" + files_service "forgejo.org/services/repository/files" + wiki_service "forgejo.org/services/wiki" "github.com/google/uuid" "github.com/stretchr/testify/assert"