repacked bundle

This commit is contained in:
2018-07-22 13:36:43 +05:30
parent d09a5e6b95
commit ac9391f9f9
11 changed files with 685 additions and 890 deletions

View File

@@ -13,8 +13,9 @@ module.exports = class Microbot {
return $github.viewRepositories();
}
createRepository(requestJson) {
var promise = $github.createRepository(requestJson);
createRepository(requestData) {
var requestJson = requestData.request;
$github.createRepository(requestJson);
// $github.createRepository({
// "name": "new-test-js-git-api-repo",
// "description": "This is your first repository",
@@ -42,17 +43,10 @@ module.exports = class Microbot {
$github.deleteRepository();
}
createIssue() {
$github.createIssue({
"title": "Found a bug",
"body": "I'm having a problem with this.",
"assignees": [
"mohiit1502"
],
"labels": [
"bug"
]
})
createIssue(requestData) {
var requestJson = requestData.request;
var repoName = requestData.urlParams.repoName;
$github.createIssue(requestJson, repoName);
}
updateIssue() {
@@ -98,20 +92,17 @@ module.exports = class Microbot {
return $github.displayLastComment();
}
addCollaborator() {
$github.addCollaborator({
"title": "Found a bug",
"body": "I'm having a problem with this.",
"assignees": [
"mohiit1502"
],
"labels": [
"bug"
]
});
addCollaborator(requestData) {
var repoName = requestData.urlParams.repoName;
var collaborator = requestData.urlParams.collaborator;
$github.addCollaborator(repoName, collaborator);
}
removeCollaborator() {
$github.removeCollaborator();
}
callAppropriate(intent) {
}
}