File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import createPullRequest from "./lib/create-pull-request.js";
1919import createReadme from "./lib/create-readme.js" ;
2020import createReleaseAction from "./lib/create-release-action.js" ;
2121import createTestAction from "./lib/create-test-action.js" ;
22+ import createRenovateConfig from "./lib/create-renovate-config.js" ;
2223import createRepository from "./lib/create-repository.js" ;
2324import createScript from "./lib/create-script.js" ;
2425import prompts from "./lib/prompts.js" ;
@@ -245,6 +246,12 @@ run(script);
245246 await command ( `git add .github/workflows/test.yml` ) ;
246247 await command ( `git commit -m 'ci(test): initial version'` ) ;
247248
249+ if ( owner === "octoherd" ) {
250+ await createRenovateConfig ( ) ;
251+ await command ( `git add .github/renovate.json` ) ;
252+ await command ( `git commit -m 'build(renovate): create renovate setup'` ) ;
253+ }
254+
248255 await command ( `git push` ) ;
249256
250257 console . log ( `Your new repository is here:
Original file line number Diff line number Diff line change 1+ import writePrettyFile from "./write-pretty-file.js" ;
2+ import getTemplateFileContent from "./get-template-file-content.js" ;
3+
4+ export default async function createRenovateConfig ( ) {
5+ const renovateFileName = "renovate.json" ;
6+ let fileContent = getTemplateFileContent ( renovateFileName ) ;
7+
8+ await writePrettyFile ( `.github/${ renovateFileName } ` , fileContent ) ;
9+ }
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : [" github>octoherd/.github" ]
3+ }
You can’t perform that action at this time.
0 commit comments