A GitHub Action that syncs new GitHub issues to a Notion database 🤖
Connect your GitHub issues to a Notion database.
Like this GitHub Action? Give us a ⭐️ and follow us on Twitter for more drops 🪂.
Settings
> Secrets
, and add a New repository secret
. Set the Name
to NOTION_TOKEN
and the Value
to the Internal Integration Token you created in the previous step.Share
menu, add the Notion integration you created as a member with the Can edit
privilege. You may have to type your integration's name in the Invite
field.
https://www.notion.so/abc?v=123
where abc
is the database id.
Add the Database's ID as a repository secret for your GitHub repository. Set the Name
to NOTION_DATABASE
and the Value
to the id of your Database.
In your GitHub repository, create a GitHub workflow file at the path .github/workflows/issues-notion-sync.yml
.
name: Notion Sync
on:
workflow_dispatch:
issues:
types:
[
opened,
edited,
labeled,
unlabeled,
assigned,
unassigned,
milestoned,
demilestoned,
reopened,
closed,
]
jobs:
notion_job:
runs-on: ubuntu-latest
name: Add GitHub Issues to Notion
steps:
- name: Add GitHub Issues to Notion
uses: tryfabric/notion-github-action@v1
with:
notion-token: ${{ secrets.NOTION_TOKEN }}
notion-db: ${{ secrets.NOTION_DATABASE }}
GITHUB_TOKEN
has read and write permissions then follow these intructions to run the Notion Job
workflow.Note: The manual workflow will only work on Notion Databases created from the templated linked above.
release-it
master
(make sure it's up to date), execute GITHUB_TOKEN=<TOKEN> release-it
. (Alternatively, set GITHUB_TOKEN
as a system environment variable)Yes
for all options.patch
when the release is only bug fixes. For new features, choose minor
. For major changes, choose major
.Release-It will then automatically generate a GitHub release with the changelog inside.
Built with 💙 by the team behind Fabric.