mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	init with all enabled
This commit is contained in:
		@@ -823,12 +823,15 @@ func createRepository(e *xorm.Session, u *User, repo *Repository) (err error) {
 | 
				
			|||||||
// CreateRepository creates a repository for given user or organization.
 | 
					// CreateRepository creates a repository for given user or organization.
 | 
				
			||||||
func CreateRepository(u *User, opts CreateRepoOptions) (_ *Repository, err error) {
 | 
					func CreateRepository(u *User, opts CreateRepoOptions) (_ *Repository, err error) {
 | 
				
			||||||
	repo := &Repository{
 | 
						repo := &Repository{
 | 
				
			||||||
		OwnerID:     u.Id,
 | 
							OwnerID:      u.Id,
 | 
				
			||||||
		Owner:       u,
 | 
							Owner:        u,
 | 
				
			||||||
		Name:        opts.Name,
 | 
							Name:         opts.Name,
 | 
				
			||||||
		LowerName:   strings.ToLower(opts.Name),
 | 
							LowerName:    strings.ToLower(opts.Name),
 | 
				
			||||||
		Description: opts.Description,
 | 
							Description:  opts.Description,
 | 
				
			||||||
		IsPrivate:   opts.IsPrivate,
 | 
							IsPrivate:    opts.IsPrivate,
 | 
				
			||||||
 | 
							EnableWiki:   true,
 | 
				
			||||||
 | 
							EnableIssues: true,
 | 
				
			||||||
 | 
							EnablePulls:  true,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sess := x.NewSession()
 | 
						sess := x.NewSession()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user