File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -9,21 +9,18 @@ import (
9
9
"context"
10
10
11
11
"code.gitea.io/gitea/models/db"
12
- //"code.gitea.io/gitea/models/unit"
13
12
"code.gitea.io/gitea/modules/timeutil"
14
13
15
14
"xorm.io/builder"
16
15
)
17
16
18
17
type RequireAction struct {
19
- ID int64 `xorm:"pk autoincr"`
20
- OrgID int64 `xorm:"index"`
21
- RepoName string `xorm:"VARCHAR(255)"`
22
- WorkflowName string `xorm:"VARCHAR(255) UNIQUE(require_action) NOT NULL"`
23
- // Description string `xorm:"LONGTEXT NOT NULL"`
24
- CreatedUnix timeutil.TimeStamp `xorm:"created NOT NULL"`
25
- UpdatedUnix timeutil.TimeStamp `xorm:"updated"`
26
- // RepoRange string // glob match which repositories could use this runner
18
+ ID int64 `xorm:"pk autoincr"`
19
+ OrgID int64 `xorm:"index"`
20
+ RepoName string `xorm:"VARCHAR(255)"`
21
+ WorkflowName string `xorm:"VARCHAR(255) UNIQUE(require_action) NOT NULL"`
22
+ CreatedUnix timeutil.TimeStamp `xorm:"created NOT NULL"`
23
+ UpdatedUnix timeutil.TimeStamp `xorm:"updated"`
27
24
}
28
25
29
26
type GlobalWorkflow struct {
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package v1_23 //nolint
5
5
6
6
import (
7
7
"code.gitea.io/gitea/modules/timeutil"
8
+
8
9
"xorm.io/xorm"
9
10
)
10
11
Original file line number Diff line number Diff line change @@ -9,15 +9,11 @@ import (
9
9
"errors"
10
10
"net/http"
11
11
12
+ actions_model "code.gitea.io/gitea/models/actions"
12
13
"code.gitea.io/gitea/models/db"
13
14
"code.gitea.io/gitea/modules/base"
14
- // "code.gitea.io/gitea/modules/log"
15
-
16
- "code.gitea.io/gitea/services/context"
17
-
18
- //"code.gitea.io/gitea/modules/setting"
19
- actions_model "code.gitea.io/gitea/models/actions"
20
15
shared "code.gitea.io/gitea/routers/web/shared/actions"
16
+ "code.gitea.io/gitea/services/context"
21
17
)
22
18
23
19
const (
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ import (
13
13
"code.gitea.io/gitea/modules/log"
14
14
"code.gitea.io/gitea/modules/web"
15
15
actions_service "code.gitea.io/gitea/services/actions"
16
- "code.gitea.io/gitea/services/forms"
17
-
18
16
"code.gitea.io/gitea/services/context"
17
+ "code.gitea.io/gitea/services/forms"
19
18
)
20
19
21
20
// SetRequireActionDeletePost response for deleting a require action workflow
You can’t perform that action at this time.
0 commit comments