[Schema Inaccuracy] run-id type format should be `int64`
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 52/100
Línea de trabajo
El objetivo es la definición de OpenAPI #/components/parameters/run-id; empieza por localizar esa entrada del esquema y compárala con el archivo generado pkg/github/repos/item_item_actions_runs_request_builder.go enlazado en el informe. Confirma que el formato corregido produce un ID de ejecución int64 en el Go SDK y, después, vuelve a ejecutar la solicitud curl y la reproducción en Go; se considera terminado cuando el esquema declara int64 y la llamada generada ya no usa int32.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Schema Inaccuracy
#/components/parameters/run-id type format should be int64, currently the there is no format provided due to which go-sdk which is generated from openapi spec use wrong type for run_id int32
Expected
format should be int64
Reproduction Steps
- set
GITHUB_TOKEN,GITHUB_REPOSITORYandGITHUB_RUN_ID(provide a valid run id) - run
curl -s -H "Authorization: Bearer ${GITHUB_TOKEN}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/jobs"it will work - run the go script below (it will give 404 error, because int64 run_id is converted to int32:
package main import ( "context" "encoding/json" "fmt" "os" "strconv" "strings" "github.com/octokit/go-sdk/pkg" ) func main() { githubToken := os.Getenv("GITHUB_TOKEN") githubRepo := os.Getenv("GITHUB_REPOSITORY") // format: owner/repo githubRunID := os.Getenv("GITHUB_RUN_ID") if githubToken == "" || githubRepo == "" || githubRunID == "" { fmt.Fprintln(os.Stderr, "Missing required environment variables. Please set GITHUB_TOKEN, GITHUB_REPOSITORY, and GITHUB_RUN_ID.") os.Exit(1) } // Parse owner and repo from GITHUB_REPOSITORY parts := strings.Split(githubRepo, "/") if len(parts) != 2 { fmt.Fprintf(os.Stderr, "Invalid GITHUB_REPOSITORY format. Expected 'owner/repo', got: %s\n", githubRepo) os.Exit(1) } owner := parts[0] repo := parts[1] // Convert run ID to int32 for the API runID, err := strconv.ParseInt(githubRunID, 10, 64) if err != nil { fmt.Fprintf(os.Stderr, "Invalid GITHUB_RUN_ID: %v\n", err) os.Exit(1) } // Create GitHub client githubClient, err := pkg.NewApiClient(pkg.WithTokenAuthentication(githubToken)) if err != nil { fmt.Fprintf(os.Stderr, "Failed to create GitHub client: %v\n", err) os.Exit(1) } ctx := context.Background() // Get jobs for the workflow run jobsResponse, err := githubClient.Repos(). ByOwnerId(owner). ByRepoId(repo). Actions(). Runs(). ByRun_id(int32(runID)). Jobs(). Get(ctx, nil) if err != nil { fmt.Fprintf(os.Stderr, "Failed to get workflow jobs: %v\n", err) os.Exit(1) } // Print JSON data fmt.Println("=== Jobs Data (JSON) ===") jsonData, err := json.MarshalIndent(jobsResponse, "", " ") if err != nil { fmt.Fprintf(os.Stderr, "Failed to marshal JSON: %v\n", err) os.Exit(1) } fmt.Println(string(jsonData)) fmt.Println() }
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 1.6k
- Forks
- 342
- Merge medio
- 7 h 21 min
- PR fusionados (30 d)
- 64
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/rest-api-description
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
github/rest-api-description#7246 ·
Los mantenedores suelen responder en 1 día
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
github/rest-api-description#7220 ·
Los mantenedores suelen responder en 1 día
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
github/rest-api-description#7201 ·
Los mantenedores suelen responder en 1 día
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/rest-api-description#7163 ·
Los mantenedores suelen responder en 1 día
-
Runner deprecations: registration_deprecates_at is declared on the response but never returnedAbiertofeature
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
github/rest-api-description#7162 ·
Los mantenedores suelen responder en 1 día
Todos los issues de github/rest-api-description
Issues similares
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hyprwm/aquamarine#426 ·
Los mantenedores suelen responder en 1 día
-
Fallback after an HTTP-200 refusal/invalid response logs no cause and is labelled "provider failure"Abiertoarea/streaming comp/agent P2 provider/anthropic type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
NousResearch/hermes-agent#124874 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
leptos-rs/leptos#4885 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día