GithubHelp home page GithubHelp logo

julionectar / notionhook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alessandrobelli/notionhook

0.0 0.0 0.0 1.91 MB

Sync your GitHub commits into a Notion Database

License: MIT License

JavaScript 100.00%

notionhook's Introduction

Notion Hook

This action syncronize your Repository commits into a Notion Database.

๐Ÿ“ฝ๏ธ Video Explanation: https://youtu.be/hARJlFH5MDE

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.
  7. if you want a list of files, create a github personal access token.
    1. then setup a files-format. the only avaliable value for now is "text-list".

Inputs

Every input has its own default value. Check if they correspond to yours in the database.

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.

files_format

For now, the only possible value text-list.

token

Create a github personal access token for GitHub

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

notionhook's People

Contributors

alessandrobelli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.