mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
init with all enabled
This commit is contained in:
parent
1ee7c33e93
commit
e82ee40e9e
1 changed files with 9 additions and 6 deletions
|
@ -823,12 +823,15 @@ func createRepository(e *xorm.Session, u *User, repo *Repository) (err error) {
|
|||
// CreateRepository creates a repository for given user or organization.
|
||||
func CreateRepository(u *User, opts CreateRepoOptions) (_ *Repository, err error) {
|
||||
repo := &Repository{
|
||||
OwnerID: u.Id,
|
||||
Owner: u,
|
||||
Name: opts.Name,
|
||||
LowerName: strings.ToLower(opts.Name),
|
||||
Description: opts.Description,
|
||||
IsPrivate: opts.IsPrivate,
|
||||
OwnerID: u.Id,
|
||||
Owner: u,
|
||||
Name: opts.Name,
|
||||
LowerName: strings.ToLower(opts.Name),
|
||||
Description: opts.Description,
|
||||
IsPrivate: opts.IsPrivate,
|
||||
EnableWiki: true,
|
||||
EnableIssues: true,
|
||||
EnablePulls: true,
|
||||
}
|
||||
|
||||
sess := x.NewSession()
|
||||
|
|
Loading…
Reference in a new issue