@@ -136,7 +136,7 @@ func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir,
136
136
}
137
137
138
138
// README
139
- data , err := options .GetRepoInitFile ( "readme" , opts .Readme )
139
+ data , err := options .Readme ( opts .Readme )
140
140
if err != nil {
141
141
return fmt .Errorf ("GetRepoInitFile[%s]: %w" , opts .Readme , err )
142
142
}
@@ -164,7 +164,7 @@ func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir,
164
164
var buf bytes.Buffer
165
165
names := strings .Split (opts .Gitignores , "," )
166
166
for _ , name := range names {
167
- data , err = options .GetRepoInitFile ( "gitignore" , name )
167
+ data , err = options .Gitignore ( name )
168
168
if err != nil {
169
169
return fmt .Errorf ("GetRepoInitFile[%s]: %w" , name , err )
170
170
}
@@ -182,7 +182,7 @@ func prepareRepoCommit(ctx context.Context, repo *repo_model.Repository, tmpDir,
182
182
183
183
// LICENSE
184
184
if len (opts .License ) > 0 {
185
- data , err = options .GetRepoInitFile ( "license" , opts .License )
185
+ data , err = options .License ( opts .License )
186
186
if err != nil {
187
187
return fmt .Errorf ("GetRepoInitFile[%s]: %w" , opts .License , err )
188
188
}
0 commit comments