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
- Generate Notion secret
- Share your Notion Database (or Page) with the integration
- Navigate to your Notion board, click on your task and add a new URL property. (Example property name:
PR
) - 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