• 请不要在回答技术问题时复制粘贴 AI 生成的内容
iBugOne
V2EX  ›  程序员

利用云函数计算做了一个自己显示 star ★ 数量的仓库

  •  
  •   iBugOne · Feb 20, 2021 · 829 views
    This topic created in 1932 days ago, the information mentioned may be changed or developed.

    欢迎来点 ★ 玩:This-Repo-Has-0-Stars

    原理就是一个 AWS Lambda 云函数作为 GitHub 仓库钩子( webhook )的接收器,调用 GitHub API 来更新仓库名称。相比另一个实现在 VPS 上用 polling 的方式检查更新,这种“被动式”的方案延迟不到 2 秒。利用了 GitHub 会对旧仓库名自动跳转的特性,只要刷新页面就能看到最新的仓库名。

    部署 Lambda + API Gateway 的操作我在一篇博客里写过了,仓库里有链接。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2645 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:51 · PVG 19:51 · LAX 04:51 · JFK 07:51
    ♥ Do have faith in what you're doing.