{"id":21585298,"url":"https://github.com/alessandrobelli/notionhook","last_synced_at":"2025-04-10T20:05:57.302Z","repository":{"id":57201548,"uuid":"389314070","full_name":"alessandrobelli/NotionHook","owner":"alessandrobelli","description":"Sync your GitHub commits into a Notion Database","archived":false,"fork":false,"pushed_at":"2022-06-29T11:16:58.000Z","size":1959,"stargazers_count":40,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T05:36:31.334Z","etag":null,"topics":["github-actions","notion"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alessandrobelli.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-25T09:55:10.000Z","updated_at":"2024-11-21T10:20:18.000Z","dependencies_parsed_at":"2023-01-11T17:23:20.780Z","dependency_job_id":null,"html_url":"https://github.com/alessandrobelli/NotionHook","commit_stats":{"total_commits":175,"total_committers":1,"mean_commits":175.0,"dds":0.0,"last_synced_commit":"c6e6f3daca8e0a97144ff7b850b5ea1d133800be"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandrobelli%2FNotionHook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandrobelli%2FNotionHook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandrobelli%2FNotionHook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessandrobelli%2FNotionHook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alessandrobelli","download_url":"https://codeload.github.com/alessandrobelli/NotionHook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248288291,"owners_count":21078891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","notion"],"created_at":"2024-11-24T15:09:50.080Z","updated_at":"2025-04-10T20:05:57.276Z","avatar_url":"https://github.com/alessandrobelli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notion Hook\r\n\r\nThis action syncronize your Repository commits into a Notion Database.\r\n\r\n📽️ Video Explanation: https://youtu.be/hARJlFH5MDE\r\n\r\n## Setup\r\n\r\n1. Create a new private Notion integration here: https://www.notion.so/my-integrations.\r\n2. Copy the \"Internal Integration Token\" and create a new Repository secret called `NOTION_SECRET`.\r\n3. [You need to create a new Notion Database that looks like this, or just duplicate this](https://alessandrobelli.notion.site/618655fb8e924216a5bc8b85cfd12274?v=eda6bbef2108493c9f1c0f9772a58549).\r\n4. Click on Share -\u003e Add people, emails, groups or integrations and select your Integration.\r\n5. Navigate to your Notion database in a browser and get the Database Id.\r\n![Database ID example](https://user-images.githubusercontent.com/3796324/126894870-e81d2831-9ac2-404a-bc07-a2d9d4014a39.png)\r\n6. Create a new secret called `NOTION_DATABASE` with the database ID.\r\n7. if you want a list of files, [create a github personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).\r\n   1. then setup a files-format. the only avaliable value for now is \"text-list\".\r\n\r\n## Inputs\r\n\r\nEvery input has its own default value. Check if they correspond to yours in the database.\r\n\r\n### `commit_description`\r\n**text**\r\n\r\nName of the Database column for the description field: this is the commit message after a `\\n` or `\\r`.\r\n\r\n\r\n### `commit_url`\r\n**url**\r\n\r\nName of the Database column for the commit url.\r\n\r\n\r\n### `commit_id`\r\n**Text**\r\n\r\nName of the Database column for the commit ID.\r\n\r\n\r\n### `commit_project`\r\n**Multiselect**\r\n\r\nName of the Database column for the project. \r\n\r\n### `files_format`\r\n\r\nFor now, the only possible value text-list.\r\n\r\n### `token`\r\n[Create a github personal access token for GitHub](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)\r\n\r\n## Example usage\r\n\r\n```\r\non: [push]\r\n\r\njobs:\r\n  Notion_Hook_job:\r\n    runs-on: ubuntu-latest\r\n    name: A job to connect to Notion\r\n    steps:\r\n      - name: Connect to Notion step\r\n        id: notion\r\n        uses: alessandrobelli/NotionHook@1.0\r\n        with:\r\n          notion_secret: ${{ secrets.NOTION_SECRET }}\r\n          notion_database: ${{ secrets.NOTION_DATABASE }}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessandrobelli%2Fnotionhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falessandrobelli%2Fnotionhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessandrobelli%2Fnotionhook/lists"}