mirror of https://github.com/go-gitea/gitea.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
574 B
24 lines
574 B
// Copyright 2022 The Gitea Authors. All rights reserved. |
|
// SPDX-License-Identifier: MIT |
|
|
|
package forms |
|
|
|
import ( |
|
"net/http" |
|
|
|
"code.gitea.io/gitea/modules/web/middleware" |
|
"code.gitea.io/gitea/services/context" |
|
|
|
"gitea.com/go-chi/binding" |
|
) |
|
|
|
// EditRunnerForm form for admin to create runner |
|
type EditRunnerForm struct { |
|
Description string |
|
} |
|
|
|
// Validate validates form fields |
|
func (f *EditRunnerForm) Validate(req *http.Request, errs binding.Errors) binding.Errors { |
|
ctx := context.GetValidateContext(req) |
|
return middleware.Validate(errs, ctx.Data, f, ctx.Locale) |
|
}
|
|
|