Skip to content

A lightweight Action to sync GitHub issues to Notion beautifully

License

Notifications You must be signed in to change notification settings

Edit-Mr/GitHub-issue-2-Notion

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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 }}

About

A lightweight Action to sync GitHub issues to Notion beautifully

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published