Limit and/or Cache API requests to avoid: 403 - API rate limit exceeded for installation ID ___
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with the jekyll-github-metadata gem's GitHub Metadata generation and the verbose build output showing list_repos, releases, and contributors calls. Reproduce the GitHub Actions deployment with Jekyll 4.3.2 and GITHUB_TOKEN, then inspect how these requests are made. Done means deployments avoid unnecessary requests and complete without exceeding the installation rate limit.
索引モデルが issue の本文から書いたものです。
説明
I just switched to using Jekyll 4.3.2 and tried to deploy a static site using this theme, which lists all current GitHub repositories on the generated static site page. To do this, it uses jekyll-github-metadata gem (version 2.16.0) to gather all repositories for my GitHub user.
Apparently, this results in a lot of API requests (for my user, over ~486!) and quickly hits the rate limit when using GITHUB_TOKEN in a GitHub Actions workflow.
Would it be possible to cache or limit API requests further so static site deployments will complete successfully in GitHub Actions?
For example: The jekyll build --verbose output shows each repo is queried for both contributors and releases, but the template doesn't even need this information
Logging at level: debug
Jekyll Version: 4.3.2
Configuration file: /mnt/terabyte/src/sites/trinitronx.github.io/_config.yml
Configuration file: /mnt/terabyte/src/sites/trinitronx.github.io/_config_dev.yml
Requiring: jekyll-github-metadata
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
GitHub Metadata: Initializing...
Source: /mnt/terabyte/src/sites/trinitronx.github.io
Destination: /mnt/terabyte/src/sites/trinitronx.github.io/_site
Incremental build: enabled
Generating...
Reading: /_layouts/default.html
EntryFilter: excluded /LICENSE.neumorphism
EntryFilter: excluded /README.md
EntryFilter: excluded /docs
EntryFilter: excluded /package.json
EntryFilter: excluded /node_modules
EntryFilter: excluded /.jekyll-cache
EntryFilter: excluded /.github
EntryFilter: excluded /.ruby-version
EntryFilter: excluded /Gemfile
EntryFilter: excluded /yarn.lock
EntryFilter: excluded /.ruby-gemset
EntryFilter: excluded /Gemfile.lock
EntryFilter: excluded /.gitignore
EntryFilter: excluded /gulpfile.js
Reading: index.html
Reading: _data/projects.yml
Reading: _data/skills-frameworks.yml
Reading: _data/skills-languages.yml
Reading: _data/skills-tools.yml
Reading: _data/timeline.yml
Rendering: index.html
Pre-Render Hooks: index.html
Rendering Markup: index.html
Post-Convert Hooks: index.html
Rendering Layout: index.html
GitHub Metadata: Generating for trinitronx/trinitronx.github.io
GitHub Metadata: Calling @client.list_repos("trinitronx", {:type=>"public", :accept=>"application/vnd.github.mercy-preview+json"})
GitHub Metadata: Calling @client.releases("trinitronx/action-doctl")
GitHub Metadata: Calling @client.contributors("trinitronx/action-doctl")
GitHub Metadata: Calling @client.releases("trinitronx/ansible")
GitHub Metadata: Calling @client.contributors("trinitronx/ansible")
GitHub Metadata: Calling @client.releases("trinitronx/ansible-examples")
GitHub Metadata: Calling @client.contributors("trinitronx/ansible-examples")
[... SNIP ...]
[... TOTAL number of releases + contributors API log lines = 486 ...]
[... SNIP ...]
GitHub Metadata: Calling @client.releases("trinitronx/zengge-lightcontrol")
GitHub Metadata: Calling @client.contributors("trinitronx/zengge-lightcontrol")
Writing: /mnt/terabyte/src/sites/trinitronx.github.io/_site/index.html
Writing Metadata: .jekyll-metadata
done in 177.699 seconds.
Auto-regeneration: disabled. Use --watch to enable.
[18:31:02] Finished 'jekyll' after 2.97 min
- 主要言語
- Ruby
- スター
- 309
- フォーク
- 159
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jekyll/github-metadata のほかの issue
-
jekyll-github-metadata calls Pages API for private repos with Pages disabled, causing fatal 403オープン
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
jekyll/github-metadata#302 ·
-
Pageオープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
jekyll/github-metadata#294 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
jekyll/github-metadata#290 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
jekyll/github-metadata#264 · コメント 1 件 · リアクション 3 件 ·
-
pinned
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
jekyll/github-metadata#130 · コメント 5 件 · リアクション 6 件 ·
jekyll/github-metadata の issue をすべて見る
似ている issue
-
instrumentation-sidekiq
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
open-telemetry/opentelemetry-ruby-contrib#2735 ·
メンテナーはふだん 2 日以内に返信
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ruby/securerandom#92 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
we-promise/sure#5902 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信