// GenerateTemplateRepoRequest overrides the parameters in github.TemplateRepoRequest
// that are defined in RepositoryParameters.
GenerateTemplateRepoRequest overrides the parameters in github.TemplateRepoRequest
that are defined in RepositoryParameters.
// GenerateTemplateRepoRequest overrides the parameters in github . TemplateRepoRequest // that are defined in RepositoryParameters .
func GenerateTemplateRepoRequest(rp v1alpha1.RepositoryParameters, name string) github.TemplateRepoRequest {
	r := github.TemplateRepoRequest{}
	r.Name = &name
	if len(rp.Owner) != 0 {
		r.Owner = ghclient.StringPtr(rp.Owner)
	}
	if rp.Description != nil {
		r.Description = rp.Description
	}
	if rp.Private != nil {
		r.Private = rp.Private
	}
	return r
}
func GenerateTemplateRepoRequest ( rp v1alpha1 . RepositoryParameters , name string ) github . TemplateRepoRequest { r := github . TemplateRepoRequest { } r . Name = & name if len ( rp . Owner ) != 0 { r . Owner = ghclient . StringPtr ( rp . Owner ) } if rp . Description != nil { r . Description = rp . Description } if rp . Private != nil { r . Private = rp . Private } return r }
GenerateTemplateRepoRequest overrides the parameters in github.TemplateRepoRequest
that are defined in RepositoryParameters.
GenerateTemplateRepoRequest overrides the parameters in github . TemplateRepoRequest that are defined in RepositoryParameters .