Skip to content

Sync your GitHub commits into a Notion Database

License

Notifications You must be signed in to change notification settings

JackBlaze132/NotionHook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notion Hook

This action syncronize your Repository 4commits into a Notion Database.

Setup

  1. Create a new private Notion integration here: https://www.notion.so/my-integrations.
  2. Copy the "Internal Integration Token" and create a new Repository secret called NOTION_SECRET.
  3. You need to create a new Notion Database that looks like this, or just duplicate this.
  4. Click on Share -> Add people, emails, groups or integrations and select your Integration.
  5. Navigate to your Notion database in a browser and get the Database Id. Database ID example
  6. Create a new secret called NOTION_DATABASE with the database ID.

Inputs

commit_description

text

Name of the Database column for the description field: this is the commit message after a \n or \r.

commit_url

url

Name of the Database column for the commit url.

commit_id

Text

Name of the Database column for the commit ID.

commit_project

Multiselect

Name of the Database column for the project.

Example usage

on: [push]

jobs:
  Notion_Hook_job:
    runs-on: ubuntu-latest
    name: A job to connect to Notion
    steps:
      - name: Connect to Notion step
        id: notion
        uses: alessandrobelli/[email protected]
        with:
          notion_secret: ${{ secrets.NOTION_SECRET }}
          notion_database: ${{ secrets.NOTION_DATABASE }}

About

Sync your GitHub commits into a Notion Database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%