diff --git a/scripts/notion/GithubNotionSync.js b/scripts/notion/GithubNotionSync.js new file mode 100644 index 0000000..43cdc97 --- /dev/null +++ b/scripts/notion/GithubNotionSync.js @@ -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 (){ + + } +} diff --git a/scripts/notion/config.json b/scripts/notion/config.json new file mode 100644 index 0000000..856c5be --- /dev/null +++ b/scripts/notion/config.json @@ -0,0 +1,4 @@ +{ + "github_auth":"", + "notion_auth":"" +} diff --git a/scripts/notion/package-lock.json b/scripts/notion/package-lock.json new file mode 100644 index 0000000..18dec95 --- /dev/null +++ b/scripts/notion/package-lock.json @@ -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==" + } + } +} diff --git a/scripts/notion/package.json b/scripts/notion/package.json new file mode 100644 index 0000000..e4ef730 --- /dev/null +++ b/scripts/notion/package.json @@ -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" + } +}