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