gh pr edit --add-reviewer can remove reviewers assigned automatically by GitHub
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 57/100
Línea de trabajo
Read pkg/cmd/pr/edit/edit.go around the reviewer update using union: false, then trace the add-only and removal paths. Check the existing tests for gh pr edit and add coverage for preserving a concurrently assigned reviewer during an add-only request. Done means additions preserve existing and concurrent requests while removal and interactive deselection still work.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
gh pr edit --add-reviewer can remove a reviewer selected by a team's automatic review assignment.
Observed with gh 2.103.3 on github.com. After requesting a team configured for round-robin assignment, the PR timeline showed an individual reviewer being requested and then removed one second later. Only the team request remained, where-as the (round-robin picked) individual should've been assigned as well.
The command should add review requests without removing requests created concurrently by GitHub.
Steps to reproduce
-
Configure a GitHub team with automatic review assignment enabled.
-
Create a draft PR.
-
Mark it ready and immediately request the team:
gh pr ready <number> --repo <owner>/<repository> gh pr edit <number> --repo <owner>/<repository> \ --add-reviewer <organization>/<team> -
Inspect the PR timeline and requested reviewers.
This appears timing-dependent. The observed timeline was:
09:02:53 Requested review from the team.
09:02:53 Requested review from an automatically selected team member.
09:02:54 Removed the individual review request.
No explicit reviewer-removal command was run.
Expected behavior
--add-reviewer adds the supplied reviewers while preserving existing and concurrently created review requests.
Actual behavior
An automatically assigned individual reviewer can be removed.
Suspected cause
The implementation reads existing review requests, merges additions locally, then replaces the server's reviewer list using union: false.
A review request created after the initial read can therefore be omitted from the replacement list. This mechanism is consistent with the observed timeline.
Possible fix
For non-interactive, add-only operations, send only the requested additions with union: true.
Changing every reviewer update to union: true would break --remove-reviewer and interactive deselection, so those paths need to retain replacement behavior or use separate removal operations.
Related issues
- Lenguaje dominante
- Go
- Estrellas
- 47.4k
- Forks
- 9.5k
- Merge medio
- 18 h 34 min
- PR fusionados (30 d)
- 70
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 cli/cli
-
`gh search prs --locked=false` silently ignores the requested search filterQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug gh-search priority-3
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cli/cli#15188 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
`gh run watch` drops annotations for jobs that are queued on the first pollQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug gh-run priority-3
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
cli/cli#15186 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
gh skill update reports success when a repository cannot be resolvedQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug gh-skill priority-3
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
cli/cli#15092 · 4 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
`gh label list --json` prints nothing instead of `[]` when the repository has no labelsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoblocked bug gh-label needs-investigation priority-3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cli/cli#15066 · 4 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
`gh search code '"term"'` sends the typed quotes escaped (`q="\"term\""`) and finds nothingQuizá libre de nuevo @Daiyuanranfeng la tomó hace 17 días y no hay ningún pull request abierto. Abiertoauto-bugfix-fixing bug gh-search priority-3
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
cli/cli#15060 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Issues similares
-
kind: for-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
monumental-archive/.github#2279 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
[Docs] Fix duplicate /gRPC protocol suffix and Kubernetes typo on Architecture pagePosiblemente ocupada @Apocalypse10110 la tomó hoy. Abiertoarea/docs framework/hugo help wanted language/markdown
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
meshery/meshery#24946 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
XHTTP over HTTP/3 with `finalmask.quicParams.congestion: "brutal"` panics at the first dial; `-test` passesPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openclaw/crabbox#3249 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día