0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-05 21:16:11 +01:00

Run make fmt to format code

This commit is contained in:
Ross Golder 2025-10-23 22:40:30 +07:00
parent 11db459f33
commit a18a42b074
No known key found for this signature in database
GPG Key ID: 253A7E508D2D59CD
4 changed files with 1 additions and 6 deletions

View File

@ -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"`

View File

@ -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")

View File

@ -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"
)

View File

@ -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) {