You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Sync GitHub Issues to Notion
v0.1
Pre-release
A simple tool to sync GitHub issues to Notion beautifully
一個簡單的工具,將 GitHub 的 issue 優雅的同步到 Notion
- Create a new integration in Notion and get the token
- Copy database ID from the URL of the database
- For example:
https://www.notion.so/myworkspace/Database-1234567890abcdef1234567890abcdef
1234567890abcdef1234567890abcdef
is the database ID
- For example:
- Set three GitHub secrets in the repository settings
NOTION_API_KEY
: The token of the Notion integrationNOTION_DATABASE_ID
: The ID of the Notion databaseGITHUB_REPO
: The owner and name of the GitHub repository- For example:
SCAICT/SCAICT_uwu
- For example:
- Create a workflow file in the repository
- For example:
.github/workflows/sync.yml
- The content of the file should be like this:
- For example:
name: Sync issues to Notion
on:
issues:
types: [opened, edited, deleted, reopened, closed]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: create env file
run: |
touch .env
echo GITHUB_REPO_OWNER=${{ github.repository_owner }} >> .env
echo GITHUB_REPO_NAME=${{ github.repository }} >> .env
echo NOTION_API_KEY=${{ secrets.NOTION_API_KEY }} >> .env
echo NOTION_DATABASE_ID=${{ secrets.NOTION_DATABASE_ID}} >> .env
- uses: Edit-Mr/GitHub-issue-2-Notion@main