[v11.0/forgejo] chore: branding import path (#7354)

**Backport:** https://codeberg.org/forgejo/forgejo/pulls/7337

- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`.
- Resolves forgejo/discussions#258

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7354
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
forgejo-backport-action 2025-03-27 20:13:05 +00:00 committed by Gusted
parent 0a6a6d351d
commit e286457990
2097 changed files with 10675 additions and 10674 deletions

View file

@ -1,7 +1,7 @@
code.gitea.io/gitea/cmd forgejo.org/cmd
NoMainListener NoMainListener
code.gitea.io/gitea/cmd/forgejo forgejo.org/cmd/forgejo
ContextSetNoInit ContextSetNoInit
ContextSetNoExit ContextSetNoExit
ContextSetStderr ContextSetStderr
@ -9,48 +9,48 @@ code.gitea.io/gitea/cmd/forgejo
ContextSetStdout ContextSetStdout
ContextSetStdin ContextSetStdin
code.gitea.io/gitea/models forgejo.org/models
IsErrSHANotFound IsErrSHANotFound
IsErrMergeDivergingFastForwardOnly IsErrMergeDivergingFastForwardOnly
code.gitea.io/gitea/models/auth forgejo.org/models/auth
WebAuthnCredentials WebAuthnCredentials
code.gitea.io/gitea/models/db forgejo.org/models/db
TruncateBeans TruncateBeans
InTransaction InTransaction
DumpTables DumpTables
code.gitea.io/gitea/models/dbfs forgejo.org/models/dbfs
file.renameTo file.renameTo
Create Create
Rename Rename
code.gitea.io/gitea/models/forgefed forgejo.org/models/forgefed
GetFederationHost GetFederationHost
code.gitea.io/gitea/models/forgejo/semver forgejo.org/models/forgejo/semver
GetVersion GetVersion
SetVersionString SetVersionString
SetVersion SetVersion
code.gitea.io/gitea/models/git forgejo.org/models/git
RemoveDeletedBranchByID RemoveDeletedBranchByID
code.gitea.io/gitea/models/issues forgejo.org/models/issues
IsErrUnknownDependencyType IsErrUnknownDependencyType
IsErrIssueWasClosed IsErrIssueWasClosed
code.gitea.io/gitea/models/organization forgejo.org/models/organization
SearchMembersOptions.ToConds SearchMembersOptions.ToConds
code.gitea.io/gitea/models/perm/access forgejo.org/models/perm/access
GetRepoWriters GetRepoWriters
code.gitea.io/gitea/models/repo forgejo.org/models/repo
WatchRepoMode WatchRepoMode
code.gitea.io/gitea/models/user forgejo.org/models/user
IsErrExternalLoginUserAlreadyExist IsErrExternalLoginUserAlreadyExist
IsErrExternalLoginUserNotExist IsErrExternalLoginUserNotExist
NewFederatedUser NewFederatedUser
@ -58,35 +58,35 @@ code.gitea.io/gitea/models/user
GetUserAllSettings GetUserAllSettings
DeleteUserSetting DeleteUserSetting
code.gitea.io/gitea/modules/activitypub forgejo.org/modules/activitypub
NewContext NewContext
Context.APClientFactory Context.APClientFactory
code.gitea.io/gitea/modules/assetfs forgejo.org/modules/assetfs
Bindata Bindata
code.gitea.io/gitea/modules/auth/password/hash forgejo.org/modules/auth/password/hash
DummyHasher.HashWithSaltBytes DummyHasher.HashWithSaltBytes
NewDummyHasher NewDummyHasher
code.gitea.io/gitea/modules/auth/password/pwn forgejo.org/modules/auth/password/pwn
WithHTTP WithHTTP
code.gitea.io/gitea/modules/base forgejo.org/modules/base
SetupGiteaRoot SetupGiteaRoot
code.gitea.io/gitea/modules/cache forgejo.org/modules/cache
GetInt GetInt
WithNoCacheContext WithNoCacheContext
RemoveContextData RemoveContextData
code.gitea.io/gitea/modules/emoji forgejo.org/modules/emoji
ReplaceCodes ReplaceCodes
code.gitea.io/gitea/modules/eventsource forgejo.org/modules/eventsource
Event.String Event.String
code.gitea.io/gitea/modules/forgefed forgejo.org/modules/forgefed
NewForgeUndoLike NewForgeUndoLike
ForgeUndoLike.UnmarshalJSON ForgeUndoLike.UnmarshalJSON
ForgeUndoLike.Validate ForgeUndoLike.Validate
@ -96,7 +96,7 @@ code.gitea.io/gitea/modules/forgefed
ToRepository ToRepository
OnRepository OnRepository
code.gitea.io/gitea/modules/git forgejo.org/modules/git
AllowLFSFiltersArgs AllowLFSFiltersArgs
AddChanges AddChanges
AddChangesWithArgs AddChangesWithArgs
@ -106,55 +106,55 @@ code.gitea.io/gitea/modules/git
openRepositoryWithDefaultContext openRepositoryWithDefaultContext
ToEntryMode ToEntryMode
code.gitea.io/gitea/modules/gitrepo forgejo.org/modules/gitrepo
GetBranchCommitID GetBranchCommitID
GetWikiDefaultBranch GetWikiDefaultBranch
code.gitea.io/gitea/modules/graceful forgejo.org/modules/graceful
Manager.TerminateContext Manager.TerminateContext
Manager.Err Manager.Err
Manager.Value Manager.Value
Manager.Deadline Manager.Deadline
code.gitea.io/gitea/modules/hcaptcha forgejo.org/modules/hcaptcha
WithHTTP WithHTTP
code.gitea.io/gitea/modules/hostmatcher forgejo.org/modules/hostmatcher
HostMatchList.AppendPattern HostMatchList.AppendPattern
code.gitea.io/gitea/modules/json forgejo.org/modules/json
StdJSON.Marshal StdJSON.Marshal
StdJSON.Unmarshal StdJSON.Unmarshal
StdJSON.NewEncoder StdJSON.NewEncoder
StdJSON.NewDecoder StdJSON.NewDecoder
StdJSON.Indent StdJSON.Indent
code.gitea.io/gitea/modules/log forgejo.org/modules/log
NewEventWriterBuffer NewEventWriterBuffer
code.gitea.io/gitea/modules/markup forgejo.org/modules/markup
GetRendererByType GetRendererByType
RenderString RenderString
IsMarkupFile IsMarkupFile
code.gitea.io/gitea/modules/markup/console forgejo.org/modules/markup/console
Render Render
RenderString RenderString
code.gitea.io/gitea/modules/markup/markdown forgejo.org/modules/markup/markdown
RenderRawString RenderRawString
code.gitea.io/gitea/modules/markup/mdstripper forgejo.org/modules/markup/mdstripper
stripRenderer.AddOptions stripRenderer.AddOptions
StripMarkdown StripMarkdown
code.gitea.io/gitea/modules/markup/orgmode forgejo.org/modules/markup/orgmode
RenderString RenderString
code.gitea.io/gitea/modules/process forgejo.org/modules/process
Manager.ExecTimeout Manager.ExecTimeout
code.gitea.io/gitea/modules/queue forgejo.org/modules/queue
newBaseChannelSimple newBaseChannelSimple
newBaseChannelUnique newBaseChannelUnique
newBaseRedisSimple newBaseRedisSimple
@ -163,26 +163,26 @@ code.gitea.io/gitea/modules/queue
testStateRecorder.Reset testStateRecorder.Reset
newWorkerPoolQueueForTest newWorkerPoolQueueForTest
code.gitea.io/gitea/modules/queue/lqinternal forgejo.org/modules/queue/lqinternal
QueueItemIDBytes QueueItemIDBytes
QueueItemKeyBytes QueueItemKeyBytes
ListLevelQueueKeys ListLevelQueueKeys
code.gitea.io/gitea/modules/setting forgejo.org/modules/setting
NewConfigProviderFromData NewConfigProviderFromData
GitConfigType.GetOption GitConfigType.GetOption
InitLoggersForTest InitLoggersForTest
code.gitea.io/gitea/modules/sync forgejo.org/modules/sync
StatusTable.Start StatusTable.Start
StatusTable.IsRunning StatusTable.IsRunning
code.gitea.io/gitea/modules/timeutil forgejo.org/modules/timeutil
GetExecutableModTime GetExecutableModTime
MockSet MockSet
MockUnset MockUnset
code.gitea.io/gitea/modules/translation forgejo.org/modules/translation
MockLocale.Language MockLocale.Language
MockLocale.TrString MockLocale.TrString
MockLocale.Tr MockLocale.Tr
@ -192,42 +192,42 @@ code.gitea.io/gitea/modules/translation
MockLocale.HasKey MockLocale.HasKey
MockLocale.PrettyNumber MockLocale.PrettyNumber
code.gitea.io/gitea/modules/util forgejo.org/modules/util
OptionalArg OptionalArg
code.gitea.io/gitea/modules/util/filebuffer forgejo.org/modules/util/filebuffer
CreateFromReader CreateFromReader
code.gitea.io/gitea/modules/validation forgejo.org/modules/validation
IsErrNotValid IsErrNotValid
code.gitea.io/gitea/modules/web forgejo.org/modules/web
RouteMock RouteMock
RouteMockReset RouteMockReset
code.gitea.io/gitea/modules/zstd forgejo.org/modules/zstd
NewWriter NewWriter
Writer.Write Writer.Write
Writer.Close Writer.Close
code.gitea.io/gitea/routers/web forgejo.org/routers/web
NotFound NotFound
code.gitea.io/gitea/routers/web/org forgejo.org/routers/web/org
MustEnableProjects MustEnableProjects
code.gitea.io/gitea/services/context forgejo.org/services/context
GetPrivateContext GetPrivateContext
code.gitea.io/gitea/services/repository forgejo.org/services/repository
IsErrForkAlreadyExist IsErrForkAlreadyExist
code.gitea.io/gitea/services/repository/files forgejo.org/services/repository/files
ContentType.String ContentType.String
code.gitea.io/gitea/services/repository/gitgraph forgejo.org/services/repository/gitgraph
Parser.Reset Parser.Reset
code.gitea.io/gitea/services/webhook forgejo.org/services/webhook
NewNotifier NewNotifier

View file

@ -1,3 +1,3 @@
module code.gitea.io/gitea module forgejo.org
go 1.23.3 go 1.23.3

1
.gitignore vendored
View file

@ -57,6 +57,7 @@ cpu.out
/gitea-vet /gitea-vet
/debug /debug
/integrations.test /integrations.test
/forgejo
/bin /bin
/dist /dist

View file

@ -93,7 +93,7 @@ linters-settings:
desc: use os or io instead desc: use os or io instead
- pkg: golang.org/x/exp - pkg: golang.org/x/exp
desc: it's experimental and unreliable 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 desc: do not use the internal package, use AddXxx function instead
- pkg: gopkg.in/ini.v1 - pkg: gopkg.in/ini.v1
desc: do not use the ini package, use gitea's config system instead desc: do not use the ini package, use gitea's config system instead

View file

@ -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 RUN apk --no-cache add build-base git nodejs npm
COPY . ${GOPATH}/src/code.gitea.io/gitea COPY . ${GOPATH}/src/forgejo.org
WORKDIR ${GOPATH}/src/code.gitea.io/gitea WORKDIR ${GOPATH}/src/forgejo.org
RUN make clean RUN make clean
RUN make frontend RUN make frontend
@ -47,9 +47,9 @@ RUN chmod 755 /tmp/local/usr/bin/entrypoint \
/tmp/local/etc/s6/gitea/* \ /tmp/local/etc/s6/gitea/* \
/tmp/local/etc/s6/openssh/* \ /tmp/local/etc/s6/openssh/* \
/tmp/local/etc/s6/.s6-svscan/* \ /tmp/local/etc/s6/.s6-svscan/* \
/go/src/code.gitea.io/gitea/gitea \ /go/src/forgejo.org/gitea \
/go/src/code.gitea.io/gitea/environment-to-ini /go/src/forgejo.org/environment-to-ini
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete RUN chmod 644 /go/src/forgejo.org/contrib/autocompletion/bash_autocomplete
FROM data.forgejo.org/oci/alpine:3.21 FROM data.forgejo.org/oci/alpine:3.21
ARG RELEASE_VERSION ARG RELEASE_VERSION
@ -102,7 +102,7 @@ CMD ["/usr/bin/s6-svscan", "/etc/s6"]
COPY --from=build-env /tmp/local / COPY --from=build-env /tmp/local /
RUN cd /usr/local/bin ; ln -s gitea forgejo 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 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/forgejo.org/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/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh

View file

@ -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 RUN apk --no-cache add build-base git nodejs npm
COPY . ${GOPATH}/src/code.gitea.io/gitea COPY . ${GOPATH}/src/forgejo.org
WORKDIR ${GOPATH}/src/code.gitea.io/gitea WORKDIR ${GOPATH}/src/forgejo.org
RUN make clean RUN make clean
RUN make frontend RUN make frontend
@ -45,9 +45,9 @@ COPY docker/rootless /tmp/local
RUN chmod 755 /tmp/local/usr/local/bin/docker-entrypoint.sh \ RUN chmod 755 /tmp/local/usr/local/bin/docker-entrypoint.sh \
/tmp/local/usr/local/bin/docker-setup.sh \ /tmp/local/usr/local/bin/docker-setup.sh \
/tmp/local/usr/local/bin/gitea \ /tmp/local/usr/local/bin/gitea \
/go/src/code.gitea.io/gitea/gitea \ /go/src/forgejo.org/gitea \
/go/src/code.gitea.io/gitea/environment-to-ini /go/src/forgejo.org/environment-to-ini
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete RUN chmod 644 /go/src/forgejo.org/contrib/autocompletion/bash_autocomplete
FROM data.forgejo.org/oci/alpine:3.21 FROM data.forgejo.org/oci/alpine:3.21
ARG RELEASE_VERSION ARG RELEASE_VERSION
@ -91,10 +91,10 @@ RUN chown git:git /var/lib/gitea /etc/gitea
COPY --from=build-env /tmp/local / COPY --from=build-env /tmp/local /
RUN cd /usr/local/bin ; ln -s gitea forgejo 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 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 --chown=root:root /go/src/forgejo.org/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/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh
#git:git #git:git
USER 1000:1000 USER 1000:1000

View file

@ -16,7 +16,7 @@ else
DIST := dist DIST := dist
DIST_DIRS := $(DIST)/binaries $(DIST)/release DIST_DIRS := $(DIST)/binaries $(DIST)/release
IMPORT := code.gitea.io/gitea IMPORT := forgejo.org
GO ?= $(shell go env GOROOT)/bin/go GO ?= $(shell go env GOROOT)/bin/go
SHASUM ?= shasum -a 256 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 LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64
ifeq ($(HAS_GO), yes) 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 endif
REMOTE_CACHER_MODULES ?= cache nosql session queue 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 FOMANTIC_WORK_DIR := web_src/fomantic
@ -169,7 +169,7 @@ GO_SOURCES += $(GENERATED_GO_DEST)
GO_SOURCES_NO_BINDATA := $(GO_SOURCES) GO_SOURCES_NO_BINDATA := $(GO_SOURCES)
ifeq ($(HAS_GO), yes) 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 endif
ifeq ($(filter $(TAGS_SPLIT),bindata),bindata) ifeq ($(filter $(TAGS_SPLIT),bindata),bindata)
@ -476,7 +476,7 @@ lint-spell: lint-codespell
lint-spell-fix: lint-codespell-fix lint-spell-fix: lint-codespell-fix
@go run $(MISSPELL_PACKAGE) -w $(SPELLCHECK_FILES) @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 .PHONY: lint-go
lint-go: lint-go:
@ -610,7 +610,7 @@ tidy-check: tidy
go-licenses: $(GO_LICENSE_FILE) go-licenses: $(GO_LICENSE_FILE)
$(GO_LICENSE_FILE): go.mod go.sum $(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) $(GO) run build/generate-go-licenses.go $(GO_LICENSE_TMP_DIR) $(GO_LICENSE_FILE)
@rm -rf $(GO_LICENSE_TMP_DIR) @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 GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini ./integrations.cover.sqlite.test -test.coverprofile=integration.coverage.out
integrations.mysql.test: git-check $(GO_SOURCES) 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) 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) 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) 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) 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 .PHONY: migrations.mysql.test
migrations.mysql.test: $(GO_SOURCES) generate-ini-mysql 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) GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/mysql.ini $(GOTESTCOMPILEDRUNPREFIX) ./migrations.mysql.test $(GOTESTCOMPILEDRUNSUFFIX)
.PHONY: migrations.pgsql.test .PHONY: migrations.pgsql.test
migrations.pgsql.test: $(GO_SOURCES) generate-ini-pgsql 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) GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/pgsql.ini $(GOTESTCOMPILEDRUNPREFIX) ./migrations.pgsql.test $(GOTESTCOMPILEDRUNSUFFIX)
.PHONY: migrations.sqlite.test .PHONY: migrations.sqlite.test
migrations.sqlite.test: $(GO_SOURCES) generate-ini-sqlite 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) GITEA_ROOT="$(CURDIR)" GITEA_CONF=tests/sqlite.ini $(GOTESTCOMPILEDRUNPREFIX) ./migrations.sqlite.test $(GOTESTCOMPILEDRUNSUFFIX)
.PHONY: migrations.individual.mysql.test .PHONY: migrations.individual.mysql.test
@ -777,7 +777,7 @@ migrations.individual.mysql.test: $(GO_SOURCES)
.PHONY: migrations.individual.sqlite.test\#% .PHONY: migrations.individual.sqlite.test\#%
migrations.individual.sqlite.test\#%: $(GO_SOURCES) generate-ini-sqlite 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 .PHONY: migrations.individual.pgsql.test
migrations.individual.pgsql.test: $(GO_SOURCES) migrations.individual.pgsql.test: $(GO_SOURCES)
@ -787,7 +787,7 @@ migrations.individual.pgsql.test: $(GO_SOURCES)
.PHONY: migrations.individual.pgsql.test\#% .PHONY: migrations.individual.pgsql.test\#%
migrations.individual.pgsql.test\#%: $(GO_SOURCES) generate-ini-pgsql 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 .PHONY: migrations.individual.sqlite.test
migrations.individual.sqlite.test: $(GO_SOURCES) generate-ini-sqlite 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\#% .PHONY: migrations.individual.sqlite.test\#%
migrations.individual.sqlite.test\#%: $(GO_SOURCES) generate-ini-sqlite 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) 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) 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) 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 .PHONY: check
check: test check: test
@ -1013,7 +1013,7 @@ generate-gitignore:
.PHONY: generate-gomock .PHONY: generate-gomock
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 .PHONY: generate-images
generate-images: | node_modules generate-images: | node_modules

View file

@ -12,8 +12,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
) )
func main() { func main() {

View file

@ -15,7 +15,7 @@ import (
"strconv" "strconv"
"strings" "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. // Windows has a limitation for command line arguments, the size can not exceed 32KB.

View file

@ -14,7 +14,7 @@ import (
var importPackageGroupOrders = map[string]int{ var importPackageGroupOrders = map[string]int{
"": 1, // internal "": 1, // internal
"code.gitea.io/gitea/": 2, "forgejo.org/": 2,
} }
var errInvalidCommentBetweenImports = errors.New("comments between imported packages are invalid, please move comments to the end of the package line") var errInvalidCommentBetweenImports = errors.New("comments between imported packages are invalid, please move comments to the end of the package line")

View file

@ -58,8 +58,8 @@ import (
"code.gitea.io/other/package" "code.gitea.io/other/package"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"xorm.io/the/package" "xorm.io/the/package"
@ -82,8 +82,8 @@ import (
_ "image/jpeg" // for processing jpeg images _ "image/jpeg" // for processing jpeg images
_ "image/png" // for processing png images _ "image/png" // for processing png images
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"code.gitea.io/other/package" "code.gitea.io/other/package"
"github.com/issue9/identicon" "github.com/issue9/identicon"

View file

@ -20,7 +20,7 @@ import (
"strings" "strings"
"unicode/utf8" "unicode/utf8"
"code.gitea.io/gitea/modules/json" "forgejo.org/modules/json"
) )
const ( const (

View file

@ -15,7 +15,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
) )
func main() { func main() {

View file

@ -16,7 +16,7 @@ import (
"sort" "sort"
"strings" "strings"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
) )
// regexp is based on go-license, excluding README and NOTICE // regexp is based on go-license, excluding README and NOTICE
@ -102,9 +102,9 @@ func main() {
pkgName := path.Dir(pkgPath) pkgName := path.Dir(pkgPath)
// There might be a bug somewhere in go-licenses that sometimes interprets the // 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. // removing both of them for the sake of stable output.
if pkgName == "." || pkgName == "code.gitea.io/gitea" { if pkgName == "." || pkgName == "forgejo.org" {
continue continue
} }

View file

@ -15,7 +15,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
) )
func main() { func main() {

View file

@ -17,10 +17,10 @@ import (
"text/template" "text/template"
tmplParser "text/template/parse" tmplParser "text/template/parse"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/locale" "forgejo.org/modules/locale"
fjTemplates "code.gitea.io/gitea/modules/templates" fjTemplates "forgejo.org/modules/templates"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
) )
// this works by first gathering all valid source string IDs from `en-US` reference files // this works by first gathering all valid source string IDs from `en-US` reference files

View file

@ -14,7 +14,7 @@ import (
"slices" "slices"
"strings" "strings"
"code.gitea.io/gitea/modules/locale" "forgejo.org/modules/locale"
"github.com/microcosm-cc/bluemonday" "github.com/microcosm-cc/bluemonday"
"github.com/sergi/go-diff/diffmatchpatch" "github.com/sergi/go-diff/diffmatchpatch"

View file

@ -6,8 +6,8 @@ package cmd
import ( import (
"fmt" "fmt"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -8,12 +8,12 @@ import (
"context" "context"
"fmt" "fmt"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
"code.gitea.io/gitea/modules/git" "forgejo.org/modules/git"
"code.gitea.io/gitea/modules/gitrepo" "forgejo.org/modules/gitrepo"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
repo_module "code.gitea.io/gitea/modules/repository" repo_module "forgejo.org/modules/repository"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -9,9 +9,9 @@ import (
"os" "os"
"text/tabwriter" "text/tabwriter"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
auth_service "code.gitea.io/gitea/services/auth" auth_service "forgejo.org/services/auth"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -8,8 +8,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"code.gitea.io/gitea/models/auth" "forgejo.org/models/auth"
"code.gitea.io/gitea/services/auth/source/ldap" "forgejo.org/services/auth/source/ldap"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -7,8 +7,8 @@ import (
"context" "context"
"testing" "testing"
"code.gitea.io/gitea/models/auth" "forgejo.org/models/auth"
"code.gitea.io/gitea/services/auth/source/ldap" "forgejo.org/services/auth/source/ldap"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -8,8 +8,8 @@ import (
"fmt" "fmt"
"net/url" "net/url"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/services/auth/source/oauth2" "forgejo.org/services/auth/source/oauth2"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -7,9 +7,9 @@ import (
"errors" "errors"
"strings" "strings"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"code.gitea.io/gitea/services/auth/source/smtp" "forgejo.org/services/auth/source/smtp"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -4,9 +4,9 @@
package cmd package cmd
import ( import (
asymkey_model "code.gitea.io/gitea/models/asymkey" asymkey_model "forgejo.org/models/asymkey"
"code.gitea.io/gitea/modules/graceful" "forgejo.org/modules/graceful"
repo_service "code.gitea.io/gitea/services/repository" repo_service "forgejo.org/services/repository"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -7,11 +7,11 @@ import (
"errors" "errors"
"fmt" "fmt"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/auth/password" "forgejo.org/modules/auth/password"
"code.gitea.io/gitea/modules/optional" "forgejo.org/modules/optional"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
user_service "code.gitea.io/gitea/services/user" user_service "forgejo.org/services/user"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -7,12 +7,12 @@ import (
"errors" "errors"
"fmt" "fmt"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
pwd "code.gitea.io/gitea/modules/auth/password" pwd "forgejo.org/modules/auth/password"
"code.gitea.io/gitea/modules/optional" "forgejo.org/modules/optional"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -8,9 +8,9 @@ import (
"fmt" "fmt"
"strings" "strings"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/storage" "forgejo.org/modules/storage"
user_service "code.gitea.io/gitea/services/user" user_service "forgejo.org/services/user"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -7,8 +7,8 @@ import (
"errors" "errors"
"fmt" "fmt"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -8,7 +8,7 @@ import (
"os" "os"
"text/tabwriter" "text/tabwriter"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -7,7 +7,7 @@ import (
"errors" "errors"
"fmt" "fmt"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -15,10 +15,10 @@ import (
"strings" "strings"
"syscall" "syscall"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -11,13 +11,13 @@ import (
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/migrations" "forgejo.org/models/migrations"
migrate_base "code.gitea.io/gitea/models/migrations/base" migrate_base "forgejo.org/models/migrations/base"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/services/doctor" "forgejo.org/services/doctor"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"xorm.io/xorm" "xorm.io/xorm"

View file

@ -6,9 +6,9 @@ package cmd
import ( import (
"fmt" "fmt"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -7,8 +7,8 @@ import (
"context" "context"
"testing" "testing"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/services/doctor" "forgejo.org/services/doctor"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"

View file

@ -13,12 +13,12 @@ import (
"strings" "strings"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/json" "forgejo.org/modules/json"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/storage" "forgejo.org/modules/storage"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"code.forgejo.org/go-chi/session" "code.forgejo.org/go-chi/session"
"github.com/mholt/archiver/v3" "github.com/mholt/archiver/v3"

View file

@ -10,14 +10,14 @@ import (
"os" "os"
"strings" "strings"
"code.gitea.io/gitea/modules/git" "forgejo.org/modules/git"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
base "code.gitea.io/gitea/modules/migration" base "forgejo.org/modules/migration"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/structs" "forgejo.org/modules/structs"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"code.gitea.io/gitea/services/convert" "forgejo.org/services/convert"
"code.gitea.io/gitea/services/migrations" "forgejo.org/services/migrations"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -10,13 +10,13 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"code.gitea.io/gitea/modules/assetfs" "forgejo.org/modules/assetfs"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/options" "forgejo.org/modules/options"
"code.gitea.io/gitea/modules/public" "forgejo.org/modules/public"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/templates" "forgejo.org/modules/templates"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"github.com/gobwas/glob" "github.com/gobwas/glob"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"

View file

@ -11,10 +11,10 @@ import (
"os" "os"
"strings" "strings"
actions_model "code.gitea.io/gitea/models/actions" actions_model "forgejo.org/models/actions"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
private_routers "code.gitea.io/gitea/routers/private" private_routers "forgejo.org/routers/private"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"code.gitea.io/gitea/services/context" "forgejo.org/services/context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -8,14 +8,14 @@ import (
"context" "context"
"errors" "errors"
"code.gitea.io/gitea/models" "forgejo.org/models"
"code.gitea.io/gitea/modules/git" "forgejo.org/modules/git"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/storage" "forgejo.org/modules/storage"
"code.gitea.io/gitea/services/f3/util" "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_cmd "code.forgejo.org/f3/gof3/v3/cmd"
f3_logger "code.forgejo.org/f3/gof3/v3/logger" f3_logger "code.forgejo.org/f3/gof3/v3/logger"

View file

@ -11,10 +11,10 @@ import (
"os/signal" "os/signal"
"syscall" "syscall"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -8,7 +8,7 @@ import (
"fmt" "fmt"
"os" "os"
"code.gitea.io/gitea/modules/generate" "forgejo.org/modules/generate"
"github.com/mattn/go-isatty" "github.com/mattn/go-isatty"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"

View file

@ -14,12 +14,12 @@ import (
"strings" "strings"
"time" "time"
"code.gitea.io/gitea/modules/git" "forgejo.org/modules/git"
"code.gitea.io/gitea/modules/git/pushoptions" "forgejo.org/modules/git/pushoptions"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
repo_module "code.gitea.io/gitea/modules/repository" repo_module "forgejo.org/modules/repository"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -14,8 +14,8 @@ import (
"testing" "testing"
"time" "time"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/test" "forgejo.org/modules/test"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -8,8 +8,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -6,8 +6,8 @@ package cmd
import ( import (
"fmt" "fmt"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -10,9 +10,9 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"code.gitea.io/gitea/cmd/forgejo" "forgejo.org/cmd/forgejo"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -10,9 +10,9 @@ import (
"strings" "strings"
"testing" "testing"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/test" "forgejo.org/modules/test"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -7,7 +7,7 @@ import (
"os" "os"
"time" "time"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -8,8 +8,8 @@ import (
"fmt" "fmt"
"os" "os"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -6,10 +6,10 @@ package cmd
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/migrations" "forgejo.org/models/migrations"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -10,17 +10,17 @@ import (
"io/fs" "io/fs"
"strings" "strings"
actions_model "code.gitea.io/gitea/models/actions" actions_model "forgejo.org/models/actions"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
git_model "code.gitea.io/gitea/models/git" git_model "forgejo.org/models/git"
"code.gitea.io/gitea/models/migrations" "forgejo.org/models/migrations"
packages_model "code.gitea.io/gitea/models/packages" packages_model "forgejo.org/models/packages"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
packages_module "code.gitea.io/gitea/modules/packages" packages_module "forgejo.org/modules/packages"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/storage" "forgejo.org/modules/storage"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -9,16 +9,16 @@ import (
"strings" "strings"
"testing" "testing"
"code.gitea.io/gitea/models/actions" "forgejo.org/models/actions"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/packages" "forgejo.org/models/packages"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
packages_module "code.gitea.io/gitea/modules/packages" packages_module "forgejo.org/modules/packages"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/storage" "forgejo.org/modules/storage"
"code.gitea.io/gitea/modules/test" "forgejo.org/modules/test"
packages_service "code.gitea.io/gitea/services/packages" packages_service "forgejo.org/services/packages"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -6,8 +6,8 @@ package cmd
import ( import (
"strings" "strings"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -18,18 +18,18 @@ import (
"time" "time"
"unicode" "unicode"
asymkey_model "code.gitea.io/gitea/models/asymkey" asymkey_model "forgejo.org/models/asymkey"
git_model "code.gitea.io/gitea/models/git" git_model "forgejo.org/models/git"
"code.gitea.io/gitea/models/perm" "forgejo.org/models/perm"
"code.gitea.io/gitea/modules/git" "forgejo.org/modules/git"
"code.gitea.io/gitea/modules/json" "forgejo.org/modules/json"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/pprof" "forgejo.org/modules/pprof"
"code.gitea.io/gitea/modules/private" "forgejo.org/modules/private"
"code.gitea.io/gitea/modules/process" "forgejo.org/modules/process"
repo_module "code.gitea.io/gitea/modules/repository" repo_module "forgejo.org/modules/repository"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/services/lfs" "forgejo.org/services/lfs"
"github.com/golang-jwt/jwt/v5" "github.com/golang-jwt/jwt/v5"
"github.com/kballard/go-shellquote" "github.com/kballard/go-shellquote"

View file

@ -16,14 +16,14 @@ import (
_ "net/http/pprof" // Used for debugging if enabled and a web server is running _ "net/http/pprof" // Used for debugging if enabled and a web server is running
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/graceful" "forgejo.org/modules/graceful"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/process" "forgejo.org/modules/process"
"code.gitea.io/gitea/modules/public" "forgejo.org/modules/public"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/routers" "forgejo.org/routers"
"code.gitea.io/gitea/routers/install" "forgejo.org/routers/install"
"github.com/felixge/fgprof" "github.com/felixge/fgprof"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"

View file

@ -12,10 +12,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"code.gitea.io/gitea/modules/graceful" "forgejo.org/modules/graceful"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/process" "forgejo.org/modules/process"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/caddyserver/certmagic" "github.com/caddyserver/certmagic"
) )

View file

@ -9,9 +9,9 @@ import (
"net/http/fcgi" "net/http/fcgi"
"strings" "strings"
"code.gitea.io/gitea/modules/graceful" "forgejo.org/modules/graceful"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
) )
func runHTTP(network, listenAddr, name string, m http.Handler, useProxyProtocol bool) error { func runHTTP(network, listenAddr, name string, m http.Handler, useProxyProtocol bool) error {

View file

@ -9,9 +9,9 @@ import (
"os" "os"
"strings" "strings"
"code.gitea.io/gitea/modules/graceful" "forgejo.org/modules/graceful"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/klauspost/cpuid/v2" "github.com/klauspost/cpuid/v2"
) )

View file

@ -6,8 +6,8 @@ package main
import ( import (
"os" "os"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

2
go.mod
View file

@ -1,4 +1,4 @@
module code.gitea.io/gitea module forgejo.org
go 1.24 go 1.24

16
main.go
View file

@ -10,16 +10,16 @@ import (
"strings" "strings"
"time" "time"
"code.gitea.io/gitea/cmd" "forgejo.org/cmd"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
// register supported doc types // register supported doc types
_ "code.gitea.io/gitea/modules/markup/asciicast" _ "forgejo.org/modules/markup/asciicast"
_ "code.gitea.io/gitea/modules/markup/console" _ "forgejo.org/modules/markup/console"
_ "code.gitea.io/gitea/modules/markup/csv" _ "forgejo.org/modules/markup/csv"
_ "code.gitea.io/gitea/modules/markup/markdown" _ "forgejo.org/modules/markup/markdown"
_ "code.gitea.io/gitea/modules/markup/orgmode" _ "forgejo.org/modules/markup/orgmode"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )

View file

@ -11,9 +11,9 @@ import (
"errors" "errors"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -7,9 +7,9 @@ import (
"crypto/subtle" "crypto/subtle"
"fmt" "fmt"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
gouuid "github.com/google/uuid" gouuid "github.com/google/uuid"
) )

View file

@ -6,9 +6,9 @@ import (
"crypto/subtle" "crypto/subtle"
"testing" "testing"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -6,7 +6,7 @@ package actions
import ( import (
"testing" "testing"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {

View file

@ -10,15 +10,15 @@ import (
"strings" "strings"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/git" "forgejo.org/modules/git"
"code.gitea.io/gitea/modules/json" "forgejo.org/modules/json"
api "code.gitea.io/gitea/modules/structs" api "forgejo.org/modules/structs"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
webhook_module "code.gitea.io/gitea/modules/webhook" webhook_module "forgejo.org/modules/webhook"
"github.com/nektos/act/pkg/jobparser" "github.com/nektos/act/pkg/jobparser"
"xorm.io/builder" "xorm.io/builder"

View file

@ -9,10 +9,10 @@ import (
"slices" "slices"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -6,9 +6,9 @@ package actions
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -6,12 +6,12 @@ package actions
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/translation" "forgejo.org/modules/translation"
webhook_module "code.gitea.io/gitea/modules/webhook" webhook_module "forgejo.org/modules/webhook"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -11,15 +11,15 @@ import (
"strings" "strings"
"time" "time"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
"code.gitea.io/gitea/models/shared/types" "forgejo.org/models/shared/types"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/optional" "forgejo.org/modules/optional"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/translation" "forgejo.org/modules/translation"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
runnerv1 "code.gitea.io/actions-proto-go/runner/v1" runnerv1 "code.gitea.io/actions-proto-go/runner/v1"
"xorm.io/builder" "xorm.io/builder"

View file

@ -6,10 +6,10 @@ package actions
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
) )
type RunnerList []*ActionRunner type RunnerList []*ActionRunner

View file

@ -7,9 +7,9 @@ import (
"fmt" "fmt"
"testing" "testing"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -7,11 +7,11 @@ import (
"context" "context"
"fmt" "fmt"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
) )
// ActionRunnerToken represents runner tokens // ActionRunnerToken represents runner tokens

View file

@ -6,8 +6,8 @@ package actions
import ( import (
"testing" "testing"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -8,12 +8,12 @@ import (
"fmt" "fmt"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
webhook_module "code.gitea.io/gitea/modules/webhook" webhook_module "forgejo.org/modules/webhook"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -8,9 +8,9 @@ import (
"strings" "strings"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"github.com/robfig/cron/v3" "github.com/robfig/cron/v3"
) )

View file

@ -6,9 +6,9 @@ package actions
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -4,7 +4,7 @@
package actions package actions
import ( import (
"code.gitea.io/gitea/modules/translation" "forgejo.org/modules/translation"
runnerv1 "code.gitea.io/actions-proto-go/runner/v1" runnerv1 "code.gitea.io/actions-proto-go/runner/v1"
) )

View file

@ -9,13 +9,13 @@ import (
"fmt" "fmt"
"time" "time"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/unit" "forgejo.org/models/unit"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
runnerv1 "code.gitea.io/actions-proto-go/runner/v1" runnerv1 "code.gitea.io/actions-proto-go/runner/v1"
lru "github.com/hashicorp/golang-lru/v2" lru "github.com/hashicorp/golang-lru/v2"

View file

@ -6,9 +6,9 @@ package actions
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -6,7 +6,7 @@ package actions
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
) )
// ActionTaskOutput represents an output of ActionTask. // ActionTaskOutput represents an output of ActionTask.

View file

@ -7,8 +7,8 @@ import (
"context" "context"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
) )
// ActionTaskStep represents a step of ActionTask // ActionTaskStep represents a step of ActionTask

View file

@ -6,9 +6,9 @@ package actions
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
) )
// ActionTasksVersion // ActionTasksVersion

View file

@ -12,9 +12,9 @@ import (
"io" "io"
"time" "time"
auth_model "code.gitea.io/gitea/models/auth" auth_model "forgejo.org/models/auth"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
) )
func generateSaltedToken() (string, string, string, string, error) { func generateSaltedToken() (string, string, string, string, error) {

View file

@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -7,9 +7,9 @@ import (
"context" "context"
"strings" "strings"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -14,20 +14,20 @@ import (
"strings" "strings"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
issues_model "code.gitea.io/gitea/models/issues" issues_model "forgejo.org/models/issues"
"code.gitea.io/gitea/models/organization" "forgejo.org/models/organization"
access_model "code.gitea.io/gitea/models/perm/access" access_model "forgejo.org/models/perm/access"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
"code.gitea.io/gitea/models/unit" "forgejo.org/models/unit"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/base" "forgejo.org/modules/base"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/git" "forgejo.org/modules/git"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/structs" "forgejo.org/modules/structs"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"xorm.io/builder" "xorm.io/builder"
"xorm.io/xorm/schemas" "xorm.io/xorm/schemas"

View file

@ -8,12 +8,12 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
issues_model "code.gitea.io/gitea/models/issues" issues_model "forgejo.org/models/issues"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -8,13 +8,13 @@ import (
"path" "path"
"testing" "testing"
activities_model "code.gitea.io/gitea/models/activities" activities_model "forgejo.org/models/activities"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
issue_model "code.gitea.io/gitea/models/issues" issue_model "forgejo.org/models/issues"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -6,11 +6,11 @@ package activities_test
import ( import (
"testing" "testing"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
_ "code.gitea.io/gitea/models" _ "forgejo.org/models"
_ "code.gitea.io/gitea/models/actions" _ "forgejo.org/models/actions"
_ "code.gitea.io/gitea/models/forgefed" _ "forgejo.org/models/forgefed"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {

View file

@ -9,14 +9,14 @@ import (
"net/url" "net/url"
"strconv" "strconv"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
issues_model "code.gitea.io/gitea/models/issues" issues_model "forgejo.org/models/issues"
"code.gitea.io/gitea/models/organization" "forgejo.org/models/organization"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"code.gitea.io/gitea/modules/util" "forgejo.org/modules/util"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -6,14 +6,14 @@ package activities
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
issues_model "code.gitea.io/gitea/models/issues" issues_model "forgejo.org/models/issues"
access_model "code.gitea.io/gitea/models/perm/access" access_model "forgejo.org/models/perm/access"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
"code.gitea.io/gitea/models/unit" "forgejo.org/models/unit"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/container" "forgejo.org/modules/container"
"code.gitea.io/gitea/modules/log" "forgejo.org/modules/log"
"xorm.io/builder" "xorm.io/builder"
) )

View file

@ -7,11 +7,11 @@ import (
"context" "context"
"testing" "testing"
activities_model "code.gitea.io/gitea/models/activities" activities_model "forgejo.org/models/activities"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
issues_model "code.gitea.io/gitea/models/issues" issues_model "forgejo.org/models/issues"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -9,12 +9,12 @@ import (
"sort" "sort"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
issues_model "code.gitea.io/gitea/models/issues" issues_model "forgejo.org/models/issues"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/git" "forgejo.org/modules/git"
"code.gitea.io/gitea/modules/gitrepo" "forgejo.org/modules/gitrepo"
"xorm.io/xorm" "xorm.io/xorm"
) )

View file

@ -7,9 +7,9 @@ import (
"testing" "testing"
"time" "time"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -6,18 +6,18 @@ package activities
import ( import (
"context" "context"
asymkey_model "code.gitea.io/gitea/models/asymkey" asymkey_model "forgejo.org/models/asymkey"
"code.gitea.io/gitea/models/auth" "forgejo.org/models/auth"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
git_model "code.gitea.io/gitea/models/git" git_model "forgejo.org/models/git"
issues_model "code.gitea.io/gitea/models/issues" issues_model "forgejo.org/models/issues"
"code.gitea.io/gitea/models/organization" "forgejo.org/models/organization"
access_model "code.gitea.io/gitea/models/perm/access" access_model "forgejo.org/models/perm/access"
project_model "code.gitea.io/gitea/models/project" project_model "forgejo.org/models/project"
repo_model "code.gitea.io/gitea/models/repo" repo_model "forgejo.org/models/repo"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/models/webhook" "forgejo.org/models/webhook"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
) )
// Statistic contains the database statistics // Statistic contains the database statistics

View file

@ -6,11 +6,11 @@ package activities
import ( import (
"context" "context"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/organization" "forgejo.org/models/organization"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/setting" "forgejo.org/modules/setting"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
) )
// UserHeatmapData represents the data needed to create a heatmap // UserHeatmapData represents the data needed to create a heatmap

View file

@ -7,12 +7,12 @@ import (
"testing" "testing"
"time" "time"
activities_model "code.gitea.io/gitea/models/activities" activities_model "forgejo.org/models/activities"
"code.gitea.io/gitea/models/db" "forgejo.org/models/db"
"code.gitea.io/gitea/models/unittest" "forgejo.org/models/unittest"
user_model "code.gitea.io/gitea/models/user" user_model "forgejo.org/models/user"
"code.gitea.io/gitea/modules/json" "forgejo.org/modules/json"
"code.gitea.io/gitea/modules/timeutil" "forgejo.org/modules/timeutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

Some files were not shown because too many files have changed in this diff Show more