aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/action.go2
-rw-r--r--models/attachment.go2
-rw-r--r--models/issue.go2
-rw-r--r--models/issue_assignees.go2
-rw-r--r--models/issue_comment.go2
-rw-r--r--models/issue_label.go2
-rw-r--r--models/issue_label_test.go2
-rw-r--r--models/issue_milestone.go2
-rw-r--r--models/issue_milestone_test.go2
-rw-r--r--models/issue_tracked_time.go2
-rw-r--r--models/lfs_lock.go2
-rw-r--r--models/pull.go2
-rw-r--r--models/release.go2
-rw-r--r--models/repo.go2
-rw-r--r--models/review.go2
-rw-r--r--models/status.go2
-rw-r--r--models/user.go2
-rw-r--r--models/webhook.go2
-rw-r--r--models/webhook_dingtalk.go2
-rw-r--r--models/webhook_discord.go2
-rw-r--r--models/webhook_msteams.go2
-rw-r--r--models/webhook_slack.go2
-rw-r--r--models/webhook_telegram.go2
-rw-r--r--models/webhook_test.go2
24 files changed, 24 insertions, 24 deletions
diff --git a/models/action.go b/models/action.go
index f397298699..b4f4b1cb6d 100644
--- a/models/action.go
+++ b/models/action.go
@@ -20,8 +20,8 @@ import (
"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"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
"github.com/go-xorm/builder"
diff --git a/models/attachment.go b/models/attachment.go
index bbb88939b1..1740f065d0 100644
--- a/models/attachment.go
+++ b/models/attachment.go
@@ -11,8 +11,8 @@ import (
"path"
"code.gitea.io/gitea/modules/setting"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/go-xorm/xorm"
gouuid "github.com/satori/go.uuid"
diff --git a/models/issue.go b/models/issue.go
index ddc7fa24af..f9394594be 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -14,8 +14,8 @@ import (
"code.gitea.io/gitea/modules/base"
"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"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
"github.com/go-xorm/builder"
diff --git a/models/issue_assignees.go b/models/issue_assignees.go
index 5806dd976d..f6a2afe2c9 100644
--- a/models/issue_assignees.go
+++ b/models/issue_assignees.go
@@ -9,7 +9,7 @@ import (
"code.gitea.io/gitea/modules/log"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/go-xorm/xorm"
)
diff --git a/models/issue_comment.go b/models/issue_comment.go
index a7d6e2e3e8..60fb5b0420 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -18,7 +18,7 @@ import (
"github.com/go-xorm/builder"
"github.com/go-xorm/xorm"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markup"
diff --git a/models/issue_label.go b/models/issue_label.go
index 3c593e72f9..38266f3e7c 100644
--- a/models/issue_label.go
+++ b/models/issue_label.go
@@ -13,7 +13,7 @@ import (
"github.com/go-xorm/xorm"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
var labelColorPattern = regexp.MustCompile("#([a-fA-F0-9]{6})")
diff --git a/models/issue_label_test.go b/models/issue_label_test.go
index d103778df3..5cdc059cff 100644
--- a/models/issue_label_test.go
+++ b/models/issue_label_test.go
@@ -8,7 +8,7 @@ import (
"html/template"
"testing"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
diff --git a/models/issue_milestone.go b/models/issue_milestone.go
index 5304d85e97..3bde4b558c 100644
--- a/models/issue_milestone.go
+++ b/models/issue_milestone.go
@@ -9,8 +9,8 @@ import (
"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"
- api "code.gitea.io/sdk/gitea"
"github.com/go-xorm/xorm"
)
diff --git a/models/issue_milestone_test.go b/models/issue_milestone_test.go
index 3ea63d2d6b..fb1ee8b7a5 100644
--- a/models/issue_milestone_test.go
+++ b/models/issue_milestone_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"time"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/stretchr/testify/assert"
)
diff --git a/models/issue_tracked_time.go b/models/issue_tracked_time.go
index bb3e767127..56ba525776 100644
--- a/models/issue_tracked_time.go
+++ b/models/issue_tracked_time.go
@@ -8,7 +8,7 @@ import (
"time"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/go-xorm/builder"
"github.com/go-xorm/xorm"
diff --git a/models/lfs_lock.go b/models/lfs_lock.go
index d12c7cb538..a27a6f495e 100644
--- a/models/lfs_lock.go
+++ b/models/lfs_lock.go
@@ -12,7 +12,7 @@ import (
"time"
"code.gitea.io/gitea/modules/log"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/go-xorm/xorm"
)
diff --git a/models/pull.go b/models/pull.go
index 71a2439b2c..7382cbd126 100644
--- a/models/pull.go
+++ b/models/pull.go
@@ -23,9 +23,9 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/process"
"code.gitea.io/gitea/modules/setting"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/sync"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
diff --git a/models/release.go b/models/release.go
index b2d5348248..b7ec4461f2 100644
--- a/models/release.go
+++ b/models/release.go
@@ -13,8 +13,8 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/process"
"code.gitea.io/gitea/modules/setting"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/go-xorm/builder"
)
diff --git a/models/repo.go b/models/repo.go
index e8af9aa2db..66c1bdbab1 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -28,9 +28,9 @@ import (
"code.gitea.io/gitea/modules/options"
"code.gitea.io/gitea/modules/process"
"code.gitea.io/gitea/modules/setting"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/sync"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/cae/zip"
"github.com/Unknwon/com"
diff --git a/models/review.go b/models/review.go
index ea2ccebed5..5f856fbd89 100644
--- a/models/review.go
+++ b/models/review.go
@@ -8,8 +8,8 @@ import (
"fmt"
"code.gitea.io/gitea/modules/log"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/go-xorm/builder"
"github.com/go-xorm/core"
diff --git a/models/status.go b/models/status.go
index 9cfd9e896f..a3db47f455 100644
--- a/models/status.go
+++ b/models/status.go
@@ -12,8 +12,8 @@ import (
"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"
- api "code.gitea.io/sdk/gitea"
"github.com/go-xorm/xorm"
)
diff --git a/models/user.go b/models/user.go
index a51f52afb9..0c445b5afd 100644
--- a/models/user.go
+++ b/models/user.go
@@ -32,8 +32,8 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/structs"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
"github.com/go-xorm/builder"
diff --git a/models/webhook.go b/models/webhook.go
index 8a7350bb6e..51b91879ee 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -20,9 +20,9 @@ import (
"code.gitea.io/gitea/modules/httplib"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
+ api "code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/sync"
"code.gitea.io/gitea/modules/util"
- api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
gouuid "github.com/satori/go.uuid"
)
diff --git a/models/webhook_dingtalk.go b/models/webhook_dingtalk.go
index 7086732707..6a4bdaf06e 100644
--- a/models/webhook_dingtalk.go
+++ b/models/webhook_dingtalk.go
@@ -10,7 +10,7 @@ import (
"strings"
"code.gitea.io/gitea/modules/git"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
dingtalk "github.com/lunny/dingtalk_webhook"
)
diff --git a/models/webhook_discord.go b/models/webhook_discord.go
index 8f1cb16940..0029e94fca 100644
--- a/models/webhook_discord.go
+++ b/models/webhook_discord.go
@@ -13,7 +13,7 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
type (
diff --git a/models/webhook_msteams.go b/models/webhook_msteams.go
index b0fc4e7a2e..f42defbd1a 100644
--- a/models/webhook_msteams.go
+++ b/models/webhook_msteams.go
@@ -10,7 +10,7 @@ import (
"strings"
"code.gitea.io/gitea/modules/git"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
type (
diff --git a/models/webhook_slack.go b/models/webhook_slack.go
index 2bb84c2c4b..f422953e41 100644
--- a/models/webhook_slack.go
+++ b/models/webhook_slack.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/setting"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
// SlackMeta contains the slack metadata
diff --git a/models/webhook_telegram.go b/models/webhook_telegram.go
index 7976d14c57..ead669dd08 100644
--- a/models/webhook_telegram.go
+++ b/models/webhook_telegram.go
@@ -12,7 +12,7 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/markup"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
)
type (
diff --git a/models/webhook_test.go b/models/webhook_test.go
index 518be8be8a..d2fb3ea6ed 100644
--- a/models/webhook_test.go
+++ b/models/webhook_test.go
@@ -8,7 +8,7 @@ import (
"encoding/json"
"testing"
- api "code.gitea.io/sdk/gitea"
+ api "code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)