This project exports GitHub issues and pull requests data to Notion.
- Docker and Docker Compose installed on your machine.
- Visual Studio Code with the Remote - Containers extension installed.
- Create a new Notion integration at https://www.notion.com/my-integrations.
- Copy the integration's
Internal Integration Token
and save it for later. - Create a new Notion database at https://www.notion.so/help/guides/creating-a-database
- Add Notion API token and database ID to
.env
file like below.
OWNER=xxx
REPO=xxx
GITHUB_TOKEN=xxx
NOTION_TOKEN=xxx
NOTION_DATABASE_ID=xxx
- Clone this repository.
- Open the repository in Visual Studio Code.
- When prompted to "Reopen in Container", click "Reopen in Container". This will start the Docker container and set up your development environment.
- If you don't see the prompt, press
F1
to open the command palette, and then select "Remote-Containers: Reopen in Container".
- If you don't see the prompt, press
- Once the container is running, you can start working with the project.
src/
: This is where your TypeScript (.ts) source files live. This directory could be organized further depending on the project's requirements.dist/
: This is where the compiled JavaScript will be output to by the TypeScript compiler.node_modules/
: This directory is where pnpm stores installed packages..devcontainer/
: This directory contains configuration files for the Visual Studio Code Remote - Containers extension.package.json
andpnpm-lock.yaml
: These files are used by pnpm to track your project's dependencies.tsconfig.json
: This file is used by TypeScript to control the behavior of the TypeScript compiler.
- Open the repository in Visual Studio Code.
- When prompted to "Reopen in Container", click "Reopen in Container". This will start the Docker container and set up your development environment.
- If you don't see the prompt, press
F1
to open the command palette, and then select "Remote-Containers: Reopen in Container".
- If you don't see the prompt, press
pnpm install
pnpm run build
pnpm run start