Repeated comment update causing rate limit

Abierto
#48 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
github-actions, typescript
Área
ci-cd

Línea de trabajo

Empieza rastreando dónde la action actualiza el comentario de GitHub y reproduce las entradas de registro repetidas "Updated the comment". Se considera terminado cuando el comentario se actualiza solo al final de la action, evitando las solicitudes repetidas que activan el límite de tasa secundario de GitHub.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
TypeScript
Estrellas
20
Forks
10
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de braintrustdata/eval-action

Todos los issues de braintrustdata/eval-action

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.