mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-05 16:55:30 +01:00
Run make fmt to format code
This commit is contained in:
parent
11db459f33
commit
a18a42b074
@ -491,8 +491,6 @@ func getRunJobsAndCurrent(ctx *context.APIContext, runID, jobIndex int64) (*acti
|
|||||||
return jobs[0], jobs, nil
|
return jobs[0], jobs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// LogCursor represents a log cursor position
|
// LogCursor represents a log cursor position
|
||||||
type LogCursor struct {
|
type LogCursor struct {
|
||||||
Step int `json:"step"`
|
Step int `json:"step"`
|
||||||
|
|||||||
@ -500,8 +500,6 @@ func Rerun(ctx *context_module.Context) {
|
|||||||
ctx.JSONOK()
|
ctx.JSONOK()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func Logs(ctx *context_module.Context) {
|
func Logs(ctx *context_module.Context) {
|
||||||
runIndex := getRunIndex(ctx)
|
runIndex := getRunIndex(ctx)
|
||||||
jobIndex := ctx.PathParamInt64("job")
|
jobIndex := ctx.PathParamInt64("job")
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import (
|
|||||||
"code.gitea.io/gitea/models/db"
|
"code.gitea.io/gitea/models/db"
|
||||||
"code.gitea.io/gitea/modules/container"
|
"code.gitea.io/gitea/modules/container"
|
||||||
"code.gitea.io/gitea/modules/util"
|
"code.gitea.io/gitea/modules/util"
|
||||||
|
|
||||||
"xorm.io/builder"
|
"xorm.io/builder"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -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())).
|
req = NewRequest(t, "POST", fmt.Sprintf("/api/v1/repos/%s/actions/runs/999999/rerun", repo.FullName())).
|
||||||
AddTokenAuth(token)
|
AddTokenAuth(token)
|
||||||
MakeRequest(t, req, http.StatusNotFound)
|
MakeRequest(t, req, http.StatusNotFound)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAPIActionsRerunWorkflowRunPermissions(t *testing.T) {
|
func TestAPIActionsRerunWorkflowRunPermissions(t *testing.T) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user