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:
parent
11db459f33
commit
a18a42b074
@ -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"`
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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"
|
||||
)
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user