mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-17 23:00:02 +02:00
#1487 Readme Template
This commit is contained in:
parent
46bee50e45
commit
bb3b90fcd6
17 changed files with 791 additions and 634 deletions
|
@ -16,19 +16,15 @@ import (
|
|||
// |____|_ /_______ / |____| \_______ /_______ /|___| |____| \_______ /____|_ // ______|
|
||||
// \/ \/ \/ \/ \/ \/ \/
|
||||
|
||||
type RepoForm struct {
|
||||
type CreateRepoForm struct {
|
||||
Uid int64 `binding:"Required"`
|
||||
RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"`
|
||||
Private bool
|
||||
Description string `binding:"MaxSize(255)"`
|
||||
}
|
||||
|
||||
type CreateRepoForm struct {
|
||||
RepoForm
|
||||
AutoInit bool
|
||||
Gitignores string
|
||||
License string
|
||||
Readme string
|
||||
AutoInit bool
|
||||
Gitignores string
|
||||
License string
|
||||
Readme string
|
||||
}
|
||||
|
||||
func (f *CreateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
|
||||
|
@ -39,8 +35,11 @@ type MigrateRepoForm struct {
|
|||
CloneAddr string `binding:"Required"`
|
||||
AuthUsername string
|
||||
AuthPassword string
|
||||
RepoForm
|
||||
Mirror bool
|
||||
Mirror bool
|
||||
Uid int64 `binding:"Required"`
|
||||
RepoName string `binding:"Required;AlphaDashDot;MaxSize(100)"`
|
||||
Private bool
|
||||
Description string `binding:"MaxSize(255)"`
|
||||
}
|
||||
|
||||
func (f *MigrateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue