This commit is contained in:
Christopher Homberger 2025-07-25 22:01:50 +02:00
parent 796d2c171f
commit 6a9eb9e1e7
6 changed files with 6 additions and 6 deletions

View File

@ -33,9 +33,9 @@ import (
actions_service "code.gitea.io/gitea/services/actions" actions_service "code.gitea.io/gitea/services/actions"
context_module "code.gitea.io/gitea/services/context" context_module "code.gitea.io/gitea/services/context"
notify_service "code.gitea.io/gitea/services/notify" notify_service "code.gitea.io/gitea/services/notify"
"gopkg.in/yaml.v3"
"github.com/nektos/act/pkg/model" "github.com/nektos/act/pkg/model"
"gopkg.in/yaml.v3"
"xorm.io/builder" "xorm.io/builder"
) )

View File

@ -11,10 +11,10 @@ import (
actions_model "code.gitea.io/gitea/models/actions" actions_model "code.gitea.io/gitea/models/actions"
"code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/json"
api "code.gitea.io/gitea/modules/structs" api "code.gitea.io/gitea/modules/structs"
"gopkg.in/yaml.v3"
"github.com/nektos/act/pkg/jobparser" "github.com/nektos/act/pkg/jobparser"
act_model "github.com/nektos/act/pkg/model" act_model "github.com/nektos/act/pkg/model"
"gopkg.in/yaml.v3"
) )
func EvaluateWorkflowConcurrency(ctx context.Context, run *actions_model.ActionRun, rc *act_model.RawConcurrency, vars map[string]string) (string, bool, error) { func EvaluateWorkflowConcurrency(ctx context.Context, run *actions_model.ActionRun, rc *act_model.RawConcurrency, vars map[string]string) (string, bool, error) {

View File

@ -28,10 +28,10 @@ import (
webhook_module "code.gitea.io/gitea/modules/webhook" webhook_module "code.gitea.io/gitea/modules/webhook"
"code.gitea.io/gitea/services/convert" "code.gitea.io/gitea/services/convert"
notify_service "code.gitea.io/gitea/services/notify" notify_service "code.gitea.io/gitea/services/notify"
"gopkg.in/yaml.v3"
"github.com/nektos/act/pkg/jobparser" "github.com/nektos/act/pkg/jobparser"
"github.com/nektos/act/pkg/model" "github.com/nektos/act/pkg/model"
"gopkg.in/yaml.v3"
) )
type methodCtxKeyType struct{} type methodCtxKeyType struct{}

View File

@ -11,9 +11,9 @@ import (
"code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/db"
repo_model "code.gitea.io/gitea/models/repo" repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/modules/util"
"gopkg.in/yaml.v3"
"github.com/nektos/act/pkg/jobparser" "github.com/nektos/act/pkg/jobparser"
"gopkg.in/yaml.v3"
) )
// InsertRun inserts a run // InsertRun inserts a run

View File

@ -16,9 +16,9 @@ import (
"code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/timeutil"
webhook_module "code.gitea.io/gitea/modules/webhook" webhook_module "code.gitea.io/gitea/modules/webhook"
notify_service "code.gitea.io/gitea/services/notify" notify_service "code.gitea.io/gitea/services/notify"
"gopkg.in/yaml.v3"
"github.com/nektos/act/pkg/jobparser" "github.com/nektos/act/pkg/jobparser"
"gopkg.in/yaml.v3"
) )
// StartScheduleTasks start the task // StartScheduleTasks start the task

View File

@ -23,10 +23,10 @@ import (
"code.gitea.io/gitea/services/context" "code.gitea.io/gitea/services/context"
"code.gitea.io/gitea/services/convert" "code.gitea.io/gitea/services/convert"
notify_service "code.gitea.io/gitea/services/notify" notify_service "code.gitea.io/gitea/services/notify"
"gopkg.in/yaml.v3"
"github.com/nektos/act/pkg/jobparser" "github.com/nektos/act/pkg/jobparser"
"github.com/nektos/act/pkg/model" "github.com/nektos/act/pkg/model"
"gopkg.in/yaml.v3"
) )
func EnableOrDisableWorkflow(ctx *context.APIContext, workflowID string, isEnable bool) error { func EnableOrDisableWorkflow(ctx *context.APIContext, workflowID string, isEnable bool) error {