Skip to content

Commit 82f1d5b

Browse files
authored
Update gitapi.js
1 parent 0216f3a commit 82f1d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/gitapi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ let git = {
217217
},
218218

219219
// create a repository
220-
'createRepo': async (repoName) => {
220+
'createRepo': async (repoName, private) => {
221221

222222
const query = 'https://api.github.com/user/repos';
223223

224224
const repoData = {
225225
name: repoName,
226-
private: true,
226+
private: private,
227227
has_wiki: false,
228228
auto_init: true
229229
};

0 commit comments

Comments
 (0)