{"id":13906053,"url":"https://github.com/lcjnil/github-notion-star","last_synced_at":"2026-01-23T22:24:45.338Z","repository":{"id":42455486,"uuid":"387151905","full_name":"lcjnil/github-notion-star","owner":"lcjnil","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-12T11:23:31.000Z","size":28,"stargazers_count":130,"open_issues_count":2,"forks_count":156,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T06:08:31.804Z","etag":null,"topics":["github","github-actions","notion"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lcjnil.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-07-18T10:47:52.000Z","updated_at":"2025-07-04T09:22:44.000Z","dependencies_parsed_at":"2024-09-12T21:15:58.580Z","dependency_job_id":"c2b1841f-e4b7-4c6b-a117-ebd127aec216","html_url":"https://github.com/lcjnil/github-notion-star","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lcjnil/github-notion-star","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcjnil%2Fgithub-notion-star","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcjnil%2Fgithub-notion-star/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcjnil%2Fgithub-notion-star/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcjnil%2Fgithub-notion-star/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lcjnil","download_url":"https://codeload.github.com/lcjnil/github-notion-star/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcjnil%2Fgithub-notion-star/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28701676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","github-actions","notion"],"created_at":"2024-08-06T23:01:28.625Z","updated_at":"2026-01-23T22:24:45.313Z","avatar_url":"https://github.com/lcjnil.png","language":"TypeScript","readme":"# github-notion-star\n\n使用 Notion 和 Github Actions 同步和管理你的 Github Star.\n\n## Breaking Change\n\n从 [#4](https://github.com/lcjnil/github-notion-star/issues/4) 版本开始，增加了 `Primary Language` 和 `Repository Topics` 两个参数（by @imfycc），需要在原有 database 中增加这两个选项，否则同步会失败。\n\n## 功能\n\n- （可选）支持全量同步所有的 star 到 notion\n- （可选）支持使用 Github Actions 定时同步增量的 star 到 notion\n\n## 设置\n\n- 在 Notion 上复制这个[模板](https://lcj.notion.site/Github-Notion-Star-f07e2f086e4d4f5b9f25693814c836de)\n- Fork 当前的这个 Repo\n- 在 Repo 的设置里面，新建一个名为 notion-sync 的 Environment，需要设置以下环境变量\n    - `NOTION_API_KEY` 申请的 Notion API 的 Key，注意，你的模板需要被共享给这个 API\n    - `NOTION_DATABASE_ID` 对应的 Notion Database ID\n    - `TOKEN_OF_GITHUB` Github 的用户 token，用于获取当前用户的 API\n\n除此之外，还可以修改环境变量的形式修改当前的配置，例如：\n\n- `FULLSYNC_LIMIT` 全量同步的最大 Repo 个数，默认为 2000 个\n- `PARTIALSYNC_LIMIT` 增量同步的最大 Repo 个数，每次增量同步会从后往前取若干条数据，默认为 10 个\n- `REPO_TOPICS_LIMIT` Repo 添加的话题数量，默认取前 50 个\n\n需要在 `github/workflows/*.yml` 中，修改这个配置\n\n\u003cdetails\u003e\u003csummary\u003e如何找到 NOTION_API_KEY？\u003c/summary\u003e\n请参考：https://www.notion.so/help/create-integrations-with-the-notion-api#create-an-internal-integration\n\n创建 internal integration 之后，需要给予这个 token 访问 database 的权限  \n请参考：https://developers.notion.com/docs/create-a-notion-integration#give-your-integration-page-permissions  \n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e如何找到 NOTION DATABASE ID\u003c/summary\u003e\n请参考：https://stackoverflow.com/questions/67728038/where-to-find-database-id-for-my-database-in-notion\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e如何申请 Github API TOKEN\u003c/summary\u003e\n请参考：https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token.\n\n这里不需要勾选任何权限。\n\u003c/details\u003e\n\n## 开始同步\n\n### （可选）全量同步\n\n可以在当前的 Github Actions 里面找到 `FullSync Notion Star`，执行即可全部你之前所有的 Star 信息\n\n### （可选）增量同步\n\n1. （可选）当前默认的轮询时间是十分钟。如果你想要修改增量同步轮询的时间，需要修改 `.github/workflows/partial-sync.yml`，在 `on.schedule.cron` 里面设置你的轮询时间。\n2. 在 Github Actions 里面开启 `Partial Sync Notion Star` （对于 Fork 的 repo，会自动禁用所有轮询的 Actions，所以需要手动开启）\n","funding_links":[],"categories":["HarmonyOS","TypeScript"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcjnil%2Fgithub-notion-star","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flcjnil%2Fgithub-notion-star","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcjnil%2Fgithub-notion-star/lists"}