{"id":28690608,"url":"https://github.com/thunderbird/notion-scripts","last_synced_at":"2025-06-14T06:05:40.759Z","repository":{"id":251661510,"uuid":"816963994","full_name":"thunderbird/notion-scripts","owner":"thunderbird","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-28T18:27:25.000Z","size":40,"stargazers_count":1,"open_issues_count":8,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-28T19:31:29.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thunderbird.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-18T18:30:23.000Z","updated_at":"2025-04-28T18:27:29.000Z","dependencies_parsed_at":"2024-08-04T22:18:57.276Z","dependency_job_id":"7cb15b86-4822-4557-a812-00ff001dfe71","html_url":"https://github.com/thunderbird/notion-scripts","commit_stats":null,"previous_names":["thunderbird/notion-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thunderbird/notion-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fnotion-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fnotion-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fnotion-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fnotion-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thunderbird","download_url":"https://codeload.github.com/thunderbird/notion-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderbird%2Fnotion-scripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768604,"owners_count":22908229,"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":[],"created_at":"2025-06-14T06:05:39.985Z","updated_at":"2025-06-14T06:05:40.748Z","avatar_url":"https://github.com/thunderbird.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# notion-scripts\n\n## How to set up a syncing database:\n\n1. Create a new database in Notion, and set the Status property. This is manual because the API doesn't support adding or modifying the Status property on a database.\n2. Attach the `MZLA Integrations` app under `Connections` in the ... menu, otherwise the script won't be able to access the database.\n3. Get the database id from the URL. It's the string after `/mzthunderbird/` not including the query params.\n4. Create a new file similar to the existing `bz_notion_sync.py` and write the API integration logic.\n\nCurrently, a Bugzilla API key, GitHub API key, and the Notion integration secret for MZLA Integrations are required to run this script.\n\n## Overview\n\n`libs/notion_data.py` contains classes and utilities for adding and updating Notion database pages and properties.\n\nThis contains two main classes:\n\n* `NotionDatabase`: Defines a Notion database, along wih its properties and a remotely tied Notion client used for CRUD operations.\n* `NotionProperty`: Defines a generic Notion property, including functions to return the right data for updating content and the property itself.\n\n### Bugzilla Sync\n* `libs/bzhelper.py` contains helper functions and utilities for connecting to Bugzilla and syncing Bugzilla -\u003e Notion.\n* `bzsettings.py` contains Notion database properties and bugzilla fields that are used by sync process.\n* `bz_notion_sync.py` is used to run the sync code.\n\n### GitHub Issues Sync\n* `libs/ghhelper.py` contains helper functions and utilities for connecting to GitHub and syncing to Notion.\n* `ghsettings.py` contains the repo list, db properties and other basic settings.\n* `gh_notion_sync.py` is used to run the sync code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunderbird%2Fnotion-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunderbird%2Fnotion-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunderbird%2Fnotion-scripts/lists"}