56 lines
2.4 KiB
JavaScript
56 lines
2.4 KiB
JavaScript
module.exports = {
|
|
gitToken: "96ead73c54cbbf023a73ee57af145b205d460851",
|
|
intentSlugToOperations: {
|
|
'createrepo' : {
|
|
"requestMethod": 'post',
|
|
"intentMessage": "Create a Repository in Github",
|
|
"getDataOperation": "getCreateRepoJson",
|
|
"githubOperation": "createRepository",
|
|
"showWidgetOperation": "showCreateRepoWidget",
|
|
"populateDataOperation": "populateCreateRepoData",
|
|
"successMessage": "Repository Added!",
|
|
"cardMsg": "Requested Repository has been added and is available at ",
|
|
"cardDataUrl": "html_url",
|
|
"cardDataName": "name"
|
|
},
|
|
'createissue' : {
|
|
"requestMethod": 'post',
|
|
"intentMessage": "Raise an issue in Github",
|
|
"getDataOperation": "getCreateIssueJson",
|
|
"githubOperation": "createIssue",
|
|
"showWidgetOperation": "showCreateIssueWidget",
|
|
"populateDataOperation": "populateCreateIssueData",
|
|
"successMessage": "Issue Created!",
|
|
"cardMsg": "Issue Created as requested, issue details available at ",
|
|
"cardDataUrl": "html_url",
|
|
"cardDataName": "title"
|
|
},
|
|
'addcollab' : {
|
|
"Method": 'post',
|
|
"intentMessage": "Add a collaborator",
|
|
"getDataOperation": "getAddCollaboratorJson",
|
|
"githubOperation": "addCollaborator",
|
|
"showWidgetOperation": "showAddCollaboratorWidget",
|
|
"populateDataOperation": "populateAddCollaboratorData",
|
|
"successMessage": "Collaborator Added!",
|
|
"cardMsg": "Collaborator added, details available at ",
|
|
"cardDataUrl": "html_url",
|
|
"cardDataName": "invitee,login"
|
|
},
|
|
'viewrepos': {
|
|
"requestMethod": 'get',
|
|
"intentMessage": "View Repositories for current user",
|
|
"getDataOperation": "getViewRepositoryJson",
|
|
"githubOperation": "viewRepositories",
|
|
"showWidgetOperation": "showViewRepoWidget",
|
|
"populateDataOperation": "populateViewRepoData",
|
|
"successMessage": "Showing repositories",
|
|
"cardMsg": "Repository Details available below: ",
|
|
"cardDataUrl": "html_url",
|
|
"cardDataName": "invitee,login"
|
|
}
|
|
},
|
|
costants: {
|
|
"hiddenIntentFieldId": "intentHidden",
|
|
}
|
|
} |