Repeated comment update causing rate limit

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions, typescript
領域
ci-cd

調査の方向性

まず、action が GitHub のコメントを更新している箇所を追跡し、繰り返し出力される "Updated the comment" ログエントリを再現します。action の最後にのみコメントが更新され、GitHub のセカンダリレート制限を引き起こす繰り返しのリクエストが回避されれば完了です。

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

説明

Problem

The action is updating the github comment multiple times causing Github to rate limit.

This is from my logs:

Updated the comment https://github.com/example/repo/pull/154#issuecomment-2740430984
Updated the comment https://github.com/example/repo/pull/154#issuecomment-2740430984
Updated the comment https://github.com/example/repo/pull/154#issuecomment-2740430984
Updated the comment https://github.com/example/repo/pull/154#issuecomment-2740430984
...
and so on about +100 or maybe 200 times

After a few repeated runs, I get this error:

    data: {
      documentation_url: 'https://docs.github.com/free-pro-team@latest/rest/overview/rate-limits-for-the-rest-api#about-secondary-rate-limits',
      message: 'You have exceeded a secondary rate limit. Please wait a few minutes before you try again. If you reach out to GitHub Support for help, please include the request ID ...'
    }

Can we update the comment only at the end of the action so that we don't hit GH rate limit?

主要言語
TypeScript
スター
20
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

braintrustdata/eval-action のほかの issue

braintrustdata/eval-action の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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