1
0
mirror of https://github.com/spacebarchat/spacebarchat.git synced 2024-11-09 20:22:45 +01:00

added main class and config draft [notion-github-sync]

This commit is contained in:
xnacly 2021-08-03 20:40:42 +02:00
parent ff035842d8
commit 921b3cf626
4 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,12 @@
const fetch = require("node-fetch")
class GithubNotionSync{
constructor(config, github_org){
this.github_auth = config.github_auth;
this.notion_auth = config.notion_auth;
this.org = github_org
}
async getAllIssues (){
}
}

View File

@ -0,0 +1,4 @@
{
"github_auth":"",
"notion_auth":""
}

30
scripts/notion/package-lock.json generated Normal file
View File

@ -0,0 +1,30 @@
{
"name": "notion",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"node-fetch": "^2.6.1"
}
},
"node_modules/node-fetch": {
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==",
"engines": {
"node": "4.x || >=6.0.0"
}
}
},
"dependencies": {
"node-fetch": {
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
}
}
}

View File

@ -0,0 +1,14 @@
{
"name": "notion",
"version": "1.0.0",
"description": "",
"main": "GithubNotionSync.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"node-fetch": "^2.6.1"
}
}