Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

Sync GitHub Issues to Notion

v0.1 Pre-release

Sync GitHub Issues to Notion

activity

Sync GitHub Issues to Notion

A simple tool to sync GitHub issues to Notion beautifully

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sync GitHub Issues to Notion

uses: Edit-Mr/[email protected]

Learn more about this action in Edit-Mr/GitHub-issue-2-Notion

Choose a version

GitHub-issue-2-Notion

A simple tool to sync GitHub issues to Notion beautifully
一個簡單的工具,將 GitHub 的 issue 優雅的同步到 Notion screenshot

Usage

  1. Create a new integration in Notion and get the token
  2. Copy database ID from the URL of the database
    • For example: https://www.notion.so/myworkspace/Database-1234567890abcdef1234567890abcdef
    • 1234567890abcdef1234567890abcdef is the database ID
  3. Set three GitHub secrets in the repository settings
    • NOTION_API_KEY: The token of the Notion integration
    • NOTION_DATABASE_ID: The ID of the Notion database
    • GITHUB_REPO: The owner and name of the GitHub repository
      • For example: SCAICT/SCAICT_uwu
  4. Create a workflow file in the repository
    • For example: .github/workflows/sync.yml
    • The content of the file should be like this:
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