Github integration

This commit is contained in:
2018-07-17 00:34:42 +05:30
parent d6934656d2
commit a5996f1f2d
16 changed files with 17396 additions and 17 deletions

27
src/js/microbot-ops.js Normal file
View File

@@ -0,0 +1,27 @@
const Github = require('./github-ops.js');
const $github = new Github()
module.exports = class Microbot {
constructor(clientId, clientSecret) {
// TODO move to config or env variables
this.clientId = 'f6f649a1fe2dfea082ba';
this.clientSecret = '7e9a33d05ffdb36b4a498140bb9bb06d62de4f0e';
}
createRepository(repoName, repoType) {
$github.createRepository({
"name": "first-js-git-api-repo",
"description": "This is your first repository",
"homepage": "https://github.com",
"private": false,
"has_issues": true,
"has_wiki": true
})
}
// testingWebpackcalls() {
// console.log('call successful');
// }
}