Skip to content
activity

GitHub Action

Sync GitHub Issues to Notion

v1.0 Latest version

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

Features

  • Sync issue to Notion
  • Sync State to Notion
  • Sync labels to Notion
  • Sync URL to Notion
  • Sync content to Notion with full markdown support
  • Won't repeat recreating the same issue
  • Update status if exists

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
  4. Create a workflow file in the repository
    • Copy and paste the full code below into your .yml file:
name: Sync issues to Notion

on:
  issues:
    types: [opened, edited, deleted, closed, reopened]
  workflow_dispatch:
jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - name: Notion GitHub Issues Automation
        uses: Edit-Mr/GitHub-issue-2-Notion@main
        with:
            repo: ${{ github.repository }}
            NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
            NOTION_DATABASE: ${{ secrets.NOTION_DATABASE_ID }}