Github integration
This commit is contained in:
27
src/js/microbot-ops.js
Normal file
27
src/js/microbot-ops.js
Normal 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');
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user