This commit is contained in:
@@ -7,7 +7,7 @@ package migration
|
||||
import (
|
||||
"context"
|
||||
|
||||
"code.gitea.io/gitea/modules/structs"
|
||||
"gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// Downloader downloads the site repo information
|
||||
|
||||
@@ -9,11 +9,11 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"code.gitea.io/gitea/modules/json"
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"gitea.dev/modules/json"
|
||||
"gitea.dev/modules/log"
|
||||
|
||||
"github.com/santhosh-tekuri/jsonschema/v6"
|
||||
"gopkg.in/yaml.v3"
|
||||
"go.yaml.in/yaml/v4"
|
||||
)
|
||||
|
||||
// schemaLoader implements jsonschema.URLLoader
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
package migration
|
||||
|
||||
import "code.gitea.io/gitea/modules/structs"
|
||||
import "gitea.dev/modules/structs"
|
||||
|
||||
// MigrateOptions defines the way a repository gets migrated
|
||||
// this is for internal usage by migrations module and func who interact with it
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"code.gitea.io/gitea/modules/git"
|
||||
"gitea.dev/modules/git"
|
||||
)
|
||||
|
||||
// PullRequest defines a standard pull request information
|
||||
|
||||
@@ -11,6 +11,7 @@ type Repository struct {
|
||||
IsPrivate bool `yaml:"is_private"`
|
||||
IsMirror bool `yaml:"is_mirror"`
|
||||
Description string
|
||||
Website string
|
||||
CloneURL string `yaml:"clone_url"` // SECURITY: This must be checked to ensure that is safe to be used
|
||||
OriginalURL string `yaml:"original_url"`
|
||||
DefaultBranch string
|
||||
|
||||
@@ -12,9 +12,9 @@ import (
|
||||
"path"
|
||||
"sync"
|
||||
|
||||
_ "embed"
|
||||
"gitea.dev/modules/assetfs"
|
||||
|
||||
"code.gitea.io/gitea/modules/assetfs"
|
||||
_ "embed"
|
||||
|
||||
"github.com/santhosh-tekuri/jsonschema/v6"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user