diff --git a/routers/api/v1/repo/actions_run.go b/routers/api/v1/repo/actions_run.go index cb1737a56e..3e5824d1ee 100644 --- a/routers/api/v1/repo/actions_run.go +++ b/routers/api/v1/repo/actions_run.go @@ -491,8 +491,6 @@ func getRunJobsAndCurrent(ctx *context.APIContext, runID, jobIndex int64) (*acti return jobs[0], jobs, nil } - - // LogCursor represents a log cursor position type LogCursor struct { Step int `json:"step"` diff --git a/routers/web/repo/actions/view.go b/routers/web/repo/actions/view.go index 6b1c1d669b..0d94bc9782 100644 --- a/routers/web/repo/actions/view.go +++ b/routers/web/repo/actions/view.go @@ -500,8 +500,6 @@ func Rerun(ctx *context_module.Context) { ctx.JSONOK() } - - func Logs(ctx *context_module.Context) { runIndex := getRunIndex(ctx) jobIndex := ctx.PathParamInt64("job") diff --git a/services/actions/rerun.go b/services/actions/rerun.go index fbd73fb5fb..e2019aa17e 100644 --- a/services/actions/rerun.go +++ b/services/actions/rerun.go @@ -11,6 +11,7 @@ import ( "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/modules/container" "code.gitea.io/gitea/modules/util" + "xorm.io/builder" ) diff --git a/tests/integration/api_actions_run_test.go b/tests/integration/api_actions_run_test.go index 117415ea57..500cfb63d6 100644 --- a/tests/integration/api_actions_run_test.go +++ b/tests/integration/api_actions_run_test.go @@ -153,8 +153,6 @@ func TestAPIActionsRerunWorkflowRun(t *testing.T) { req = NewRequest(t, "POST", fmt.Sprintf("/api/v1/repos/%s/actions/runs/999999/rerun", repo.FullName())). AddTokenAuth(token) MakeRequest(t, req, http.StatusNotFound) - - } func TestAPIActionsRerunWorkflowRunPermissions(t *testing.T) {