All Projects → lcjnil → github-notion-star

lcjnil / github-notion-star

Licence: other
No description or website provided.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to github-notion-star

notionproxy
Notion as a web site, inspired by react-notion-x.
Stars: ✭ 24 (-70.73%)
Mutual labels:  notion, github-actions
github-readme-learn-section-notion
Update your github README with data fetched from a notion database
Stars: ✭ 24 (-70.73%)
Mutual labels:  notion, github-actions
NextCommunity.github.io
Join FREE: Community of open-source programmers and software engineers.
Stars: ✭ 29 (-64.63%)
Mutual labels:  github-actions
xray-action
... a GitHub action to import test results into "Xray" - A complete Test Management tool for Jira.
Stars: ✭ 16 (-80.49%)
Mutual labels:  github-actions
components-nightly
⚙️ GitHub Action for searching nightly component availability
Stars: ✭ 21 (-74.39%)
Mutual labels:  github-actions
django-template
The ultimate Django template: production ready Django 3.2 with Docker, HTTPS and CI/CD using Github actions ‎️‍🔥
Stars: ✭ 20 (-75.61%)
Mutual labels:  github-actions
action-cats
A quick Github action which posts a cat gif on your PRs to reward you for pushing code!
Stars: ✭ 64 (-21.95%)
Mutual labels:  github-actions
pytest-github-actions-annotate-failures
Pytest plugin to annotate failed tests with a workflow command for GitHub Actions
Stars: ✭ 58 (-29.27%)
Mutual labels:  github-actions
wiki-page-creator-action
Create a GitHub wiki page based on the provided markdown file
Stars: ✭ 71 (-13.41%)
Mutual labels:  github-actions
pull-request-artifacts
GitHub Action to post build artifacts in PR comments.
Stars: ✭ 23 (-71.95%)
Mutual labels:  github-actions
codacy-analysis-cli-action
GitHub Action for the codacy-analysis-cli
Stars: ✭ 42 (-48.78%)
Mutual labels:  github-actions
notion-down
Notion >> Markdown. Python utility that converts Notion pages into MD files, along with intergation to build static webpages such as Hexo | 自动从 Notion 笔记生成 MD 文件,并部署到 Hexo 静态博客 | Notion Pages より Markdown Files をコンバートする、更に Hexo Webpages までの自動化も可能
Stars: ✭ 81 (-1.22%)
Mutual labels:  notion
link-snitch
GitHub Action to scan your site for broken links so you can fix them 🔗
Stars: ✭ 50 (-39.02%)
Mutual labels:  github-actions
release-downloader
Github action to download release assets from private or public repositories
Stars: ✭ 33 (-59.76%)
Mutual labels:  github-actions
noise-php
A starter-kit for your PHP project.
Stars: ✭ 52 (-36.59%)
Mutual labels:  github-actions
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+70.73%)
Mutual labels:  github-actions
setup-protoc
GitHub Action to setup the protoc compiler for protocol buffers
Stars: ✭ 58 (-29.27%)
Mutual labels:  github-actions
BiliTools
支持Docker,青龙面板,以及各种云函数,阿里云,腾讯云,华为云,百度云。
Stars: ✭ 142 (+73.17%)
Mutual labels:  github-actions
hugo-action
Commands to help with building Hugo based static sites
Stars: ✭ 65 (-20.73%)
Mutual labels:  github-actions
create-pr-action
GitHub Actions to manage PullRequest
Stars: ✭ 23 (-71.95%)
Mutual labels:  github-actions

github-notion-star

使用 Notion 和 Github Actions 同步和管理你的 Github Star.

Breaking Change

#4 版本开始,增加了 Primary launguageRepository Topics 两个参数(by @imfycc),需要在原有 database 中增加这两个选项,否则同步会失败。

功能

  • (可选)支持全量同步所有的 star 到 notion
  • (可选)支持使用 Github Actions 定时同步增量的 star 到 notion

设置

  • 在 Notion 上复制这个模板
  • Fork 当前的这个 Repo
  • 在 Repo 的设置里面,新建一个名为 notion-sync 的 Environment,需要设置以下环境变量
    • NOTION_API_KEY 申请的 Notion API 的 Key,注意,你的模板需要被共享给这个 API
    • NOTION_DATABASE_ID 对应的 Notion Database ID
    • TOKEN_OF_GITHUB Github 的用户 token,用于获取当前用户的 API

除此之外,还可以修改环境变量的形式修改当前的配置,例如:

  • FULLSYNC_LIMIT 全量同步的最大 Repo 个数,默认为 2000 个
  • PARTIALSYNC_LIMIT 增量同步的最大 Repo 个数,每次增量同步会从后往前取若干条数据,默认为 10 个
  • REPO_TOPICS_LIMIT Repo 添加的话题数量,默认取前 50 个

需要在 github/workflows/*.yml 中,修改这个配置

如何找到 NOTION_API_KEY? 请参考:https://www.notion.so/Add-and-manage-integrations-with-the-API-910ac902372042bc9da38d48171269cd#eeaa235ffe834d4f9a89a5893398f341
如何找到 NOTION DATABASE ID 请参考:https://stackoverflow.com/questions/67728038/where-to-find-database-id-for-my-database-in-notion
如何申请 Github API TOKEN 请参考:https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token.

这里不需要勾选任何权限。

开始同步

(可选)全量同步

可以在当前的 Github Actions 里面找到 FullSync Notion Star,执行即可全部你之前所有的 Star 信息

(可选)增量同步

  1. (可选)当前默认的轮询时间是十分钟。如果你想要修改增量同步轮询的时间,需要修改 .github/workflows/partial-sync.yml,在 on.schedule.cron 里面设置你的轮询时间。
  2. 在 Github Actions 里面开启 Partial Sync Notion Star (对于 Fork 的 repo,会自动禁用所有轮询的 Actions,所以需要手动开启)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].