Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Classify secondary and abuse rate limits separately from generic GitHub failures

オープン
#2,219 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, go
領域
api, backend

調査の方向性

pkg/errors/error.go の classifier から始め、次に pkg/utils/api.go を通じた GitHub レスポンスの処理を追跡し、docs/error-handling.md を確認してください。primary、secondary、abuse limit のレスポンスがそれぞれ異なるものとして分類され、利用可能な場合は retry メタデータが保持されることを示す unit coverage を追加してください。テストは参照された commit に対してパスする必要があります。

索引モデルが issue の本文から書いたものです。

説明

Problem
GitHub quota and abuse responses currently lose their specific classification in the shared error layer, so downstream tooling cannot distinguish them from generic 403/transport failures.

Why now
Rate limits are a routine operational condition for GitHub integrations. This server already documents structured error handling, but the central classifier only recognizes invalid token and insufficient scope today.

Evidence packet

  • Commit under test: 0c0ac794a443626d3a1517f8154f109f06a26e68
  • Runtime: macOS 15.3 / Darwin 25.3.0 arm64, Go 1.25.7
  • Relevant codepaths:
    • pkg/errors/error.go
    • pkg/utils/api.go
    • docs/error-handling.md
  • Minimal repro:
    1. Trigger a secondary rate limit or abuse-detection response from GitHub.
    2. Observe the error payload stored in middleware / tool results.
  • Expected: explicit classifications for secondary rate limits and abuse limits, ideally preserving retry timing when GitHub provides it.
  • Actual: classifyHTTPErrorCode only handles 401 invalid_token and some 403 insufficient_scope cases, leaving rate-limit-specific failures unclassified.

Scope
This is a platform contract issue in shared GitHub error mapping.

Validation target
Unit tests should prove that primary, secondary, and abuse limit responses classify distinctly and preserve retry metadata when available.

主要言語
Go
スター
33.1k
フォーク
5k
平均マージ
2日 1時間
マージ済み PR(30日)
25

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/github-mcp-server のほかの issue

github/github-mcp-server の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。