Skip to content

Commit 722e6f2

Browse files
committed
Make created repo private by default
1 parent e50c12c commit 722e6f2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ What is the name of the new repo
8484

8585
#### github.recreateRepo
8686

87-
If true (default is false), we will try to delete the destination github repository if present, and (re)create it. The github token must be granted `delete_repo` scope.
87+
If true (default is false), we will try to delete the destination github repository if present, and (re)create it. The github token must be granted `delete_repo` scope. The newly created repository will be made private by default.
8888

8989
This is useful when debugging this tool or a specific migration. You will always be prompted for confirmation.
9090

src/githubHelper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,7 @@ export class GithubHelper {
12821282
console.log(`Creating repo ${params.owner}/${params.repo}...`);
12831283
await this.githubApi.repos.createForAuthenticatedUser({
12841284
name: this.githubRepo,
1285+
private: true,
12851286
});
12861287
console.log('\t...done.');
12871288
} catch (err) {

0 commit comments

Comments
 (0)