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

61
src/js/github-ops.js Normal file
View File

@@ -0,0 +1,61 @@
module.exports = class Github {
getToken() {
}
createRepository(newRepoJson) {
$.ajax({
type: "POST",
headers: {'Authorization' : 'token bcce9020b0604acc8a535d6d0e026b04b4996432'},
url: "https://api.github.com/user/repos",
contentType: "application/json",
dataType: "jsonp",
data: newRepoJson
})
}
updateRepository(updateRepoJson) {
}
deleteRepositoy(repoId) {
}
createIssue(newIssueJson) {
}
updateIssue(updateIssueJson) {
}
deleteIssue(issueId) {
}
closeIssue(issueId) {
}
createUser(newuserJson) {
}
updateUser(updateUserJson) {
}
deleteUser(userId) {
}
addCollaborator(userId, collaboratorId) {
}
removeCollaborator(userId, collaboratorId) {
}
}