Sync an organization's GitHub repo list and permissions to a Notion DB
git clone https://github.com/temporalio/github-repo-notion-sync.git
cd github-repo-notion-sync
npm i
temporal server start-dev
NOTION_TOKEN="foo" GITHUB_TOKEN="bar" npm start
If you need to check how many calls to the GitHub API you have left, run:
GITHUB_TOKEN="bar" USER="github_username" npm run check-rate-limit
- Get a Cloud account
- Deploy this repo somewhere that supports long-running Node processes, like a background worker on Render.
- Set these env vars:
NOTION_TOKEN="<notion integration token>"
GITHUB_TOKEN="<personal access token with org read permissions>"
NODE_ENV="production"
TEMPORAL_SERVER="loren.a2dd6.tmprl.cloud:7233"
NAMESPACE="loren.a2dd6"
TEMPORAL_CLOUD_CERT="-----BEGIN CERTIFICATE----- EUsd..."
TEMPORAL_CLOUD_KEY="-----BEGIN PRIVATE KEY----- LQaz..."