Johann01 / notion-pr-link

Update Notion task with GitHub PR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typescript-action status

Update your Notion task with GitHub PR url

Paste your notion task url to your GitHub Pull Request body, and this action will automatically update your Notion task's property with the PR url.

Inputs

input description required default
notion_secret Notion Secret API Key true none
notion_prop Notion page property to update true PR

Configure

  1. Generate Notion secret
  2. Share your Notion Database (or Page) with the integration
  3. Navigate to your Notion board, click on your task and add a new URL property. (Example property name: PR)

    Notion Add a property

  4. Add these 2 values to this GitHub action

Usage

name: Add PR to Notion
on:
  pull_request:
    types: [opened]
jobs:
  notion:
    runs-on: ubuntu-latest
    steps:
      - name: Update notion page
        uses: kadaradam/notion-pr-link@latest
        with:
          notion_secret: secret_1234567890abcdef1234
          notion_prop: PR

About

Update Notion task with GitHub PR

License:MIT License


Languages

Language:TypeScript 96.4%Language:JavaScript 3.6%