File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ const createReadme = require("./lib/create-readme");
18
18
const createReleaseAction = require ( "./lib/create-release-action" ) ;
19
19
const createUpdatePrettierAction = require ( "./lib/create-update-prettier-action" ) ;
20
20
const createTestAction = require ( "./lib/create-test-action" ) ;
21
+ const createRenovateConfig = require ( "./lib/create-renovate-config" ) ;
21
22
const createRepository = require ( "./lib/create-repository" ) ;
22
23
const inviteCollaborators = require ( "./lib/invite-collaborators" ) ;
23
24
const prompts = require ( "./lib/prompts" ) ;
@@ -460,6 +461,13 @@ module.exportst = async function main() {
460
461
await command ( `git add .github/workflows/update-prettier.yml` ) ;
461
462
await command ( `git commit -m 'ci(update-prettier): initial version'` ) ;
462
463
464
+ if ( owner === "octokit" ) {
465
+ console . log ( "Create Renovate configuration" ) ;
466
+ await createRenovateConfig ( ) ;
467
+ await command ( `git add .github/renovate.json` ) ;
468
+ await command ( `git commit -m 'ci(renovate): add Renovate configuration'` ) ;
469
+ }
470
+
463
471
await command ( `git push` ) ;
464
472
465
473
console . log ( `Your new repository is here:
Original file line number Diff line number Diff line change
1
+ module . exports = createRenovateConfig ;
2
+
3
+ const writePrettyFile = require ( "./write-pretty-file" ) ;
4
+
5
+ const config = {
6
+ extends : [ "github>octokit/.github" ] ,
7
+ } ;
8
+
9
+ async function createRenovateConfig ( ) {
10
+ await writePrettyFile ( ".github/renovate.json" , JSON . stringify ( config ) ) ;
11
+ }
You can’t perform that action at this time.
0 commit comments