mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Support copy protected branch from template repository (#25889)
Fix #14303
This commit is contained in:
		@@ -238,6 +238,8 @@ type GenerateRepoOption struct {
 | 
			
		||||
	Avatar bool `json:"avatar"`
 | 
			
		||||
	// include labels in template repo
 | 
			
		||||
	Labels bool `json:"labels"`
 | 
			
		||||
	// include protected branches in template repo
 | 
			
		||||
	ProtectedBranch bool `json:"protected_branch"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// CreateBranchRepoOption options when creating a branch in a repository
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user